![]() |
Help
How would I go about it so that if the player said something (eg. /help), the NPC Server sends a pre-set PM?
|
Check if the player says /help in a system weapon.
When it checks that they said /help, make it send a trigger to the serverside telling the NPC Server (or the system) to send the PM. |
So in the system NPC -
NPC Code: And System NPC - NPC Code: EDIT: Replacing "NPC-Control" with the correct NPC name |
Or,
NPC Code: This is a serversided script. |
The more I see GS2 scripting, the more I hate it.
Heh. Thanks for your help :) |
Quote:
|
Same thing but in GS1 then:
NPC Code: GS1 sucks. |
Why post for help in the gs2 forums then? =/
|
Moved thread to the correct forum.
|
Quote:
Quote:
Quote:
|
Alot of Developers still code in GS1, but I find GS2 to be far more efficent, and definately more fun to work with. It's also easier to read GS2 long, single lined statements, than GS2:
GS1 - if (playerchats && strequals(#c,/help)) sendpm All text here, HTML works!; GS2 - if(player.chat=="/help") { sendpm("Blahstringblah"); } |
| All times are GMT +2. The time now is 05:18 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.