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 01-07-2002, 10:18 AM
XeroMaster XeroMaster is offline
Registered User
Join Date: Dec 2001
Location: Washington-=USA=-
Posts: 143
XeroMaster is on a distinguished road
Send a message via AIM to XeroMaster Send a message via Yahoo to XeroMaster
saving?

if (playersays(Save1))
{savehead (playershead);
setcloths (playerscloths);
ect...;}
if (playersays(Load1))
{loadplayerscloths(slot1)}

is this no were nere the script...
can some one help me script it?
thanks
__________________
OUT OF MY MIND!
BACK IN 5 MIN.
AIM=Da First Bug
[email protected]
Reply With Quote
  #2  
Old 01-07-2002, 10:21 AM
dragoonvenganc dragoonvenganc is offline
Registered User
Join Date: Jul 2001
Location: USA
Posts: 331
dragoonvenganc is on a distinguished road
Send a message via ICQ to dragoonvenganc Send a message via AIM to dragoonvenganc
u could set the head to a client.string...
and then reaccess it later..
__________________
Dragoon Vengance
Owner of Pangea Relics of Time
P2P Rp server
For info or job
Email: [email protected]
aim: dragoonvengnc
Reply With Quote
  #3  
Old 01-07-2002, 01:56 PM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
Xero,
I do believe that someone done this earlier on the forum. Look through the posts before posting.
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #4  
Old 01-07-2002, 09:12 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
http://forums.graal2001.com/forums/s...threadid=20401
__________________
No Webhost at the moment
Reply With Quote
  #5  
Old 01-07-2002, 09:47 PM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
I actually have that script on my PW...
here's an example:
NPC Code:

