Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 06-20-2012, 06:29 PM
E_Man E_Man is offline
E-Man
E_Man's Avatar
Join Date: Jun 2012
Posts: 81
E_Man will become famous soon enough
Offline GS1 Commands

Just in case anyone wants to change their head with sethead or hat with sethat like on a server but in graal editor, here is a script you can use that has the same commands.

Quote:
if (created) {
hide;
toweapons Commands;
}
if (playerchats&&startswith(sethead,#c)) {
tokenize #c;
if (tokenscount==2) sethead #t(1);
}
if (playerchats&&startswith(setbody,#c)) {
tokenize #c;
if (tokenscount==2) setbody #t(1);
}
if (playerchats&&startswith(setsword,#c)) {
tokenize #c;
if (tokenscount==2) setplayerprop #1,#t(1);
}
if (playerchats&&startswith(setshield,#c)) {
tokenize #c;
if (tokenscount==2) setplayerprop #2,#t(1);
}
if (playerchats&&startswith(sethat,#c)) {
tokenize #c;
if (tokenscount==2) setplayerprop #P1,#t(1);
}
if (playerchats&&startswith(/skin,#c)) {
tokenize #c;
if (tokenscount==2) setplayerprop #C0,#t(1);
}
if (playerchats&&startswith(/coat,#c)) {
tokenize #c;
if (tokenscount==2) setplayerprop #C1,#t(1);
}
if (playerchats&&startswith(/sleeves,#c)) {
tokenize #c;
if (tokenscount==2) setplayerprop #C2,#t(1);
}
if (playerchats&&startswith(/shoes,#c)) {
tokenize #c;
if (tokenscount==2) setplayerprop #C3,#t(1);
}
if (playerchats&&startswith(/belt,#c)) {
tokenize #c;
if (tokenscount==2) setplayerprop #C4,#t(1);
}
if(playerchats&&strequals(#c,/sit)){
setani sit,;
}
if(playerchats&&strequals(#c,/pull)){
setani pull,;
}
if(playerchats&&strequals(#c,/push)){
setani push,;
}
if(playerchats&&strequals(#c,/dance)){
setani dance,;
}
if(playerchats&&strequals(#c,/grab)){
setani grab,;
}
if(playerchats&&strequals(#c,/walk)){
setani walk,;
}
if(playerchats&&strequals(#c,/dead)){
setani dead,;
}
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 01:00 PM.


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