Graal Forums

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

XeroMaster 01-07-2002 10:18 AM

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

dragoonvenganc 01-07-2002 10:21 AM

u could set the head to a client.string...
and then reaccess it later..

joseyisleet 01-07-2002 01:56 PM

Xero,
I do believe that someone done this earlier on the forum. Look through the posts before posting.

TDO2000 01-07-2002 09:12 PM

http://forums.graal2001.com/forums/s...threadid=20401

Shard_IceFire 01-07-2002 09:47 PM

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.

btedji 01-07-2002 11:42 PM

Quote:

Originally posted by TDO2000
http://forums.graal2001.com/forums/s...threadid=20401
Its funny he even started the thread

mikepg 01-08-2002 04:05 AM

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 :)

TDO2000 01-08-2002 04:57 AM

Quote:

Originally posted by btedji


Its funny he even started the thread

X_x
normal person had understand everything aftr reading the thread :/

XeroMaster 01-08-2002 09:36 AM

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

TDO2000 01-09-2002 03:09 AM

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...

Poogle 01-09-2002 07:59 AM

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!

Poogle 01-09-2002 08:37 AM

btw #2 is sword

WHIPENIE4 01-09-2002 08:50 AM

[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, ; }


Sennema 01-09-2002 10:11 AM

Quote:

Originally posted by Poogle
btw #2 is sword
I thought #1 was. But then again I usually don't play with the sword.

Kumada 01-09-2002 06:06 PM

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;
}


Shard_IceFire 01-09-2002 11:29 PM

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.

Xaviar 01-09-2002 11:31 PM

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


All times are GMT +2. The time now is 04:25 AM.

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