Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-13-2011, 09:57 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
Question Displaying text above heads.

Hello, i was wondering, is it possible to display a small text message above a players head if they are on stafftag saying "staff"? I'm not asking for whole scripts here but a little help would be great. Thanks guys.
__________________
Reply With Quote
  #2  
Old 05-13-2011, 10:05 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
What exactly do you want to do? Change the player's chat to something else when they do something? Or do you actually want to show some sort of "tag" above a player (visible for all other players)?
__________________
Reply With Quote
  #3  
Old 05-13-2011, 10:06 PM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
can do this with either a gani script or by using showimgs in a constant loop

since the text Staff would be pretty static, gani would probably be preferred
Reply With Quote
  #4  
Old 05-14-2011, 12:06 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Use a GANI. If you want the text to be an image, just make it like a normal GANI (with no player, single-direction, and the text floating above where the player would be) and put it in the player's attributes.

If you want to draw the text via script, use a GANI script.


Quote:
Originally Posted by cbk1994 View Post
The simplest GANI script would be something like

PHP Code:
SCRIPT
function onPlayerEnters() {
  
onCreated();
}
function 
onCreated() {
  
player.zoom 2;
}
SCRIPTEND 
You'd then do something like

PHP Code:
player.attr[8] = "mygani.gani"
GANI paramaters are passed through attributes using commas, like this:

PHP Code:
player.attr[8] = "mygani.gani,2"
When drawing the image, set attachtoowner to true.
__________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 08:24 PM.


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