My first ever script!

Mu online season 21 - grand opening

Simon180

Dedicated Member
Dedicated Member
Dec 13, 2006
54
11
34
Newcastle Upon Tyne
I no this is basic stuff for you lot but on the real mir there use to be XL bundles packs witch I did not find on my server so I had aplay around with the NPC char that makes buddles and I come up with this script fell free to use it if you dont have it all ready.

Code:
[@P_Bind]
<[EMAIL="Bundle/@ch_Bind1"]Bundle/@ch_Bind1[/EMAIL]> (HP)DrugLarge\
<[EMAIL="Bundle/@ma_Bind1"]Bundle/@ma_Bind1[/EMAIL]> (MP)DrugLarge\
<[EMAIL="Bundle/@ch_Bind2"]Bundle/@ch_Bind2[/EMAIL]> (HP)DrugMedium\
<[EMAIL="Bundle/@ma_Bind2"]Bundle/@ma_Bind2[/EMAIL]> (MP)DrugMedium\
<[EMAIL="Bundle/@ch_Bind3"]Bundle/@ch_Bind3[/EMAIL]> (HP)DrugSmall\
<[EMAIL="Bundle/@ma_Bind3"]Bundle/@ma_Bind3[/EMAIL]> (MP)DrugSmall\
<[EMAIL="Bundle/@ch_Bind4"]Bundle/@ch_Bind4[/EMAIL]> (HP)DrugXL\
<[EMAIL="Bundle/@ma_Bind4"]Bundle/@ma_Bind4[/EMAIL]> (MP)DrugXL\
<[EMAIL="Back/@Bind"]Back/@Bind[/EMAIL]>
[@A_Bind]
Do you want to Bind amulets? Ok Sir/Ma'am.\
Have 6 of them first.\
Pay me 100 gold for each bundle.\
Be careful and check your bag weight limit.\ \
<Pay 100 gold and [EMAIL="Bind/@am_Bind1"]Bind/@am_Bind1[/EMAIL]> Amulet\
<[EMAIL="Back/@Bind>\"]Back/@Bind>\[/EMAIL]
<Give [EMAIL="up/@exit"]up/@exit[/EMAIL]>

