rendered paste bodyon *:text:!items:#DM-shop: {
if (%nocommand.buy == 1) { halt }
set %nocommand.buy 1
msg #DM-shop The items we sell today are:
msg #DM-shop FOOD:
msg #DM-shop small health potion : 10 coins : heals 20 hp
msg #DM-shop Health potion : 20 coins : heals 30 hp
msg #DM-shop Large health potion : 50 coins : heals 50 hp.
msg #DM-shop anti potion : 30 coins : cures a poison
msg #DM-shop Weapons - warrior
msg #DM-shop knive : 50 coins : str 1 : max hit 10
msg #DM-shop sword : 100 coins : str 2 : max hit 15
msg #DM-shop Battle axe: 200 coins : str 5: max hit 25
msg #DM-shop Scimitar : 2000 coins : str 10 : max hit 50
msg #DM-shop Dual handed batte axes : 10000 coins : str 25 : max hit 200
msg #DM-shop weapons - ranger
msg #DM-shop bow : 10 coins : str 0 : max hit depends on arrows
msg #DM-shop large bow : 100 coins : str 10 : max hit depends on arrows
msg #DM-shop ultimate bow: 1000 coins : str 20 : max hit depends on arrows
msg #DM-shop arrows
msg #DM-shop normal arrow : 1 coin each : str 1 : max hit 10
msg #DM-shop powerfull arrow : 2 coins each: str 5 : max hit 50
msg #DM-shop powerfull arrow (P) : 5 coins each : str 5 : max hit 50 + poison
msg #DM-shop weapons - mage
msg #DM-shop magic staff : 10 coins : str 0 : max hit depends on spells
msg #DM-shop ultimate magic staff: 1000 coins : max hit depends on spells
msg #DM-shop magic spells
msg #DM-shop blizz : 100 coins : str 1 : max hit 20
msg #DM-shop blizztering cold : 200 coins : str 1 : max hit 25
msg #DM-shop fire fury : 500 coins : str 10 : max hit 50
msg #DM-shop venquence fury : 1000 coins :str 25 : max hit 100
msg #DM-shop avada kadevra : 2500 coins : str 100 : max hit 500 : takes 3 rounds to cast
timer 1 120 set %nocommand.buy 0
set %nocommand.buy 1
}
on *:text:!buy*:#DM-shop: {
set %dm-knives 50
set %dm-sword 100
set %dm-battleaxe 200
set %dm-scimitar 2000
set %dm-dualhba 10000
if ($2 == knive && %money. [ $+ [ $nick ] ] >= 50) {
dec %money. [ $+ [ $nick ] ] 50
msg $chan well done! you've bought a knive!
}
else { notice $nick you dont have enough money to buy this item! | halt }
if ($2 == sword && %money. [ $+ [ $nick ] ] >=100) {
dec %money. [ $+ [ $nick ] ] 100
msg $chan well done! you've bought a sword!
}
else { notice $nick you dont have enough money to buy this item! | halt}
}