Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Icons ? hmm (https://forums.graalonline.com/forums/showthread.php?t=87499)

littlekinky 08-20-2009 02:53 AM

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 ?

DustyPorViva 08-20-2009 03:00 AM

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.

fowlplay4 08-20-2009 03:25 AM

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.

cyan3 08-20-2009 03:46 AM

Quote:

Originally Posted by DustyPorViva (Post 1516543)
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?

fowlplay4 08-20-2009 04:13 AM

Quote:

Originally Posted by cyan3 (Post 1516559)
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 


cbk1994 08-20-2009 04:19 AM

Quote:

Originally Posted by fowlplay4 (Post 1516569)
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.

fowlplay4 08-20-2009 05:13 AM

Quote:

Originally Posted by cbk1994 (Post 1516571)
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.


All times are GMT +2. The time now is 09:44 PM.

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