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 03-06-2004, 06:10 AM
Blue_Dragn Blue_Dragn is offline
Registered User
Join Date: Jul 2003
Posts: 302
Blue_Dragn is on a distinguished road
Dynamic Levels

i was testing a script earlier and i dont know why it wont work, here is the code

NPC Code:

if (playerenters) {
if (playerscount > 0) {
this.level+=1;
triggeraction 0,0,serverside,warp,level_#v(this.level),30,30;
}
}



all its supposed to do is check for other players, if they exist, warp them away to the next avalible level, however this solution to my other problem (showani in classes) isnt working either.
__________________
No longer a Advertisement Goat
Reply With Quote
  #2  
Old 03-06-2004, 06:43 AM
DIABLO2099 DIABLO2099 is offline
Registered User
Join Date: Sep 2002
Location: New York
Posts: 290
DIABLO2099 is on a distinguished road
I don't think checking the players count would be necessary if it is checking if the player enters first within the same nested statement.

triggeraction 0,0,serverside,warp,level_#v(this.level),30,30;

File extension missing?
__________________
-Former UnholyNation Server Manager.

Call me Xecutor.
Reply With Quote
  #3  
Old 03-06-2004, 11:23 AM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Post the whole script
__________________
V$:CONFL16T
Reply With Quote
  #4  
Old 03-06-2004, 12:12 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Why do you even use a triggeraction there that comes with a slight security risk? Just do it all serverside?
Also, you probably want to check for playerscount > 1
Reply With Quote
  #5  
Old 03-06-2004, 02:19 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Smeh I just realized it's a weapon :O
__________________
V$:CONFL16T
Reply With Quote
  #6  
Old 03-06-2004, 02:45 PM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Hm, then indeed a triggeraction appears needed. Still, the interesting parts should go into the serverside part if not into a seperate DB NPC... ?
Reply With Quote
  #7  
Old 03-06-2004, 02:50 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Quote:
Originally posted by Loriel
Hm, then indeed a triggeraction appears needed. Still, the interesting parts should go into the serverside part if not into a seperate DB NPC... ?
That's why I posted for the whole script
__________________
V$:CONFL16T
Reply With Quote
  #8  
Old 03-07-2004, 10:21 PM
Blue_Dragn Blue_Dragn is offline
Registered User
Join Date: Jul 2003
Posts: 302
Blue_Dragn is on a distinguished road
Quote:
Originally posted by WanDaMan

That's why I posted for the whole script
Ive since worked a way arround it, but thanks for everyone commenting and adding things.
__________________
No longer a Advertisement Goat
Reply With Quote
  #9  
Old 03-08-2004, 01:05 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Would be nice to share your workaround.
Reply With Quote
  #10  
Old 03-09-2004, 05:46 AM
Blue_Dragn Blue_Dragn is offline
Registered User
Join Date: Jul 2003
Posts: 302
Blue_Dragn is on a distinguished road
Quote:
Originally posted by Loriel
Would be nice to share your workaround.
Rather then using a class i used a weaponscript, for some reason things like triggers and showani arent working well in classes for me.

Everything worked well in the npcw script, and i made it more scriptfriendly
__________________
No longer a Advertisement Goat
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 11:06 PM.


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