daniejam said:
would actually be ElseIf without break's
Not the way hes done it, it wouldn't. Hes done advanced scripting.
Hiya karl, i know we was mad at each other but at the moment im stationary and thought i would make an NPC for you as im bored in a Maths lesson where we have tablt PCs. I have sports day today
[@main]
Hello, how may i help?\
what you have an <Item/@item> for me?\
please <Give/@giveitem> it to me\
otherwise you can <leave/@exit>
[@item]
This item is a {fcolor/1}TreasureBox{fcolor/12}\
It can be opened by this NPC\
<Leave/@exit>\
[@giveitem]
#IF
checkitem TreasureBox 1
#ACT
goto @success
#ELSESAY
You don't have a <TreaureBox/@box>, so you\
can <Leave/@Exit>
[@box]
You can find these boxes from boss mobs\
they can be obtained from lords and high levels also\
this NPC will open the chest with a charge\
[@success]
#IF
checkgold 200000
checkitem TreasureBox 1
#ACT
take gold 200000
take TreasureBox 1
goto @rad
break
#ELSESAY
you dont meet the requirements of:\
{fcolor/1}Treasure Box{fcolor/12}\
Or\
{fcolor/10} 200k In Gold {fcolor/12}\
<Sorry, leave/@exit>\
[@rad]
#IF
random 7
#ACT
give ParalysisRing 1
break
#IF
random 6
#ACT
give ProtectionRing 1
break
#IF
random 5
#ACT
give MuscleRing 1
break
#IF
random 4
#ACT
give GoldChest 1
break
#IF
random 3
#ACT
give GoldBarBundle 1
break
#IF
random 2
#ACT
give GoldBar 1
break
#IF
random 1
#ACT
give BenedictionOil 3