[@ch_Bind4]
#IF
checkitem (HP)DrugXL 6
#ACT
goto @ch_Bind4_1
#ELSESAY
You do not have the needed amount of potions.\
Please come Back if you do have enough potions.\ \
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>
[@ch_Bind4_1]
#IF 
checkgold 100
checkitem (HP)DrugXL 6
#ACT
take gold 100
take (HP)DrugXL 6
give (HP)DrugBundleXL 1
#SAY
Your potions are bundled.\
Would you like to bundle more?\ \
<Bind [EMAIL="more/@P_Bind>\"]more/@P_Bind>\[/EMAIL]
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>
#ELSESAY
You do not have the needed amount of potions.\
Please come Back if you do have enough potions.\ \
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>
[@ma_Bind4]
#IF
checkitem (MP)DrugXL 6
#ACT
goto @ma_Bind4_1
#ELSESAY
You do not have the needed amount of potions.\
Please come Back if you do have enough potions.\ \
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>
[@ma_Bind4_1]
#IF 
checkgold 100
checkitem (MP)DrugXL 6
#ACT
take gold 100
take (MP)DrugXL 6
give (MP)DrugBundleXL 1
#SAY
Your potions are bundled.\
Would you like to bundle more?\ \
<Bind [EMAIL="more/@P_Bind>\"]more/@P_Bind>\[/EMAIL]
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>
#ELSESAY
You do not have the needed amount of potions.\
Please come Back if you do have enough potions.\ \
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>

[@Z_Bind]
<[EMAIL="Bind/@zum_Bind1"]Bind/@zum_Bind1[/EMAIL]> DungeonEscape scrolls\
<[EMAIL="Bind/@zum_Bind2"]Bind/@zum_Bind2[/EMAIL]> RandomTeleport scrolls\
<[EMAIL="Bind/@zum_Bind3"]Bind/@zum_Bind3[/EMAIL]> TownTeleport scrolls\
<[EMAIL="Bind/@zum_Bind4"]Bind/@zum_Bind4[/EMAIL]> TeleportHome scrolls\
<[EMAIL="Back/@Bind"]Back/@Bind[/EMAIL]>
[@ch_Bind1]
#IF
checkitem (HP)DrugLarge 6
#ACT
goto @ch_Bind1_1
#ELSESAY
You do not have the needed amount of potions.\
Please come Back if you do have enough potions.\ \
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>
[@ch_Bind1_1]
#IF 
checkgold 100
checkitem (HP)DrugLarge 6
#ACT
take gold 100
take (HP)DrugLarge 6
give (HP)DrugBundle 1
#SAY
Your potions are bundled.\
Would you like to bundle more?\ \
<Bind [EMAIL="more/@P_Bind>\"]more/@P_Bind>\[/EMAIL]
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>
#ELSESAY
You do not have the needed amount of potions.\
Please come Back if u do have enough potions.\ \
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>
[@ma_Bind1]
#IF
checkitem (MP)DrugLarge 6
#ACT
goto @ma_Bind1_1
#ELSESAY
You do not have the needed amount of potions.\
Please come Back if you do have enough potions.\ \
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>
[@ma_Bind1_1]
#IF 
checkgold 100
checkitem (MP)DrugLarge 6
#ACT
take gold 100
take (MP)DrugLarge 6
give (MP)DrugBundle 1
#SAY
Your potions are bundled.\
Would you like to bundle more?\ \
<Bind [EMAIL="more/@P_Bind>\"]more/@P_Bind>\[/EMAIL]
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>
#ELSESAY
You do not have the needed amount of potions.\
Please come Back when you have enough potions.\ \
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>
[@ch_Bind2]
#IF
checkitem (HP)DrugMedium 6
#ACT
goto @ch_Bind2_1
#ELSESAY
You do not have the needed amount of potions.\
Please come Back if you do have enough potions.\ \
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>
[@ch_Bind2_1]
#IF 
checkgold 100
checkitem (HP)DrugMedium 6
#ACT
take gold 100
take (HP)DrugMedium 6
give (HP)MediumDrugBundle 1
#SAY
Your potions are bundled.\
Would you like to bundle more?\ \
<Bind [EMAIL="more/@P_Bind"]more/@P_Bind[/EMAIL]> \
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>
#ELSESAY
You do not have the needed amount of potions.\
Please come Back if you do have enough potions.\ \
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>
[@ma_Bind2]
#IF
   checkitem (MP)DrugMedium 6
#ACT
   goto @ma_Bind2_1
#ELSESAY
You do not have the needed amount of potions.\
Please come Back if you do have enough potions.\ \
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>
[@ma_Bind2_1]
#IF 
checkgold 100
checkitem (MP)DrugMedium 6
#ACT
take gold 100
take (MP)DrugMedium 6
give (MP)MediumDrugBundle 1
#SAY
Your potions are bundled.\
Would you like to bundle more?\ \
<Bind [EMAIL="more/@P_Bind>\"]more/@P_Bind>\[/EMAIL]
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>
#ELSESAY
You do not have the needed amount of potions.\
Please come Back if you do have enough potions.\ \
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>
[@ch_Bind3]
#IF
checkitem (HP)DrugSmall 6
#ACT
goto @ch_Bind3_1
#ELSESAY
You do not have the needed amount of potions.\
Please come Back if you do have enough potions.\ \
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>
[@ch_Bind3_1]
#IF 
checkgold 100
checkitem (HP)DrugSmall 6
#ACT
take gold 100
take (HP)DrugSmall 6
give (HP)SmallDrugBundle 1
#SAY
Your potions are bundled.\
Would you like to bundle more?\ \
<Bind [EMAIL="more/@P_Bind"]more/@P_Bind[/EMAIL]> \
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>
#ELSESAY
You do not have the needed amount of potions.\
Please come Back if you do have enough potions.\ \
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>
[@ma_Bind3]
#IF
checkitem (MP)DrugSmall 6
#ACT
goto @ma_Bind3_1
#ELSESAY
You do not have the needed amount of potions.\
Please come Back if you do have enough potions.\ \
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>
[@ma_Bind3_1]
#IF 
checkgold 100
checkitem (MP)DrugSmall 6
#ACT
take gold 100
take (MP)DrugSmall 6
give (MP)SmallDrugBundle 1
#SAY
Your potions are bundled.\
Would you like to bundle more?\ \
<Bind [EMAIL="more/@P_Bind"]more/@P_Bind[/EMAIL]> \
<[EMAIL="Cancel/@exit"]Cancel/@exit[/EMAIL]>

not perfect but makes XL bundles now :)

Here a nice screen shot :)
mirs.jpg


am allso looking for a coder delphi and a good scrtiper for my server the server will never be relessed for public use because I dont want to get arrested lol, but it will be a invite only server.

if anyone intrested reply :)
 
Last edited:

Simon180

Dedicated Member
Dedicated Member
Dec 13, 2006
54
11
34
Newcastle Upon Tyne
yes but in M2server there only have small / medium/ large but no XL bundles .

so I added them and its my first time making one so I was just shareing it for them people to see and have!
 
Upvote 0