Code:
[@Swordmanship]
#IF
chkmagiclevel Swordmanship 0
#SAY
You have swordmanship already...\
#ELSEACT
FormatStr "FLD_Char='%s'" %USERNAME
ReadValueSql "TBL_SKPts" %A9 "FLD_Char,FLD_Points" [@swordmanship1]
[@swordmanship1]
#IF
ELARGE D1 5
#ACT
Dec D1 5
FormatStr "FLD_Char='%s'" %USERNAME
Mov A8 %A9
FormatStr "FLD_Points='%s'" %D1
UPDATEVALUESQL "TBL_SKPts" %A8 %A9
[B]actcmd ADDSKILL Swordmanship[/B]
#SAY
DONE\
#ELSESAY
You do not have enough skill points.\
<Back/@main>___<Exit/@exit>\
well i dont know whats wrong exactly.. the only thing that i can spot is wrong is
Code:
actcmd ADDSKILL swordmanship
If i take out actcmd ADDSKILL and run the script to see if it works.. i click the link and nothing happens
It dont take my points or give me a message.. nowt
any help appreciated, ty /TDID