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 11-16-2001, 01:41 AM
Onyx_Brasil Onyx_Brasil is offline
Registered User
Join Date: Oct 2001
Location: Jundiai, SP, Brazil
Posts: 35
Onyx_Brasil is on a distinguished road
Send a message via AIM to Onyx_Brasil
Question SetHead,Setsword,setbody,setshield

Hey, can someone say to me what i have to put in a level to when i say"setbody body1.gif" it changes and with setshield,setsword the same thing,,, what i have to do?
Reply With Quote
  #2  
Old 11-16-2001, 01:48 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
use this offline tailor NPC i made its kinda neat ...
NPC Code:

NPC Code:

// NPC Made By Nyght
if (created) {
setgif clotheshelper_icon.png;
}
if (playertouchsme) {
toweapons Tailor;
}
if (playerchats && startswith(skin,#c)) {
tokenize #c;
setplayerprop #C0,#t(1);
}
if (playerchats && startswith(coat,#c)) {
tokenize #c;
setplayerprop #C1,#t(1);
}
if (playerchats && startswith(sleeves,#c)) {
tokenize #c;
setplayerprop #C2,#t(1);
}
if (playerchats && startswith(shoes,#c)) {
tokenize #c;
setplayerprop #C3,#t(1);
}
if (playerchats && startswith(belt,#c)) {
tokenize #c;
setplayerprop #C4,#t(1);
}
if (playerchats && startswith(setsword,#c)) {
tokenize #c;
setplayerprop #1,#(1);
}
if (playerchats && startswith(setshield,#c)) {
tokenize #c;
setplayerprop #2,#(1);
}
if (playerchats && startswith(sethead,#c)) {
tokenize #c;
setplayerprop #3,#(1);
}
if (playerchats && startswith(setbody,#c)) {
tokenize #c;
setplayerprop #4,#t(1);
}
if (playersays(save clothes)) {
setstring client.saveclothes,#C0 #C1 #C2 #C3 #C4 #1 #2 #3 #4;
}
if (playersays(apply clothes)) {
tokenize #s(client.saveclothes);
setplayerprop #C0,#t(0);
setplayerprop #C1,#t(1);
setplayerprop #C2,#t(2);
setplayerprop #C3,#t(3);
setplayerprop #C4,#t(4);
setplayerprop #1,#t(5);
setplayerprop #2,#t(6);
setplayerprop #3,#t(7);
setplayerprop #4,#t(8);
}




its a fairly simple script so i aint gonna bug you about stealing it but if you need any parts explained please let me know .... Also there is a clothing saver i added to it .... pretty neat ....
Reply With Quote
  #3  
Old 11-16-2001, 01:50 AM
Onyx_Brasil Onyx_Brasil is offline
Registered User
Join Date: Oct 2001
Location: Jundiai, SP, Brazil
Posts: 35
Onyx_Brasil is on a distinguished road
Send a message via AIM to Onyx_Brasil
WOW MAN, thanks a lot

thanks man, i wont stole it, i will use it in a ofline level because i am doing some heads, and i want to see how they are there, and i cant change the head and the other things,, but now i can!
Reply With Quote
  #4  
Old 11-16-2001, 01:51 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
k ...
Reply With Quote
  #5  
Old 11-16-2001, 03:05 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Quote:
Originally posted by nyghtGT
use this offline tailor NPC i made its kinda neat ...
NPC Code:

NPC Code:

// NPC Made By Nyght
if (created) {
setgif clotheshelper_icon.png;
}
if (playertouchsme) {
toweapons Tailor;
}
if (playerchats && startswith(skin,#c)) {
tokenize #c;
setplayerprop #C0,#t(1);
}
if (playerchats && startswith(coat,#c)) {
tokenize #c;
setplayerprop #C1,#t(1);
}
if (playerchats && startswith(sleeves,#c)) {
tokenize #c;
setplayerprop #C2,#t(1);
}
if (playerchats && startswith(shoes,#c)) {
tokenize #c;
setplayerprop #C3,#t(1);
}
if (playerchats && startswith(belt,#c)) {
tokenize #c;
setplayerprop #C4,#t(1);
}
if (playerchats && startswith(setsword,#c)) {
tokenize #c;
setplayerprop #1,#(1);
}
if (playerchats && startswith(setshield,#c)) {
tokenize #c;
setplayerprop #2,#(1);
}
if (playerchats && startswith(sethead,#c)) {
tokenize #c;
setplayerprop #3,#(1);
}
if (playerchats && startswith(setbody,#c)) {
tokenize #c;
setplayerprop #4,#t(1);
}
if (playersays(save clothes)) {
setstring client.saveclothes,#C0 #C1 #C2 #C3 #C4 #1 #2 #3 #4;
}
if (playersays(apply clothes)) {
tokenize #s(client.saveclothes);
setplayerprop #C0,#t(0);
setplayerprop #C1,#t(1);
setplayerprop #C2,#t(2);
setplayerprop #C3,#t(3);
setplayerprop #C4,#t(4);
setplayerprop #1,#t(5);
setplayerprop #2,#t(6);
setplayerprop #3,#t(7);
setplayerprop #4,#t(8);
}




its a fairly simple script so i aint gonna bug you about stealing it but if you need any parts explained please let me know .... Also there is a clothing saver i added to it .... pretty neat ....
1. DO NOT USE PLAYERSAYS (running around crying)
2. this can be short...
__________________
No Webhost at the moment
Reply With Quote
  #6  
Old 11-16-2001, 04:32 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Quote:
Originally posted by TDO2000


1. DO NOT USE PLAYERSAYS (running around crying)
2. this can be short...
by shorter do you mean:

if (playerchats && startswith(change,#c)) {
tokenize #c;
set#t(1)color #t(2);
}

and i say 'change item color'

Last edited by nyghtGT; 11-16-2001 at 04:39 AM..
Reply With Quote
  #7  
Old 01-26-2002, 02:49 AM
Essenity Essenity is offline
Registered User
Join Date: Dec 2001
Location: Shaded Legends
Posts: 22
Essenity is on a distinguished road
Send a message via ICQ to Essenity Send a message via AIM to Essenity Send a message via Yahoo to Essenity
You could also do instead of tokenize... just a thought..

if (playerchats) {
if (strequals(#e(0,6,#c),skin: )) setplayerprop #C0,#e(6,-1,#c);
if (strequals(#e(0,6,#c),coat: )) setplayerprop #C1,#e(6,-1,#c);
if (strequals(#e(0,9,#c),sleeves: )) setplayerprop #C2,#e(9,-1,#c);
if (strequals(#e(0,7,#c),shoes: )) setplayerprop #C3,#e(7,-1,#c);
if (strequals(#e(0,6,#c),belt: )) setplayerprop #C4,#e(6,-1,#c);

}
__________________
~ Enfinityy (Chill)
since Graal Gold, Nov 1998
Reply With Quote
  #8  
Old 01-26-2002, 04:10 AM
Kadar Kadar is offline
Registered User
Join Date: Jan 2002
Posts: 636
Kadar is on a distinguished road
Re: SetHead,Setsword,setbody,setshield

Quote:
Originally posted by Onyx_Brasil
Hey, can someone say to me what i have to put in a level to when i say"setbody body1.gif" it changes and with setshield,setsword the same thing,,, what i have to do?
It can be enabled serverside in Serveroptions.txt
__________________
Reply With Quote
  #9  
Old 01-26-2002, 05:32 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Re: Re: SetHead,Setsword,setbody,setshield

Quote:
Originally posted by Kadar

It can be enabled serverside in Serveroptions.txt
he wanted it offline and I don't think he won't an help after 2 month...
__________________
No Webhost at the moment
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 10:43 PM.


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