Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   player in gani scripts (https://forums.graalonline.com/forums/showthread.php?t=75041)

JkWhoSaysNi 07-01-2007 06:54 PM

player in gani scripts
 
How can I differentiate between the player viewing the gani script and the player the gani script belongs to in a gani script? I really need access to both.

I want to do something like if (owner != viewer) { ...}

Chompy 07-01-2007 06:55 PM

What do you mean?

player.
playero.
?

send the owner as a param?

JkWhoSaysNi 07-01-2007 07:00 PM

ok... how can I send a param to a gani script?

Chompy 07-01-2007 07:25 PM

Are you doing this with the player's attributes or?

more info :p

JkWhoSaysNi 07-01-2007 07:32 PM

yeah, i'm just using player.attr[10] = "whatever.gani";

Chompy 07-01-2007 07:38 PM

you could use another player.attr[] for the owner of the gani, like 11
or, I've seen someone use stuff like:

player.attr[10] = "whatever.gani,Chompy";

JkWhoSaysNi 07-01-2007 09:09 PM

ah yeah that works :)

Can't seem to send objects as params though :(.

killerogue 07-01-2007 11:07 PM

Quote:

Originally Posted by JkWhoSaysNi (Post 1324783)
ah yeah that works :)

Can't seem to send objects as params though :(.

I wish. :(


All times are GMT +2. The time now is 11:14 PM.

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