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 08-20-2009, 02:53 AM
littlekinky littlekinky is offline
Registered User
littlekinky's Avatar
Join Date: Sep 2007
Posts: 185
littlekinky has a little shameless behaviour in the past
Icons ? hmm

Icons anyone give me a exmaple of a icon script that shows the icon under a player such as

when player puts on staff tag gives a staff icon ?
Reply With Quote
  #2  
Old 08-20-2009, 03:00 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Do you really want an example or someone to just post the script for you?

In this thread: http://forums.graalonline.com/forums...ad.php?t=87496
if you had been actually learning about the script and what you're attempting, you'd have learned that almost exactly what you learn in that thread would be applied to the request in this one.
Reply With Quote
  #3  
Old 08-20-2009, 03:25 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
A glow effect (which you have a created a thread for) is essentially the same script as Icons, both of which draw an image on / above the player.
__________________
Quote:
Reply With Quote
  #4  
Old 08-20-2009, 03:46 AM
cyan3 cyan3 is offline
Registered User
cyan3's Avatar
Join Date: Nov 2005
Location: England
Posts: 2,919
cyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant future
Quote:
Originally Posted by DustyPorViva View Post
Do you really want an example or someone to just post the script for you?

In this thread: http://forums.graalonline.com/forums...ad.php?t=87496
if you had been actually learning about the script and what you're attempting, you'd have learned that almost exactly what you learn in that thread would be applied to the request in this one.
Correct me if I'm wrong but isn't it against the rules to request whole scripts in the NPC Scripting forums?
Reply With Quote
  #5  
Old 08-20-2009, 04:13 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by cyan3 View Post
Correct me if I'm wrong but isn't it against the rules to request whole scripts in the NPC Scripting forums?
Yes, requesting full scripts is against the rules. However from personal experience I learned a lot of how to script from examples provided by others.

I.e: When Yen pretty much took over Zodiac when it was in hosted, I learned a lot of how to do certain things from going through his scripting.

To do icons though you can go a few ways about it.. Currently I use player attributes.

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
player.attr[2] = "gani_name.gani,param";

Then have a gani, with script inside it that shows an image above the player's head. You can put script in a gani by opening it with wordpad, notepad, whatever text editor you use.

PHP Code:
SCRIPT
function onPlayerEnters() {
  
// draw block
  // or loop and such
}
SCRIPTEND 
__________________
Quote:
Reply With Quote
  #6  
Old 08-20-2009, 04:19 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
Quote:
Originally Posted by fowlplay4 View Post
Yes, requesting full scripts is against the rules. However from personal experience I learned a lot of how to script from examples provided by others.

I.e: When Yen pretty much took over Zodiac when it was in hosted, I learned a lot of how to do certain things from going through his scripting.

To do icons though you can go a few ways about it.. Currently I use player attributes.

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
player.attr[2] = "gani_name.gani,param";

Then have a gani, with script inside it that shows an image above the player's head. You can put script in a gani by opening it with wordpad, notepad, whatever text editor you use.

PHP Code:
SCRIPT
function onPlayerEnters() {
  
// draw block
  // or loop and such
}
SCRIPTEND 
Player attributes are less efficient, it is most likely better to use a loop like I showed in this post.
__________________
Reply With Quote
  #7  
Old 08-20-2009, 05:13 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by cbk1994 View Post
Player attributes are less efficient, it is most likely better to use a loop like I showed in this post.
Learn something everyday, I'll probably end up re-scripting my system to do that then :P

Oh yeah I also hate that icon system on Zodiac with a passion, the back end of it sucks dearly.
__________________
Quote:
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 06:25 AM.


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