Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Dynamic Levels (https://forums.graalonline.com/forums/showthread.php?t=51517)

Blue_Dragn 03-06-2004 06:10 AM

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.

DIABLO2099 03-06-2004 06:43 AM

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?

WanDaMan 03-06-2004 11:23 AM

Post the whole script :)

Loriel 03-06-2004 12:12 PM

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 :(

WanDaMan 03-06-2004 02:19 PM

Smeh I just realized it's a weapon :O

Loriel 03-06-2004 02:45 PM

Hm, then indeed a triggeraction appears needed. Still, the interesting parts should go into the serverside part if not into a seperate DB NPC... ?

WanDaMan 03-06-2004 02:50 PM

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;)

Blue_Dragn 03-07-2004 10:21 PM

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.

Loriel 03-08-2004 01:05 AM

Would be nice to share your workaround.

Blue_Dragn 03-09-2004 05:46 AM

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


All times are GMT +2. The time now is 08:18 PM.

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