NPC store

smoochy boys on tour

Raffis

Dedicated Member
Dedicated Member
Dec 9, 2008
69
1
34
hello i change and wrote script for store in game, but i have problem. when i want put something to store i haven't window with my bag. if i want take something from store- window is opened. i don't know where is mistake. It's this script:
Code:
%100

[@main]
#SAY
hi <$USERNAME>. can i help you?
\
<put item./@storage>\
<remove from store/@NPC_Getback1>\
<set password./@Manage_PassWord>\
<exit./@exit>

[@Storage]
#SAY
what you want put?\
\
<Exit./@exit>


[@NPC_Getback]
#SAY
What you want remove from store?\\
\
<Back./@main>

[@Manage_PassWord]
#ACT
mov  A0  %PASSWD(9)
#IF
equal A0  ""
#SAY
You haven't password.\
Write old pass, then new pass.\
\
<Write password./@@*10_enter_stgpasswd>
#ELSESAY
Wanna change your pass?\
\
<yes./@chg>

[@chg]
#SAY
Write old pass, then new pass.\
{FCOLOR/10}(Max. 10 sign.){FCOLOR/12}\
\
<My old pass is.../@@*10_enter_stgpasswd>

[@@*10_enter_stgpasswd]
#ACT
mov  A0  %PASSWD(9)
mov  A1  %INPUTSTR
#IF
equal A0 %A1
#SAY
Write you new pass.\
{FCOLOR/10}(Max. 10 sign.){FCOLOR/12}\
\
<Write your new pass./@@*10_Change_stgpasswd>\
#ELSESAY
Password mistake.\
\
<Once more./@Manage_PassWord>\

[@@*10_Change_stgpasswd]
#ACT
mov  A0  %INPUTSTR
#SAY
<Confirm you pass./@@*10_confirm_passwd>\

[@@*10_confirm_passwd]
#ACT
mov A1 %INPUTSTR
#IF
equal  A0  %A1
#ACT
SavePasswd  %A0
#SAY
Password changed..\
\
<Exit./@exit>
#ELSESAY
Password mistake.\
\
<Wyjdź./@exit>

[@NPC_Getback1]
#ACT
mov  A0  %PASSWD(9)
#IF
equal A0  ""
#SAY
You haven't password in store.\
\
<Take item from store./@Getback>\
<exit./@exit>
#ELSESAY
<Write you password./@@*10_Input_stgpasswd>

[@@*10_Input_stgpasswd]
#IF
#ACT
mov  A0  %PASSWD(9)
mov  A1  %INPUTSTR
#IF
equal A0 %A1
#SAY
<Take item from store./@Getback>\
<Exit./@exit>
#ELSESAY
Password mistake.\
\
<Once more./@NPC_Getback1>\
<Exit./@exit>
btw. password working in my script- if somebody need, only copy this

--------------
EDIT:
now its all working :) i do this alone hyhy, but meaby somebody use this in future
 
Last edited: