Quote:
Originally Posted by cyan3
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