Thread: Beer Me ;D
View Single Post
  #3  
Old 08-29-2007, 02:56 AM
bscharff bscharff is offline
Bloo
bscharff's Avatar
Join Date: Sep 2006
Location: San Antonio, Texas
Posts: 185
bscharff has a little shameless behaviour in the past
Send a message via AIM to bscharff Send a message via MSN to bscharff Send a message via Yahoo to bscharff
putnpc Cannot Be Clientside.
The System I Added To Graal Legacy Triggers onActionGrab. (If It Wasn't Deleted - If It Wasn't, Keep It!)
You should use putnpc2(x,y,"join beer;");

Perhaps:

PHP Code:

//NPC By theHAWKER & Taka (Bloo Loves Them)
function onCreated(){
this.grabs 10;
onTimeout();
}

function 
onTimeout(){
if (
this.grabs 1){
sleep(1);
onCreated();
}
sleep(.05);
onTimeout();
}

function 
onActionGrabbed() { //Possibly onActionGrab ?
this.grabs -= 1;
player.chat this.grabs " Grabs Left!";
}

function 
onActionGrabbed() {
setani("pull",NULL);
}

function 
onTimeout(){
if (
this.grabs <= 0){
say2("I Made A Beer!");
putnpc2(49.5,20,"join beer;"); //Might Be Easier To Round Coordinates To The Nearest .5
setTimer(0.05);
}

__________________
Trying to be nice now...
Reply With Quote