Graal Forums

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

MrGannondorf 10-18-2002 10:19 AM

dose playerleaves work offline?

Eban 10-19-2002 01:39 AM

if (playerleaves&&isjailed){
with (getplayer(#a))setlevel2 police2test.nw,30.5,30;
}

Works Fine I tested it online:)

Eban 10-19-2002 11:26 PM

Quote:

Originally posted by Kaimetsu
Don't need the getplayer because the active player is already set when playerleaves occurs.
fo reeel

Com013 10-20-2002 08:01 PM

I can't imagine why some people use with(getplayer(#a))...I've seen that some times in the forums now and the command does...nothing.

Torankusu 10-20-2002 10:48 PM

Quote:

Originally posted by Com013
the command does...nothing.
except for when you want to use something like a send PM and you have like a param set as the account (triggeraction) or something.

Com013 10-22-2002 01:41 AM

Quote:

Originally posted by Kaimetsu


The NPC Server uses an 'active player' system. When somebody enters a room, the playerenters event is run with that person as the active player. But if you want to affect somebody else, you can use with() to select a new active player (or npc).

Thanks, but I already know what with(...) is doing...the question is why some people use with(getplayer(#a))!


All times are GMT +2. The time now is 05:40 AM.

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