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 07-29-2007, 07:49 PM
HolySheepy HolySheepy is offline
Registered User
Join Date: Apr 2007
Posts: 68
HolySheepy is on a distinguished road
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)?
Reply With Quote
  #2  
Old 07-29-2007, 08:04 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
use player.attrs for those too, not only the gani :O
__________________
Reply With Quote
  #3  
Old 07-29-2007, 08:08 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Can you do a findplayer(attr of the gani) or something like that? (i'm pretty clueless about ganis).
Reply With Quote
  #4  
Old 07-29-2007, 09:04 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
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.
__________________
Follow my work on social media post-Graal:Updated august 2025.
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:23 AM.


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