if (playerchats&&strequals(#c,save head1)) {
setstring client.head1,#2;
}
if (playerchats&&strequals(#c,load head1)) {
setplayerprop #2,#s(client.head1);
}


I think #2 is the head, let me know if that's wrong.
__________________

-=Shard IceFire=-
Reply With Quote
  #6  
Old 01-07-2002, 11:42 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
Quote:
Originally posted by TDO2000
http://forums.graal2001.com/forums/s...threadid=20401
Its funny he even started the thread
Reply With Quote
  #7  
Old 01-08-2002, 04:05 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
Quote:
Originally posted by Shard_IceFire
I actually have that script on my PW...
here's an example:
NPC Code:

if (playerchats&&strequals(#c,save head1)) {
setstring client.head1,#2;
}
if (playerchats&&strequals(#c,load head1)) {
setplayerprop #2,#s(client.head1);
}


I think #2 is the head, let me know if that's wrong.
Youre wrong Its #3.
as for the commands you used xerox....like 2 of them are real. It isnt that simple. you can't just make your own commands and make up predefined variables.

Use the strings in the Message Code section.
and use setstring client.<cloths article>,#<use number or character that represents the clothing>;

then you have to load them by using
setplayerprop #<cloths article>,#s(client.<cloths article>;
assuming that you understand that things in <> are not literal, and represent other values
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote
  #8  
Old 01-08-2002, 04:57 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 btedji


Its funny he even started the thread
X_x
normal person had understand everything aftr reading the thread :/
__________________
No Webhost at the moment
Reply With Quote
  #9  
Old 01-08-2002, 09:36 AM
XeroMaster XeroMaster is offline
Registered User
Join Date: Dec 2001
Location: Washington-=USA=-
Posts: 143
XeroMaster is on a distinguished road
Send a message via AIM to XeroMaster Send a message via Yahoo to XeroMaster
ya.....

i did start the other post but it got ON WERE...
they told me how to load a head but not ow to save one....

it is very easy to load one
__________________
OUT OF MY MIND!
BACK IN 5 MIN.
AIM=Da First Bug
[email protected]
Reply With Quote
  #10  
Old 01-09-2002, 03:09 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: ya.....

Quote:
Originally posted by XeroMaster
i did start the other post but it got ON WERE...
they told me how to load a head but not ow to save one....

it is very easy to load one
Um u can find HOW to save the head and stuff in the other post...
plz learn reading...
__________________
No Webhost at the moment
Reply With Quote
  #11  
Old 01-09-2002, 07:59 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
Quote:
Originally posted by Shard_IceFire
I actually have that script on my PW...
here's an example:
NPC Code:

if (playerchats&&strequals(#c,save head1)) {
setstring client.head1,#2;
}
if (playerchats&&strequals(#c,load head1)) {
setplayerprop #2,#s(client.head1);
}


I think #2 is the head, let me know if that's wrong.
#3 (diddnt look) i am 100% sure!
Reply With Quote
  #12  
Old 01-09-2002, 08:37 AM
Poogle Poogle is offline
Registered User
Poogle's Avatar
Join Date: Jun 2001
Posts: 2,471
Poogle is on a distinguished road
btw #2 is sword
Reply With Quote
  #13  
Old 01-09-2002, 08:50 AM
WHIPENIE4 WHIPENIE4 is offline
I am X-Mann
Join Date: Aug 2001
Location: PA
Posts: 2,715
WHIPENIE4 is on a distinguished road
Send a message via ICQ to WHIPENIE4 Send a message via AIM to WHIPENIE4
[screen_name says:]

NPC Code:

// NPC made by screen_name
// NPC Name: SaLo Player Look
if (playersays(save 0)) {
setstring client.save0,#3,#C0,#C1,#C2,#C3,#C4,#C5,#8;
setplayerprop #c, ; }

if (playersays(load 0)) {
setplayerprop #3, #I(client.save0,0);
setplayerprop #C0, #I(client.save0,1);
setplayerprop #C1, #I(client.save0,2);
setplayerprop #C2, #I(client.save0,3);
setplayerprop #C3, #I(client.save0,4);
setplayerprop #C4, #I(client.save0,5);
setplayerprop #C5, #I(client.save0,6);
setplayerprop #8, #I(client.save0,7);
setplayerprop #c, ; }

__________________
Mind over Matter. If your body dont mind, why does it matter?

- X-Mann (Blessing Graal since 1998) Haha

- Graal 2000 Project (Contact Me to get Apart of this expierience

Windows Vista. Graal. Not a Good Combination.
Reply With Quote
  #14  
Old 01-09-2002, 10:11 AM
Sennema Sennema is offline
Registered User
Join Date: Nov 2001
Location: Ontario, Canada
Posts: 132
Sennema is on a distinguished road
Send a message via ICQ to Sennema Send a message via AIM to Sennema
Quote:
Originally posted by Poogle
btw #2 is sword
I thought #1 was. But then again I usually don't play with the sword.
__________________
~Draemus Windblade


Just over 90% of all messages have no point or meaning.

"In order to preserve ourselves we seek out and eliminate anything that may do use harm. In doing so, we destroy things that, though possibly hazzardous, may be important to survival. So you see, in trying to save ourselves, we ultimately bring about our own destruction"


Luminar
Reply With Quote
  #15  
Old 01-09-2002, 06:06 PM
Kumada Kumada is offline
Ded
Kumada's Avatar
Join Date: Nov 2001
Location: Usa
Posts: 1,088
Kumada is on a distinguished road
Quote:
Originally posted by WHIPENIE4
[screen_name says:]

NPC Code:

// NPC made by screen_name
// NPC Name: SaLo Player Look
if (playersays(save 0)) {
setstring client.save0,#3,#C0,#C1,#C2,#C3,#C4,#C5,#8;
setplayerprop #c, ; }

if (playersays(load 0)) {
setplayerprop #3, #I(client.save0,0);
setplayerprop #C0, #I(client.save0,1);
setplayerprop #C1, #I(client.save0,2);
setplayerprop #C2, #I(client.save0,3);
setplayerprop #C3, #I(client.save0,4);
setplayerprop #C4, #I(client.save0,5);
setplayerprop #C5, #I(client.save0,6);
setplayerprop #8, #I(client.save0,7);
setplayerprop #c, ; }

Dont use playersays.. -_-
change the top with this.

NPC Code:

if (playerchats&&strequals(#c,save 0)) {
setstring client.save0,#3,#C0,#C1,#C2,#C3,#C4,#C5,#8;
}

__________________
Aim: Mmm Kumada

Reply With Quote
  #16  
Old 01-09-2002, 11:29 PM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
Ok I see people use "playersays" quite frequently. As I recall, quite a long time ago stefan said playersays no longer is a valid command, and that you have to use "playerchats&&strequals(#c,))". I remember him saying that like almost a year ago.
__________________

-=Shard IceFire=-
Reply With Quote
  #17  
Old 01-09-2002, 11:31 PM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
Quote:
Originally posted by Shard_IceFire
Ok I see people use "playersays" quite frequently. As I recall, quite a long time ago stefan said playersays no longer is a valid command, and that you have to use "playerchats&&strequals(#c,))". I remember him saying that like almost a year ago.
Hehe, playersays pisses me off
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
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 01:34 AM.


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