Thread: Weapon
View Single Post
  #3  
Old 05-09-2011, 09:19 PM
mrnothersan mrnothersan is offline
Owner of MrNothersan
Join Date: Mar 2011
Location: On the Computer
Posts: 97
mrnothersan is an unknown quantity at this point
Send a message via AIM to mrnothersan Send a message via MSN to mrnothersan
Quote:
Originally Posted by Emera View Post
PHP Code:
 function onActionPlayerOnline() {
 
addweapon("WEAPON NAME");

Put that at the top of your control NPC.
Right... so my NPC script currently looks like this:
PHP Code:
function onActionPlayerOnline() { 
  
player.addWeapon("testgui","Tailor"); 

(from a previous script and i just add
PHP Code:
,"Tailor" 
... will it still work if i remove
PHP Code:
player
?


EDIT: I removed player. and applied... entered game and it 1.Removed all my tools. 2.Didn't give me testgui or Tailor....
__________________

Regards
MrNothersan - Playerworld owner


Staff Hirings Thread for MrNothersan: http://forums.graalonline.com/forums....php?p=1639180


Last edited by mrnothersan; 05-09-2011 at 09:31 PM..
Reply With Quote