upgrading a weapon. not working properly.

Mu online season 21 - grand opening

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,709
35
3,357
520
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.

;;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?
 

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,709
35
3,357
520
ah right ok. thats solved that issue then. im presuming you can still have like ice+3 though right?
 
Upvote 0

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,709
35
3,357
520
yeah didnt know. thanks. will keep it like it is then.

any ideas to why theres no limit to how many elements i can upgrade on my npc? sometimes it stops at 11, or 13, once it even went to 18.
 
Upvote 0

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,709
35
3,357
520
is there a way to have an npc window popup whenever your weapon levels up?
 
Upvote 0

Nightrider

~{GoD}~
VIP
Feb 21, 2004
1,122
19
265
Southampton,Uk
nah, basicly when ur weapon levels up it goes from Level 1 0.00% to level 2 0.01% ish then it won't level up anymore until u refine it u go to SW and refine it there usually :)
-Dan
 
Upvote 0

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,709
35
3,357
520
propper confused.

everytime the weapon levels up, you have to refine it to allow it to level further?

is this normal refine (which has a chance of breaking) or the atom refine?

real confused with method mir3 uses.
 
Upvote 0

mapadale

Guest
nah, basicly when ur weapon levels up it goes from Level 1 0.00% to level 2 0.01% ish then it won't level up anymore until u refine it u go to SW and refine it there usually :)
-Dan
Yes you can, you basically create a NPC that you click and it stores the weapons current level and % you then have it read that information from SQL and when it reachs the desired limit you can have it tell you in a popup.
 
Upvote 0

Far

tinmymouthpl0x
Staff member
Administrator
May 19, 2003
20,709
35
3,357
520
Yes you can, you basically create a NPC that you click and it stores the weapons current level and % you then have it read that information from SQL and when it reachs the desired limit you can have it tell you in a popup.

any idea how to do this mapa?

i dont like the fact u have to goto a refine npc everytime. want a system which gives u a popup everytime ur weapon levels up, so you can automatically upgrade it.
 
Upvote 0