![]() |
Setlevel bug?
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; } |
This is what happens when somebody uses code that he doesn't understand. Apparently startx and starty do not point at the NPC. I'm not sure why you're even using them.
|
| All times are GMT +2. The time now is 12:32 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.