Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-21-2011, 01:28 PM
[email protected] sam41119480@modmailcom.com is offline
Registered User
Join Date: Sep 2008
Posts: 1
sam41119480@modmailcom.com is on a distinguished road
Exclamation 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
PHP Code:
showimg(201,playerequiptedweapon3212); 
please help me, fast
Reply With Quote
  #2  
Old 04-21-2011, 01:53 PM
Soala Soala is offline
Ideas on Fire
Soala's Avatar
Join Date: Jun 2007
Location: In my head
Posts: 3,208
Soala is a jewel in the roughSoala is a jewel in the rough
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!
Reply With Quote
  #3  
Old 04-21-2011, 02:00 PM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
Quote:
Originally Posted by fowlplay4 View Post
Stuff
Hey there.
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
  #4  
Old 04-21-2011, 02:43 PM
imbavik imbavik is offline
Mercia
imbavik's Avatar
Join Date: Apr 2011
Location: Norway
Posts: 23
imbavik has a little shameless behaviour in the past
Send a message via MSN to imbavik
this is my new Account ;P, thanks for the help !, works now
Reply With Quote
  #5  
Old 04-21-2011, 09:50 PM
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 Soala View Post
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)
__________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 02:33 AM.


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