Thread: Icons ? hmm
View Single Post
  #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