Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Getting Account if Displaying Client(Ganiscript)? (https://forums.graalonline.com/forums/showthread.php?t=75930)

HolySheepy 07-29-2007 07:49 PM

Getting Account if Displaying Client(Ganiscript)?
 
Hi,

so a gani shows a text at the players position, the gani is attached with player.attr[]
now player.nick / player.account reads for the displaying/attached player so
for player A and player B it shows AccountA at playerA and AccountB at PlayerB

playerA has client.meh=1
playerB has client.meh=3
when displaying client.meh as text:
now for playerA it displays 1 at playerA and playerB
for playerB it displays 3 at playerA and playerB

so question: how do i get the nick of the displaying client?
so for player A it should show AccountA at playerA and playerB
for playerB it should show AccountB at playerA and playerB
i tried playero. didnt work(yeah i know i could use clientr./client. var but is there any other way)?

Chompy 07-29-2007 08:04 PM

use player.attrs for those too, not only the gani :O

Twinny 07-29-2007 08:08 PM

Can you do a findplayer(attr of the gani) or something like that? (i'm pretty clueless about ganis).

xXziroXx 07-29-2007 09:04 PM

You will have to use player attributes for it to work, trust me - I'm somewhat of a gani script expert.

Just set (for example) player.attr[20] to clientr.mystringname and read player.attr[20] instead of the string in the gani script.

Check http://forums.graalonline.com/forums...ad.php?t=72413 if you want to learn more about gani scripts and how to use arrays in attributes.


All times are GMT +2. The time now is 05:57 PM.

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