- Feb 6, 2011
- 282
- 3
- 44
am trying to get the keymaker system setup thru sql, but everything i try is in vain.
would someone mind looking see if im missing anything plz?
;;不要删掉此行
[@Main]
{
#IF
#ACT
FormatStr "FLD_nume='%s' " %USERNAME
ReadValueSql "TBL_keymaker" %A9 "FLD_nume","FLD_NRKM" @LoadKeys
LineMsg [Grobal] "Congratulations <$USERNAME> For Killing NUMARUINS KeyMaker!"
[@LoadKeys()]
#ACT
Mov A1 %ARG(1)
Mov D1 %ARG(2)
#IF
Equal A1 ""
#ACT
MOV A1 %USERNAME
MOV D1 %D1
eventMsg [Grobal] "Congratulations <$USERNAME> For Killing NUMARUINS KeyMaker!"
FormatStr " '%s',%s" %A1 1
Mov A8 %A9
FormatStr "FLD_nume='%s' " %A1
WriteValueSql "TBL_keymaker" %A9 "FLD_nume","FLD_NRKM" %A8
eventMsg [Grobal] "Congratulations <$USERNAME> For Killing NUMARUINS KeyMaker!"
#elseact
INC D1 1
eventMsg "You received 1 NR Key for killing NRKeymaker"
FormatStr "FLD_NRKM='%s'" %D1
Mov A8 %A9
FormatStr "FLD_nume='%s' " %A1
UpdateValueSql "TBL_keymaker" %A9 %A8
break
}
;;不要删掉此行
---------- Post added at 08:31 PM ---------- Previous post was at 08:29 PM ----------
i can get the keymaker to spawn where he should do and after kill him i get the eventmessage on screen but key doesnt go into d-menu where i want it to
would someone mind looking see if im missing anything plz?
;;不要删掉此行
[@Main]
{
#IF
#ACT
FormatStr "FLD_nume='%s' " %USERNAME
ReadValueSql "TBL_keymaker" %A9 "FLD_nume","FLD_NRKM" @LoadKeys
LineMsg [Grobal] "Congratulations <$USERNAME> For Killing NUMARUINS KeyMaker!"
[@LoadKeys()]
#ACT
Mov A1 %ARG(1)
Mov D1 %ARG(2)
#IF
Equal A1 ""
#ACT
MOV A1 %USERNAME
MOV D1 %D1
eventMsg [Grobal] "Congratulations <$USERNAME> For Killing NUMARUINS KeyMaker!"
FormatStr " '%s',%s" %A1 1
Mov A8 %A9
FormatStr "FLD_nume='%s' " %A1
WriteValueSql "TBL_keymaker" %A9 "FLD_nume","FLD_NRKM" %A8
eventMsg [Grobal] "Congratulations <$USERNAME> For Killing NUMARUINS KeyMaker!"
#elseact
INC D1 1
eventMsg "You received 1 NR Key for killing NRKeymaker"
FormatStr "FLD_NRKM='%s'" %D1
Mov A8 %A9
FormatStr "FLD_nume='%s' " %A1
UpdateValueSql "TBL_keymaker" %A9 %A8
break
}
;;不要删掉此行
---------- Post added at 08:31 PM ---------- Previous post was at 08:29 PM ----------
i can get the keymaker to spawn where he should do and after kill him i get the eventmessage on screen but key doesnt go into d-menu where i want it to