Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Tailor (https://forums.graalonline.com/forums/showthread.php?t=60336)

alissalee 08-03-2005 03:26 PM

Tailor
 
i have a porblem can some one tell me if this scirpt works becoues it wont for me help
//#CLIENTSIDE

if (playerchats && startswith(/skin,#c)) {setplayerprop #C0,#t(1);}
if (playerchats && startswith(/coat,#c)) {setplayerprop #C1,#t(1);}
if (playerchats && startswith(/sleeves,#c)) {setplayerprop #C2,#t(1);}
if (playerchats && startswith(/shoes,#c)) {setplayerprop #C3,#t(1);}
if (playerchats && startswith(/belt,#c)) {setplayerprop #C4,#t(1);}
if (weaponfired) {say2 Commands:#b/skin color#b/coat color#b/sleeves color#b/shoes color#b/belt color#b;}

xAndrewx 08-03-2005 03:53 PM

Quote:

Originally Posted by alissalee
//#CLIENTSIDE
if (playerchats){
tokenize #c;
if (startswith(/skin,#c))setplayerprop #C0,#t(1);
if (startswith(/coat,#c))setplayerprop #C1,#t(1);
if (startswith(/sleeves,#c))setplayerprop #C2,#t(1);
if (startswith(/shoes,#c))setplayerprop #C3,#t(1);
if (startswith(/belt,#c))setplayerprop #C4,#t(1);
}
if (weaponfired) {say2 Commands:#b/skin color#b/coat color#b/sleeves color#b/shoes color#b/belt color#b;}

And that is one ugly piece of code!

hotrian 08-03-2005 03:53 PM

o.o
Make it

NPC Code:

if (playerchats) {
tokenize #c;
if (strequals(#t(0),/skin)) {setplayerprop #C0,#t(1);}
if (strequals(#t(0),/coat)) {setplayerprop #C1,#t(1);}
}



Like that
Otherwise it doesnt know what #t(1) is.

alissalee 08-03-2005 04:21 PM

//#CLIENTSIDE
if (playerchats){
tokenize #c;
if (strequals(#t(0),/skin)) {setplayerprop #C0,#t(1);}
if (strequals(#t(0),/coat)) {setplayerprop #C1,#t(1);}
if (strequals(#t(0),/skin)) {setplayerprop #C2,#t(1);}
if (strequals(#t(0),/coat)) {setplayerprop #C3,#t(1);}
}
if (weaponfired) {say2 Commands:#b/skin color#b/coat color#b/sleeves color#b/shoes color#b/belt color#b;}
still wont work

hotrian 08-03-2005 04:36 PM

Well, Besides that you used Skin and Coat twice....


All times are GMT +2. The time now is 02:30 PM.

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