Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Need help on my HUD! please fast. (https://forums.graalonline.com/forums/showthread.php?t=134262919)

[email protected] 04-21-2011 01:28 PM

Need help on my HUD! please fast.
 
i am making a script ( -System/HUD) for my Custom hud.
i hawe got the hp bar, img on it to work and so on, but i need to show
the players current equipted weapon, like show a picture of the players used weapon, i think its something like this, but choud anyone tell me the correct code?? plz, i cant remember it :cry:
PHP Code:

showimg(201,playerequiptedweapon3212); 

please help me, fast ^^

Soala 04-21-2011 01:53 PM

Having proper english grammar is needed to script.
Quote:

Originally Posted by /scripthelp playerequiptedweapon
No matching script function found!

"equipted" isn't a word, so your script will most likely never work.
I suggest using /scripthelp in RC Chat to get precious informations on what to possibly use.

Here's what "/scripthelp weapon" returned:

Quote:

Originally Posted by /scripthelp weapon
Clientside:
TPlayer.weapon - object (read only)
TServerWeapon - object type, parent type is TServerNPC
disableselectweapons()
enableselectweapons()
selectedweapon - integer
TPlayer.weapons - object (read only)
TServerWeapon.isweapon - boolean (read only)
weapons - object (read only)
weaponsenabled - boolean

Hope this helped!

Fulg0reSama 04-21-2011 02:00 PM

Quote:

Originally Posted by fowlplay4 (Post 1644716)
Stuff

Hey there.

imbavik 04-21-2011 02:43 PM

this is my new Account ;P, thanks for the help !, works now :)

cbk1994 04-21-2011 09:50 PM

Quote:

Originally Posted by Soala (Post 1644716)
Having proper english grammar is needed to script.

It may actually be more beneficial to not speak English well if you plan on working with GScript.

Quote:

Originally Posted by Wiki
onPlayerTouchsMe: the player touchs the NPC (see setshape command to make this working)



All times are GMT +2. The time now is 06:26 PM.

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