Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Server Flags Help (https://forums.graalonline.com/forums/showthread.php?t=16522)

r_u_f_u_s 11-10-2001 07:22 AM

Server Flags Help
 
I know how to put the account name to make it go into the server flags, but once it is there how do I preform an action with it? Like the script below (the first part) if they say heal account "name" that account name will go into the server.healaccount flag, but once it is there how would it heal the player?



if (playerchats && startswith(heal account,#c)) {
if (strequals(#g,Events Team)) {
tokenize #c;
setstring server.healaccount,#t(2);
}
}

Brad_Elven 11-10-2001 07:42 AM

i cant understand what your asking

BocoC 11-10-2001 08:17 AM

On a free server, either you would have to have a system npc that checks for it, or in conjunction with your serverflag have the weapon putnpc a custom npc in the level that heals the player. On p2p servers, just use a 'with' command and modify the target player's attributes.


All times are GMT +2. The time now is 08:01 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.