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);
}
}