![]() |
Adding Scripts to NPC
Hi,
How do I add commands to the NPC user? For example if someone chats to the npc user and says "/eventsapp" they get sent back the events team staff application automatically? Thanks |
A combination of these two functions, you could have just looked through the starting guide in the wiki and figured it out.
PHP Code:
|
For a weapon:
PHP Code:
|
If you want to add more than one 'command' which i'm sure you will instead of doing elseif or else you can also use the switch statement. There's a post that Zero(zokemon) did explaining it. I think it was called spoils of the switch statement.
|
...i think he means pm'ing the NPC-Server
|
In that case, in Control-NPC:
PHP Code:
|
It's actually lines.
I.e: Quote:
PHP Code:
PHP Code:
|
| All times are GMT +2. The time now is 04:30 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.