Hi,
Recently tried to make a KR like euro mir3(You need to kill a certain amount of mobs for it to entre).
I had problems and asked idabiga and he came up with this.
[@Main]
#IF
#ACT
FormatStr "FLD_Cave ='AN'"
ReadValueSql "TBL_A" %A9 "FLD_Killed" @GetKilledQty
[@GetKilledQty()]
#ACT
Mov D1 %ARG(1)
#IF
Small D1 100
#ACT
Inc D1 1
FormatStr "FLD_Killed=%s" %D1
Mov A8 %A9
FormatStr "FLD_Cave ='AN'"
UpdateValueSql "TBL_A" "FLD_Cave ='AN'" %A9 %A8
Break
#SAY
Kills so far = <$OUTPUT(D1)>\\
#IF
#SAY
You have now killed 100 Things
This works and increases the amount of mobs killed but what i want done is for everyone to be able to increase it toghether. The problem atm is if its set to 100 and a new person kills a mob it resets backdown to 1.
Ive tried the INCVALUESQL command and it doesnt work
Think some other people will be intrested in this also, anyone got idears?
Recently tried to make a KR like euro mir3(You need to kill a certain amount of mobs for it to entre).
I had problems and asked idabiga and he came up with this.
[@Main]
#IF
#ACT
FormatStr "FLD_Cave ='AN'"
ReadValueSql "TBL_A" %A9 "FLD_Killed" @GetKilledQty
[@GetKilledQty()]
#ACT
Mov D1 %ARG(1)
#IF
Small D1 100
#ACT
Inc D1 1
FormatStr "FLD_Killed=%s" %D1
Mov A8 %A9
FormatStr "FLD_Cave ='AN'"
UpdateValueSql "TBL_A" "FLD_Cave ='AN'" %A9 %A8
Break
#SAY
Kills so far = <$OUTPUT(D1)>\\
#IF
#SAY
You have now killed 100 Things
This works and increases the amount of mobs killed but what i want done is for everyone to be able to increase it toghether. The problem atm is if its set to 100 and a new person kills a mob it resets backdown to 1.
Ive tried the INCVALUESQL command and it doesnt work
Think some other people will be intrested in this also, anyone got idears?