i have this script for entering in a kr ,
all script work's fine exept u need to go into the door more then 1 time to go in , if ppl know to wait 1 sec betwen the trys to go in they get inside from second try but if they dont and they just smash into the door they cant go in untill they chill out for 1 sec :P , the problem is for ppl that wil use space and time in kr , they will have to use 2 space's and times to go in , and i would like to make it work from the first time , so when some1 go into the door(on the coords that are conected to kr) to go str8 in kr without backing up and try again , how should i change the script so the
enter_ok work from first time and only after when the char's in kr to take hes key and rs the bosses , cos from how i see it the scrips needs to wait for all the script to be read and used until the chars go inside
Code:
[@astKR]
#if
check [412] 1
#act
enter_ok
#elseact
goto @astkr_1
[@astkr_1]
#IF
#ACT
FormatStr "FLD_nume='%s'" %USERNAME
ReadValueSql "TBL_KeyMaker" %A9 "FLD_nume,FLD_astkey" @LoadKeys
[@LoadKeys()]
#ACT
Mov A1 %ARG(1)
Mov D1 %ARG(2)
#if
Large D1 0
#act
[COLOR="Red"]enter_ok[/COLOR]
delaygoto [LOCAL] 1 @enterast
#elseact
enter_fail
#elsesay
u have <$output(D1)> key's how do u whant to go in
[@enterast]
#if
CHECKHUM D705 1
#act
set [412] 1
Mov A1 %USERNAME
DEC D1 1
FormatStr "FLD_astkey=%s" %D1
Mov A8 %A9
FormatStr "FLD_nume='%s'" %A1
UpdateValueSql "TBL_KeyMaker" %A9 %A8
#elseact
goto @enterast1
[@enterast1]
#if
CHECKMONMAP "D705" 1 BoarKing
#act
set [412] 1
Mov A1 %USERNAME
DEC D1 1
FormatStr "FLD_astkey=%s" %D1
Mov A8 %A9
FormatStr "FLD_nume='%s'" %A1
UpdateValueSql "TBL_KeyMaker" %A9 %A8
#elseact
goto @enterast2
[@enterast2]
#if
CHECKMONMAP "D705" 1 WhiteBoar
#act
set [412] 1
Mov A1 %USERNAME
DEC D1 1
FormatStr "FLD_astkey=%s" %D1
Mov A8 %A9
FormatStr "FLD_nume='%s'" %A1
UpdateValueSql "TBL_KeyMaker" %A9 %A8
mongenp "D705,30,30,20" BoarKing 1
#elseact
set [412] 1
Mov A1 %USERNAME
DEC D1 1
FormatStr "FLD_astkey=%s" %D1
Mov A8 %A9
FormatStr "FLD_nume='%s'" %A1
UpdateValueSql "TBL_KeyMaker" %A9 %A8
mongenp "D705,30,30,20" BoarKing 1
mongenp "D705,30,30,20" WhiteBoar 2
all script work's fine exept u need to go into the door more then 1 time to go in , if ppl know to wait 1 sec betwen the trys to go in they get inside from second try but if they dont and they just smash into the door they cant go in untill they chill out for 1 sec :P , the problem is for ppl that wil use space and time in kr , they will have to use 2 space's and times to go in , and i would like to make it work from the first time , so when some1 go into the door(on the coords that are conected to kr) to go str8 in kr without backing up and try again , how should i change the script so the
enter_ok work from first time and only after when the char's in kr to take hes key and rs the bosses , cos from how i see it the scrips needs to wait for all the script to be read and used until the chars go inside