Ive made this script which shld upgrade your weapon a maximum of 5 times. then not allow anymore.
it works to the extent that upgrading normal attributes stops at 5 (eg strength, dc, magic, luck, curse etc)
but when upgrading the elements (fire,ice,dark etc) it just keeps adding on.
heres my script, can someone tell me what im doing wrong.
and also, when i upgrade 2 different elements, it just adds them together to the same element, not 2 seperate ones, is this hows its meant to be?
it works to the extent that upgrading normal attributes stops at 5 (eg strength, dc, magic, luck, curse etc)
but when upgrading the elements (fire,ice,dark etc) it just keeps adding on.
heres my script, can someone tell me what im doing wrong.
;;upgrade normal attributes (works fine)
[@UpDesc()]
#ACT
mov D0 %ARG(1)
mov D2 4
#IF
!HLSCRIPTCMD CHECKISTAKEITEM %D0
!HLSCRIPTCMD CHECKITEMAMULETCOUNT %D0 %D2
#ACT
Break
#SAY
#INCLUDE [..\Market_Spk\Weapons.txt] @noweapon
#IF
equal D0 1
HLSCRIPTCMD CHECKITEMAMULETCOUNT %D0 %D2
HLSCRIPTCMD CHECKISTAKEITEM %D0
#SAY
#INCLUDE [..\Market_Spk\Weapons.txt] @upgradechoice
#ELSESAY
#INCLUDE [..\Market_Spk\Weapons.txt] @limitreached
[@UpDescPoint()]
#ACT
mov D1 %ARG(1)
mov D2 4
HLSCRIPTCMD ITEMREMAKEADD %D0 %D1 1
#SAY
#INCLUDE [..\Market_Spk\Weapons.txt] @upgradedone
;;upgrade elements (just keeps upgrading)
[@UpDesc11]
#ACT
mov D0 1
mov D2 4
#IF
!HLSCRIPTCMD CHECKISTAKEITEM %D0
!HLSCRIPTCMD CHECKITEMAMULETCOUNT %D0 %D2
#ACT
Break
#IF
equal D0 1
HLSCRIPTCMD CHECKITEMAMULETCOUNT %D0 %D2
HLSCRIPTCMD CHECKISTAKEITEM %D0
#SAY
#INCLUDE [..\Market_Spk\Weapons.txt] @UpDesc11
#ELSESAY
#INCLUDE [..\Market_Spk\Weapons.txt] @limitreached
[@UpDesc12()]
#ACT
mov D1 %ARG(1)
HLSCRIPTCMD ITEMREMAKEEQU %D0 11 %D1
HLSCRIPTCMD ITEMREMAKEADD %D0 12 1
#SAY
#INCLUDE [..\Market_Spk\Weapons.txt] @upgradedone
and also, when i upgrade 2 different elements, it just adds them together to the same element, not 2 seperate ones, is this hows its meant to be?
