Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   tag adder (p2p only) (https://forums.graalonline.com/forums/showthread.php?t=18047)

adam_monkeyman 11-28-2001 05:51 AM

tag adder (p2p only)
 
ok i need to know 3 scripts
the tag adder one for only 1 guild
the tag adder for any guild
and tag adder for temp. like in a game or something
plz i really need these, i'm asking cause i cant script very well =\

nyghtGT 11-28-2001 09:49 AM

here i'l explain:
NPC Code:

NPC Code:

// NPC made by Zorg
if (playerchats) {
if (startswith(addperson,#c)) {
tokenize #c;
setcharprop #c,Person Added!;
// #t(3) represents the guild name
// #t(1) represents the player(s) account name
// #t(2) represents the desired nickname
addguildmember #t(3),#t(1),#t(2);
sleep 1;
setcharprop #c,;
}
if (startswith(delperson,#c)) {
tokenize #c;
setcharprop #c,Bartender Removed!;
// #t(1) represents the player(s) account name
// #t(2) represents the desired nickname
removeguildmember #t(2),#t(1);
sleep 1;
setcharprop #c,;
}
}
}




so if i say 'addperson "nyghtGT" "Nyght GT" "LAT Admin"' it will make me the nickname Nyght GT (LAT Admin) .


All times are GMT +2. The time now is 05:52 AM.

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