im trying to create a new function, but im highly stuck on how i could get this npc working. im only working from previous untranslated scripts so its quite hard. this is what i have so far
What i want to do is get person A to enter a password. the npc then needs to store that password in a table. Person B then opens the npc, is asked to enter the password. Another input string is needed to be used, and has to match with the current value in the table.
Im quite sure this is possible. but im stuck on how to do it.
Any help would be greatly apprieciated.
Code:
[@main]
#IF
#SAY
Please input your password
#ACT
mov D4 %INPUTSTR
goto @next
[@next]
#IF
#ACT
FormatStr "FLD_PASS='%s'" "PASSRANDOM"
UpdateValueSql "TBL_Password" %D4 "FLD_PASSID='001',FLD_PASSCONDITION='End'"
What i want to do is get person A to enter a password. the npc then needs to store that password in a table. Person B then opens the npc, is asked to enter the password. Another input string is needed to be used, and has to match with the current value in the table.
Im quite sure this is possible. but im stuck on how to do it.
Any help would be greatly apprieciated.