I tried changing the trigger action, adding this in
if (actionserverside) {
if (strequals(#p(0),warp)) {
setlevel2 world3.graal,13,30; //Replace these
setplayerprop #c,Warping...;
}
}
Just using plain old setlevel, canwarp, warp2, etc. It was working when Tseng first added the code in. I added it to other npcs and they worked. But then... The next day the npcs stopped working. All but one. I'm wondering if it's the server? Also players can't hit the npcs that have the warp code in them. Is my server glitched? According to all the faqs I read online it should work. I checked npc scripter's for help.
if (created) {
setshape 1,16,16;
}
if (actionwarp) {
setlevel2 hillsummit14.graal,10,10;
}
//#CLIENTSIDE
if (timeout && this.mode==4) { // DYING
//triggeraction 0,0,serverside,warp;
//setlevel2 hillsummit14.graal,30,30;
//hillsummit14.graal,10,10
//triggeraction 10,10,warp,hillsummit14.graal;
triggeraction startx,starty,warp,;
setcharprop #c,You defeated me!;
i = random(0,100);
if (i<10) lay greenrupee;
else if (i<15) lay bluerupee;
else if (i<30) lay heart;
this.mode = 5; // RESPAWN
timeout = 5;
} |