Quote:
Originally Posted by cbk1994
Yes, add //#SERVERSIDE at the top of the npcs.
Not really. Don't. Please.
We probably need to see the code for how you are placing the monster, and how you are trying to destroy it.
|
well here's the script i used to get rid of them
PHP Code:
if (this.hp<=0 && timeout){
hearts = 0;
setcharani goblin_death,;
sleep 1;
credits += 40;
destroy;
}
and here's the script i'm using to place the npcs
PHP Code:
if (timeout) {
this.i = random(0,100);
this.i2 = random(0,100);
this.i3 = random(0,100);
this.i4 = random(0,100);
this.i5 = random(0,100);
this.i6 = random(0,100);
this.i7 = random(0,100);
this.i8 = random(0,100);
this.i9 = random(0,100);
this.i10 = random(0,100);
this.i11 = random(0,100);
this.i12 = random(0,100);
if (this.i<=40 && wolvesleft>=0) putnpc block.gif,gg_wolf.txt,random(20,40),61;
if (this.i2<=40 && wolvesleft>=0) putnpc block.gif,gg_wolf.txt,random(20,40),61;
if (this.i3<=40 && wolvesleft>=0) putnpc block.gif,gg_wolf.txt,random(20,40),61;
if (this.i4<=40 && wolvesleft>=0) putnpc block.gif,gg_wolf.txt,random(20,40),61;
if (this.i5<=40 && snakesleft>=0) putnpc block.gif,gg_snake2.txt,random(20,40),61;
if (this.i6<=40 && snakesleft>=0) putnpc block.gif,gg_snake2.txt,random(20,40),61;
if (this.i7<=40 && snakesleft>=0) putnpcblock.gif,gg_snake2.txt,random(20,40),61;
if (this.i8<=40 && goblinsleft>=0) putnpc block.gif,gg_goblin.txt,random(20,40),61;
if (this.i9<=40 && goblinsleft>=0) putnpc block.gif,gg_goblin.txt,random(20,40),61;
if (this.i10<=40 && goblinsleft>=0) putnpc block.gif,gg_goblin.txt,random(20,40),61;
if (this.i11<=40 && goblinsleft>=0) putnpc block.gif,gg_goblin.txt,random(20,40),61;
if (this.i12<=40 && goblinsleft>=0) putnpc block.gif,gg_goblin.txt,random(20,40),61;
}
it's probably not the best script.. but it's the only way i could find to make a a random amount of npcs to spawn.
and i'll try the serverside thing
edit: i tried changing it to serverside but it didn't help any.