View Single Post
  #3  
Old 05-12-2012, 01:19 AM
Fysez Fysez is offline
Banned
Join Date: Apr 2012
Posts: 89
Fysez has a little shameless behaviour in the past
Quote:
Originally Posted by ffcmike View Post
The login function is:

PHP Code:
function onActionPlayerOnline(){


within the Control-NPC.

'findplayer("account")' is a function which takes the specified account string parameter and returns the player object if it exists, it is not necessary within onActionPlayerOnline however as there is already the 'player' object to use.

I would also imagine the parameter for removeweapon is case sensitive, which probably means you should have 'removeweapon("Bow");'.
PHP Code:
 function onActionPlayerOnline(){ 
removeweapon("Bow");

This does not work.
I've tried it in (even though they don't need to be) Class, NPC-Database, Level NPC, and Weapon (though weapon won't help) and it does not work.
Reply With Quote