Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-20-2003, 05:44 AM
draiden0 draiden0 is offline
Registered User
Join Date: Sep 2003
Location: This Dimension
Posts: 109
draiden0 is on a distinguished road
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;
}
__________________
Any rule that has no exception is doomed to fail.
Reply With Quote
  #2  
Old 09-20-2003, 06:10 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
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.
__________________
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:56 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.