Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-03-2005, 03:26 PM
alissalee alissalee is offline
Mr. Ciprioni Atrius Admin
alissalee's Avatar
Join Date: Dec 2004
Location: Lawrence, Ma
Posts: 190
alissalee is an unknown quantity at this point
Send a message via AIM to alissalee Send a message via MSN to alissalee
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;}
Reply With Quote
  #2  
Old 08-03-2005, 03:53 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
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!
__________________
Reply With Quote
  #3  
Old 08-03-2005, 03:53 PM
hotrian hotrian is offline
Who?
Join Date: May 2003
Location: Eatonville, Washington, 98328
Posts: 56
hotrian is on a distinguished road
Send a message via AIM to hotrian Send a message via MSN to hotrian
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.
Reply With Quote
  #4  
Old 08-03-2005, 04:21 PM
alissalee alissalee is offline
Mr. Ciprioni Atrius Admin
alissalee's Avatar
Join Date: Dec 2004
Location: Lawrence, Ma
Posts: 190
alissalee is an unknown quantity at this point
Send a message via AIM to alissalee Send a message via MSN to alissalee
//#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
Reply With Quote
  #5  
Old 08-03-2005, 04:36 PM
hotrian hotrian is offline
Who?
Join Date: May 2003
Location: Eatonville, Washington, 98328
Posts: 56
hotrian is on a distinguished road
Send a message via AIM to hotrian Send a message via MSN to hotrian
Well, Besides that you used Skin and Coat twice....
Reply With Quote
Reply


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 12:40 AM.


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