View Single Post
  #2  
Old 04-11-2009, 10:18 AM
Raelyn Raelyn is offline
the Professional.
Raelyn's Avatar
Join Date: Sep 2003
Location: Zormite
Posts: 964
Raelyn will become famous soon enough
Question #1

Question #1:
"Ok, I have a weapon NPC on the server that has alot of chat commands etc, but currently I have to add it to people for them to have it, what is the easiest method to have the NPC server check and add it to anyone who doesn't have it when they log on?"

Answer #1:
Quote:
Originally Posted by Tigairius View Post
-Click on your NPCs button (the button on the far left of your NPC-Control).
-Right click Control-NPC and edit the script.
-If the script is blank, add this:
PHP Code:
function onActionPlayerOnline() {
  
player.addWeapon("weapon name");

-If the script is not blank, just add player.addWeapon("weapon name"); in your actionplayeronline function.
__________________
*Don't let the door hit you on the way out.*

Last edited by Raelyn; 04-11-2009 at 12:48 PM.. Reason: Neatness.
Reply With Quote