Whats Wrong in this code??

awadhero

EGYMIR Team Dev.
Veteran
Mar 17, 2009
815
9
105
EGYMIR Lands
hiya,
i wanted to make a Orb increase DC or mc or sc from 1 to 5 .but it works only if the server is chose to let the orb do +1 upgrade but if its chose to let the orb do +2 or +3 upgrade opration, the orb does not do any thing .<soz if i dont explain the problem well but i hope u check the code and tell me wats wrong into it>

Code:
[@StdmodeFunc45]
#IF
checkitem SpecialOrb
#SAY
I See You Have Found A SpecialOrb.\
You can choose btw DC,MC and SC to be increased\
and you can use it on weapons only.it can increase\
up to +5.what would you like to choose ?\ \
<Increase DC/@incDC> - <Increase MC/@incMC> - <Increase SC/@incSC>\
<exit/@exit1>

[@exit1]
#ACT
Give SpecialOrb 1
close

[@incDC]
#IF
RANDOM 10
#ACT
UPGRADEITEMEX 1 0 2 1 0
close
#IF
RANDOM 10
#ACT
UPGRADEITEMEX 1 0 2 2 0
close
#IF
RANDOM 12
#ACT
UPGRADEITEMEX 1 0 2 3 0
close
#IF
RANDOM 13
#ACT
UPGRADEITEMEX 1 0 2 4 0
close
#IF
RANDOM 15
#ACT
UPGRADEITEMEX 1 0 2 5 0
close




[@incMC]
#IF
RANDOM 10
#ACT
UPGRADEITEMEX 1 1 2 1 0
close
break
#IF
RANDOM 10
#ACT
UPGRADEITEMEX 1 1 2 2 0
close
BREAK
#IF
RANDOM 12
#ACT
UPGRADEITEMEX 1 1 2 3 0
close
BREAK
#IF
RANDOM 13
#ACT
UPGRADEITEMEX 1 1 2 4 0
close
BREAK
#IF
RANDOM 15
#ACT
UPGRADEITEMEX 1 1 2 5 0
close
BREAK



[@incSC]
#IF
RANDOM 10
#ACT
UPGRADEITEMEX 1 2 2 1 0
close
break
#IF
RANDOM 10
#ACT
UPGRADEITEMEX 1 2 2 2 0
close
BREAK
#IF
RANDOM 12
#ACT
UPGRADEITEMEX 1 2 2 3 0
close
BREAK
#IF
RANDOM 13
#ACT
UPGRADEITEMEX 1 2 2 4 0
close
BREAK
#IF
RANDOM 15
#ACT
UPGRADEITEMEX 1 2 2 5 0
close
BREAK
 

ThreeHeroes

LOMCN Veteran
Veteran
May 6, 2009
551
3
104
[@StdmodeFunc45]
#IF
checkitem SpecialOrb
#SAY
I See You Have Found A SpecialOrb.\
You can choose btw DC,MC and SC to be increased\
and you can use it on weapons only.it can increase\
up to +5.what would you like to choose ?\ \
<Increase DC/@incDC> - <Increase MC/@incMC> - <Increase SC/@incSC>\
<exit/@exit1>
#ELSEACT
GIVE SpecialOrb 1
GOTO @No
BREAK

[@No]
#if
#act
GIVE SpecialOrb 1
#SAY
You need a special orb to use my services.

[@incDC]
#IF
RANDOM 10
#ACT
UPGRADEITEMEX 1 0 2 1 0
TAKE SpecialOrb 1
BREAK
#IF
RANDOM 10
#ACT
UPGRADEITEMEX 1 0 2 2 0
TAKE SpecialOrb 1
BREAK
#IF
RANDOM 12
#ACT
UPGRADEITEMEX 1 0 2 3 0
TAKE SpecialOrb 1
BREAK
#IF
RANDOM 13
#ACT
UPGRADEITEMEX 1 0 2 4 0
TAKE SpecialOrb 1
BREAK
#IF
RANDOM 15
#ACT
UPGRADEITEMEX 1 0 2 5 0
TAKE SpecialOrb 1
BREAK
#ELSEACT
TAKE SpecialOrb 1
GOTO @NoDC
BREAK

[@NoDC]
#SAY
The Orb failed to upgrade your weapon
 
Last edited:
Upvote 0