i whant to make a key sistem that will allow ppl going in kr's (same as zedinas keymaker's) , i added a new table in game3g "TBL_keymaker" with 2 rows "FLD_nume" and "FLD_NRkey"
in mapquest i put this code
D1504 [0] 0 [MonDie] NumaRuinsKeyMaker * [MapQuest_Def\Mon_NRKM] [@Main] Group
in MapQuest_Def i added a txt file Mon_NRKM and in this i put this script
[@main]
#act
formatstr "FLD_nume='%s'" %username
ReadValueSQL "TBL_KeyMaker" %A9 "FLD_nume,FLD_NRkey" [@nextline]
[@nextline()]
#act
mov A1 %ARG(1)
mov D1 %ARG(2)
goto @givekey
#IF
equal A1 ""
#act
formatstr "'%s','%S'" %username 0
mov A8 %A9
FormatStr "FLD_nume='%S'" %username
Mov A2 %A9
WriteValueSql "TBL_Keymaker" %A2 "FLD_Username,FLD_NRkey" %A8
goto @givekey
[@givekey]
mov D7 1
formatstr "FLD_nume='%S'" %username
MOV A8 %A9
Formatstr "FLD_NRkey='%S'" %D7
updatevaluesql "TBL_KeyMaker" %A8 %A9
but after i make and kill a "numaruinskeymaker" in d1504 nothing happens in the sql table wot do i need to change to make it work ? ty
in mapquest i put this code
D1504 [0] 0 [MonDie] NumaRuinsKeyMaker * [MapQuest_Def\Mon_NRKM] [@Main] Group
in MapQuest_Def i added a txt file Mon_NRKM and in this i put this script
[@main]
#act
formatstr "FLD_nume='%s'" %username
ReadValueSQL "TBL_KeyMaker" %A9 "FLD_nume,FLD_NRkey" [@nextline]
[@nextline()]
#act
mov A1 %ARG(1)
mov D1 %ARG(2)
goto @givekey
#IF
equal A1 ""
#act
formatstr "'%s','%S'" %username 0
mov A8 %A9
FormatStr "FLD_nume='%S'" %username
Mov A2 %A9
WriteValueSql "TBL_Keymaker" %A2 "FLD_Username,FLD_NRkey" %A8
goto @givekey
[@givekey]
mov D7 1
formatstr "FLD_nume='%S'" %username
MOV A8 %A9
Formatstr "FLD_NRkey='%S'" %D7
updatevaluesql "TBL_KeyMaker" %A8 %A9
but after i make and kill a "numaruinskeymaker" in d1504 nothing happens in the sql table wot do i need to change to make it work ? ty
Last edited: