terça-feira, 18 de setembro de 2012

[code]ITEMS = { [0] = { name = "" }, [1] = { name = "apple", article = "an", desc = "No visible worms.", r = 255, g = 0, b = 0, action = "eat", food = function() return math.random(10,20) end, fimage = "gfx/weiwen/apple.png", func = eat, }, [2] = { name = "torch", plural = "torches", desc = "Allows you to see clearly in the dark.", r = 191, g = 213, b = 128, action = "Acender", slot = 8, fimage = "gfx/weiwen/torch.png", eimage = "gfx/sprites/flare3.bmp", escalex = 3, escaley = 3, blend = 1, static = 1, func = equip, }, [3] = { name = "hourglass", plural = "hourglasses", article = "an", r = 180, g = 180, b = 180, action = {"wear","check time"}, slot = 8, func = {equip, function(id) msg2(id,ITEMS[3].desc) end}, }, [4] = { name = "cheese", desc = "A solid food prepared from the pressed curd of milk.", r = 255, g = 255, b = 0, action = "eat", food = function() return math.random(10,20) end, fimage = "gfx/weiwen/cheese.png", func = eat, }, [5] = { name = "pizza", desc = "Italian open pie made of thin bread dough spread with a spiced mixture of tomato sauce and cheese.", action = "eat", food = function() return math.random(25,50) end, fimage = "gfx/weiwen/pizza.png", func = eat, }, [100] = { name = "ember rune", desc = "You may only use it once.", r = 128, g = 0, b = 0, action = {"cast","hold"}, slot = 9, fimage = "gfx/weiwen/rune.png", func = {function(id,itemslot,itemid,equip) radiusmsg(player(id,"name") .. " casts a fireball rune.", player(id,"x"), player(id,"y")) explosion(player(id, "x"), player(id,"y"), 64, 15, id) local pos = player(id,"x") .. " " .. player(id,"y") parse("effect \"colorsmoke\" " .. pos .. " 100 64 255 128 0;") parse("effect \"colorsmoke\" " .. pos .. " 75 64 255 0 0") destroyitem(id, itemslot, equip) end,equip}, }, [101] = { name = "water gun rune", desc = "You may only use it once.", r = 128, g = 128, b = 255, action = {"cast","hold"}, slot = 9, fimage = "gfx/weiwen/rune.png", func = {function(id,itemslot,itemid,equip) radiusmsg(player(id,"name") .. " casts a waterball rune.", player(id,"x"), player(id,"y")) explosion(player(id, "x"), player(id,"y"), 64, 15, id) local pos = player(id,"x") .. " " .. player(id,"y") parse("effect \"colorsmoke\" " .. pos .. " 100 64 255 255 255") parse("effect \"colorsmoke\" " .. pos .. " 75 64 128 128 255") destroyitem(id, itemslot, equip) end,equip}, }, [102] = { name = "healing rune", desc = "You may only use it once.", r = 128, g = 255, b = 255, action = {"cast","hold"}, slot = 9, fimage = "gfx/weiwen/rune.png", func = {function(id,itemslot,itemid,equip) radiusmsg(player(id,"name") .. " casts a healing rune.", player(id,"x"), player(id,"y")) explosion(player(id, "x"), player(id,"y"), 32, -30, id) local pos = player(id,"x") .. " " .. player(id,"y") parse("effect \"colorsmoke\" " .. pos .. " 5 5 128 255 255") radiussound("materials/glass2.wav", player(id,"x"), player(id,"y")) destroyitem(id, itemslot, equip) end,equip}, }, [103] = { name = "thundershock rune", desc = "An electrical attack that may paralyze the foe.", r = 255, g = 255, b = 0, action = {"cast","hold"}, slot = 9, fimage = "gfx/weiwen/rune.png", func = {function(id,itemslot,itemid,equip) radiusmsg(player(id,"name") .. " casts a thundershock rune.", player(id,"x"), player(id,"y")) explosion(player(id, "x"), player(id,"y"), 64, 15, id) local pos = player(id,"x") .. " " .. player(id,"y") parse("effect \"colorsmoke\" " .. pos .. " 100 64 255 255 0") parse("effect \"colorsmoke\" " .. pos .. " 75 64 255 255 255") destroyitem(id, itemslot, equip) end,equip}, }, [104] = { name = "flamethrower rune", desc = "You may only use it once.", r = 185, g = 25, b = 25, action = {"cast","hold"}, slot = 9, fimage = "gfx/weiwen/rune.png", func = {function(id,itemslot,itemid,equip) radiusmsg(player(id,"name") .. " casts a firewave rune.", player(id,"x"), player(id,"y")) parse("equip " .. id .. " 46") parse("setweapon " .. id .. " 46") timer(1000, "parse", "strip " .. id .. " 46") destroyitem(id, itemslot, equip) end,equip}, }, [105] = { name = "teleport rune", desc = "You may only use it once.", r = 255, g = 255, b = 255, action = {"cast","hold"}, slot = 9, fimage = "gfx/weiwen/rune.png", func = {function(id, itemslot, itemid, equip) radiusmsg(player(id,"name") .. " is casting a teleport rune.", player(id,"x"), player(id,"y")) timer(1500, "ITEMS[105].teleport", id .. ';' .. player(id, 'health') .. ';' .. itemslot .. ';' .. equip) end,equip}, teleport = function(p) local id, health, itemslot, equip = p:split(';') if player(id, 'health') == health then radiusmsg(player(id,"name") .. " completed casting a teleport rune.", player(id,"x"), player(id,"y")) parse("effect \"colorsmoke\" " .. player(id,"x") .. " " .. player(id,"y") .. " 5 5 255 255 255") local pos = PLAYERS[id].Spawn[1] .. " " .. PLAYERS[id].Spawn[2] parse("effect \"colorsmoke\" " .. pos .. " 5 5 255 255 255") parse("setpos " .. id .. " " .. pos) radiussound("materials/glass2.wav", player(id,"x"), player(id,"y")) destroyitem(id, itemslot, equip) else radiusmsg(player(id,"name") .. " failed to cast a teleport rune.", player(id,"x"), player(id,"y")) end end, }, [106] = { name = "poison fog rune", desc = "You may only use it once.", r = 128, g = 128, b = 0, action = {"cast","hold"}, slot = 9, fimage = "gfx/weiwen/rune.png", func = {function(id, itemslot, itemid, equip) radiusmsg(player(id,"name") .. " casts a poison fog rune.", player(id,"x"), player(id,"y")) explosion(player(id, "x"), player(id,"y"), 64, 15, id) local pos = player(id,"x") .. " " .. player(id,"y") parse("effect \"colorsmoke\" " .. pos .. " 100 96 128 128 0") destroyitem(id, itemslot, equip) end,equip}, }, [200] = { name = "white bed", desc = "Used to furnish your house.", fimage = "gfx/weiwen/bed.png", offsety = 16, heal = 5, r = 255, g = 255, b = 255, }, [201] = { name = "pink bed", desc = "Used to furnish your house.", fimage = "gfx/weiwen/bed.png", offsety = 16, heal = 5, r = 255, g = 128, b = 255, }, [202] = { name = "green bed", desc = "Used to furnish your house.", fimage = "gfx/weiwen/bed.png", offsety = 16, heal = 5, r = 128, g = 192, b = 0, }, [203] = { name = "blue bed", desc = "Used to furnish your house.", fimage = "gfx/weiwen/bed.png", offsety = 16, heal = 5, r = 0, g = 128, b = 192, }, [204] = { name = "dark red bed", desc = "Used to furnish your house.", fimage = "gfx/weiwen/bed.png", offsety = 16, heal = 5, r = 128, g = 0, b = 0, }, [205] = { name = "light green bed", desc = "Used to furnish your house.", fimage = "gfx/weiwen/bed.png", offsety = 16, heal = 5, r = 128, g = 255, b = 128, }, [206] = { name = "light blue bed", desc = "Used to furnish your house.", fimage = "gfx/weiwen/bed.png", offsety = 16, heal = 5, r = 128, g = 128, b = 255, }, [207] = { name = "yellow bed", desc = "Used to furnish your house.", fimage = "gfx/weiwen/bed.png", offsety = 16, heal = 5, r = 255, g = 255, b = 0, }, [208] = { name = "orange bed", article = "an", desc = "Used to furnish your house.", fimage = "gfx/weiwen/bed.png", offsety = 16, heal = 5, r = 255, g = 128, b = 0, }, [209] = { name = "brown bed", desc = "Used to furnish your house.", fimage = "gfx/weiwen/bed.png", offsety = 16, heal = 5, r = 128, g = 64, b = 0, }, [210] = { name = "white chair", desc = "Used to furnish your house.", fimage = "gfx/weiwen/chair.png", r = 255, g = 255, b = 255, rot = 0, heal = 3, action = "rotate|South", func = function(id,itemslot,itemid) PLAYERS[id].Inventory[itemslot] = ((itemid-209)%4)+210; itemactions(id,itemslot) end, }, [211] = { name = "white chair", desc = "Used to furnish your house.", fimage = "gfx/weiwen/chair.png", r = 255, g = 255, b = 255, rot = 90, heal = 3, action = "rotate|West", func = function(id,itemslot,itemid) PLAYERS[id].Inventory[itemslot] = ((itemid-209)%4)+210; itemactions(id,itemslot) end, }, [212] = { name = "white chair", desc = "Used to furnish your house.", fimage = "gfx/weiwen/chair.png", rot = 180, heal = 3, r = 255, g = 255, b = 255, action = "rotate|North", func = function(id,itemslot,itemid) PLAYERS[id].Inventory[itemslot] = ((itemid-209)%4)+210; itemactions(id,itemslot) end, }, [213] = { name = "white chair", desc = "Used to furnish your house.", fimage = "gfx/weiwen/chair.png", rot = 270, heal = 3, r = 255, g = 255, b = 255, action = "rotate|East", func = function(id,itemslot,itemid) PLAYERS[id].Inventory[itemslot] = ((itemid-209)%4)+210; itemactions(id,itemslot) end, }, [214] = { name = "brown chair", desc = "Used to furnish your house.", fimage = "gfx/weiwen/chair.png", r = 169, g = 106, b = 44, rot = 0, heal = 3, action = "rotate|South", func = function(id,itemslot,itemid) PLAYERS[id].Inventory[itemslot] = ((itemid-213)%4)+214; itemactions(id,itemslot) end, }, [215] = { name = "brown chair", desc = "Used to furnish your house.", fimage = "gfx/weiwen/chair.png", r = 169, g = 106, b = 44, rot = 90, heal = 3, action = "rotate|West", func = function(id,itemslot,itemid) PLAYERS[id].Inventory[itemslot] = ((itemid-213)%4)+214; itemactions(id,itemslot) end, }, [216] = { name = "brown chair", desc = "Used to furnish your house.", fimage = "gfx/weiwen/chair.png", rot = 180, heal = 3, r = 169, g = 106, b = 44, action = "rotate|North", func = function(id,itemslot,itemid) PLAYERS[id].Inventory[itemslot] = ((itemid-213)%4)+214; itemactions(id,itemslot) end, }, [217] = { name = "brown chair", desc = "Used to furnish your house.", fimage = "gfx/weiwen/chair.png", rot = 270, heal = 3, r = 169, g = 106, b = 44, action = "rotate|East", func = function(id,itemslot,itemid) PLAYERS[id].Inventory[itemslot] = ((itemid-213)%4)+214; itemactions(id,itemslot) end, }, [218] = { name = "white table", desc = "Used to furnish your house.", fimage = "gfx/weiwen/table.png", r = 255, g = 255, b = 255, }, [219] = { name = "brown table", desc = "Used to furnish your house.", fimage = "gfx/weiwen/table.png", r = 169, g = 106, b = 44, }, [220] = { name = "pikachu doll", desc = "Used to furnish your house.", fimage = "gfx/weiwen/pokemon/25.png", }, [390] = { name = "Bronze Vortex doll", desc = "Used to furnish your house.", fimage = "gfx/weiwen/pokemon/47.png", }, [221] = { name = "bulbasaur doll", desc = "Used to furnish your house.", fimage = "gfx/weiwen/pokemon/1.png", }, [391] = { name = "Dragon doll", desc = "Used to furnish your house.", fimage = "gfx/weiwen/pokemon/3.bmp", }, [392] = { name = "Onix doll", desc = "Used to furnish your house.", fimage = "gfx/weiwen/pokemon/1.bmp", }, [393] = { name = "Ice monster doll", desc = "Used to furnish your house.", fimage = "gfx/weiwen/pokemon/13.bmp", }, [222] = { name = "charmander doll", desc = "Used to furnish your house.", fimage = "gfx/weiwen/pokemon/4.png", }, [223] = { name = "squirtle doll", desc = "Used to furnish your house.", fimage = "gfx/weiwen/pokemon/7.png", }, [733] = { name = "Teasure", desc = "Treasure Chest.", fimage = "gfx/weiwen/Treasure_Chest.png", }, [230] = { name = "coin", desc = "Heads or tails?", r = 255, g = 200, b = 0, action = "flip", fimage = "gfx/weiwen/circle.png", func = function(id,itemslot,itemid) if PLAYERS[id].tmp.exhaust.use then return end PLAYERS[id].tmp.exhaust.use = true timer(CONFIG.EXHAUST.USE, rem.useExhaust, id) radiusmsg(player(id,"name") .. " flips a coin. " .. ((math.random(2) == 1) and "Heads!" or "Tails!"), player(id,"x"), player(id,"y")) end, }, [231] = { name = "dice", desc = "1d6.", r = 255, g = 192, b = 128, action = "roll", fimage = "gfx/weiwen/table.png", fscalex = 0.5, fscaley = 0.5, func = function(id,itemslot,itemid) if PLAYERS[id].tmp.exhaust.use then return end PLAYERS[id].tmp.exhaust.use = true timer(CONFIG.EXHAUST.USE, rem.useExhaust, id) radiusmsg(player(id,"name") .. " rolls a " .. math.random(1, 6) .. ".", player(id,"x"), playerw(id,"y")) end, }, [450] = { name = "[1]Noob helmet", desc = "Protect yourself from headshots!", r = 255, g = 255, b = 255, action = "equip", slot = 1, eimage = "gfx/weiwen/Noob_helm.png", fimage = "gfx/weiwen/Noob_helm.png", def = 0.04, speed = -1, func = equip, }, [451] = { name = "[1]Noob torso", desc = "A few holes here and there, but still usable.", r = 255, g = 255, b = 255, action = "equip", slot = 2, eimage = "gfx/weiwen/Noob_armour.png", fimage = "gfx/weiwen/Noob_armour.png", def = 0.1, speed = -2, func = equip, }, [452] = { name = "[1]Noob legs", plural = "pairs of Noob legs", article = "a pair of", desc = "A few holes here and there, but still usable.", r = 255, g = 255, b = 255, action = "equip", slot = 5, fimage = "gfx/weiwen/Noob_legs.png", def = 0.04, speed = 0, func = equip, }, [453] = { name = "[1]Noob boots", plural = "pairs of lNoob boots", article = "a pair of", desc = "Waterproof.", r = 255, g = 255, b = 255, action = "equip", slot = 6, fimage = "gfx/weiwen/Noob_boots.png", speed = 1, func = equip, }, [454] = { name = "[1]Noob sword", desc = "Mostly used for training.", r = 255, g = 255, b = 255, action = "equip", slot = 3, eimage = "gfx/weiwen/Noob_sword.png", fimage = "gfx/weiwen/Noob_sword.png", offsetx = 6, offsety = 17, equip = 69, atk = 0.23, speed = -2, func = equip, }, [300] = { name = "[1]leather helmet", desc = "Protect yourself from headshots!", r = 128, g = 64, b = 0, action = "equip", slot = 1, eimage = "gfx/weiwen/helmet.png", fimage = "gfx/weiwen/1 elm.png", def = 0.05, speed = -1, func = equip, }, [301] = { name = "[1]leather torso", desc = "A few holes here and there, but still usable.", r = 128, g = 64, b = 0, action = "equip", slot = 2, eimage = "gfx/weiwen/armour.png", fimage = "gfx/weiwen/1 armor.png", def = 0.1, speed = -1, func = equip, }, [302] = { name = "[1]leather legs", plural = "pairs of leather legs", article = "a pair of", desc = "A few holes here and there, but still usable.", r = 128, g = 64, b = 0, action = "equip", slot = 5, fimage = "gfx/weiwen/legs.png", def = 0.07, speed = 1, func = equip, }, [303] = { name = "[1]leather boots", plural = "pairs of leather boots", article = "a pair of", desc = "Waterproof.", r = 128, g = 64, b = 0, action = "equip", slot = 6, fimage = "gfx/weiwen/1 shoe.png", speed = 2, func = equip, }, [304] = { name = "[1]wooden sword", desc = "Mostly used for training.", r = 128, g = 64, b = 0, action = "equip", slot = 3, eimage = "gfx/weiwen/1 sword.png", fimage = "gfx/weiwen/1 sword.png", offsetx = 6, offsety = 17, equip = 69, atk = 0.25, speed = -1, func = equip, }, [305] = { name = "[1]wooden shield", desc = "Mostly used for training.", r = 128, g = 64, b = 0, action = "equip", slot = 4, eimage = "gfx/weiwen/shield.png", fimage = "gfx/weiwen/1 shield.png", equip = 41, def = 0.2, speed = -2, func = equip, }, [306] = { name = "[1]wooden club", desc = "Now you can be a caveman too!", r = 128, g = 64, b = 0, action = "equip", slot = 3, eimage = "gfx/weiwen/club.png", fimage = "gfx/weiwen/1 mace.png", offsety = 14, equip = 78, atk = 0.35, speed = -2, func = equip, }, [307] = { name = "[1]wooden crossbow", desc = "It requires you to hold it with two hands.", r = 128, g = 64, b = 0, action = "equip", slot = 3, twohand = true, eimage = "gfx/weiwen/bow.png", fimage = "gfx/weiwen/1 bow.png", offsety = 9, equip = 34, atk = 0.1, speed = -2.5, func = equip, }, [310] = { name = "[5]stone helmet", r = 128, g = 128, b = 128, action = "equip", slot = 1, eimage = "gfx/weiwen/helmet.png", fimage = "gfx/weiwen/2 elm.png", def = 0.1, speed = -1.5, level = 5, func = equip, }, [311] = { name = "[5]stone armour", r = 128, g = 128, b = 128, action = "equip", slot = 2, eimage = "gfx/weiwen/armour.png", fimage = "gfx/weiwen/2 armor.png", def = 0.2, speed = -1.5, level = 5, func = equip, }, [312] = { name = "[5]stone leggings", plural = "pairs of iron leggings", article = "a pair of", r = 128, g = 128, b = 128, action = "equip", slot = 5, fimage = "gfx/weiwen/legs.png", def = 0.15, speed = -0.5, level = 5, func = equip, }, [313] = { name = "[5]stone boots", plural = "pairs of iron boots", article = "a pair of", r = 128, g = 128, b = 128, action = "equip", slot = 6, fimage = "gfx/weiwen/2 shoe.png", def = 0.1, speed = -0.5, level = 5, func = equip, }, [314] = { name = "[5]stone sword", r = 128, g = 128, b = 128, action = "equip", slot = 3, eimage = "gfx/weiwen/2 sword.png", fimage = "gfx/weiwen/2 sword.png", offsetx = 6, offsety = 17, equip = 69, atk = 0.5, speed = -2, level = 5, func = equip, }, [315] = { name = "[5]stone shield", r = 128, g = 128, b = 128, action = "equip", slot = 4, eimage = "gfx/weiwen/shield.png", fimage = "gfx/weiwen/fshield.png", equip = 41, def = 0.4, speed = -3, level = 5, func = equip, }, [316] = { name = "[5]stone mace", r = 128, g = 128, b = 128, action = "equip", slot = 3, eimage = "gfx/weiwen/mace.png", fimage = "gfx/weiwen/mace.png", offsetx = 4, offsety = 20, equip = 78, atk = 0.7, speed = -3, level = 5, func = equip, }, [320] = { name = "[15]bronze helmet", r = 200, g = 100, b = 0, action = "equip", slot = 1, eimage = "gfx/weiwen/helmet.png", fimage = "gfx/weiwen/helmet.png", def = 0.15, speed = -1.3, level = 15, func = equip, }, [321] = { name = "[15]bronze armour", r = 200, g = 100, b = 0, action = "equip", slot = 2, eimage = "gfx/weiwen/armour.png", fimage = "gfx/weiwen/farmour.png", def = 0.3, speed = -1.3, level = 15, func = equip, }, [322] = { name = "[15]bronze leggings", plural = "pairs of bronze leggings", article = "a pair of", r = 200, g = 100, b = 0, action = "equip", slot = 5, fimage = "gfx/weiwen/legs.png", def = 0.2, speed = -0.4, level = 15, func = equip, }, [323] = { name = "[15]bronze boots", plural = "pairs of bronze boots", article = "a pair of", r = 200, g = 100, b = 0, action = "equip", slot = 6, fimage = "gfx/weiwen/boots.png", def = 0.15, speed = -0.4, level = 15, func = equip, }, [324] = { name = "[15]bronze sword", r = 200, g = 100, b = 0, action = "equip", slot = 3, eimage = "gfx/weiwen/sword.png", fimage = "gfx/weiwen/sword.png", offsetx = 6, offsety = 17, equip = 69, atk = 0.7, speed = -1.5, level = 15, func = equip, }, [325] = { name = "[15]bronze shield", r = 200, g = 100, b = 0, action = "equip", slot = 4, eimage = "gfx/weiwen/shield.png", fimage = "gfx/weiwen/fshield.png", equip = 41, def = 0.6, speed = -2.5, level = 15, func = equip, }, [326] = { name = "[15]bronze mace", r = 200, g = 100, b = 0, action = "equip", slot = 3, eimage = "gfx/weiwen/mace.png", fimage = "gfx/weiwen/mace.png", offsetx = 4, offsety = 20, equip = 78, atk = 0.9, speed = -3, level = 15, func = equip, }, [327] = { name = "[20]Dragon helmet", r = 255, g = 255, b = 255, action = "equip", slot = 1, eimage = "gfx/weiwen/dragon_helm.png", fimage = "gfx/weiwen/dragon_helm.png", def = 0.18, speed = 1.3, level = 20, func = equip, }, [328] = { name = "[20]Dragon armor", r = 255, g = 255, b = 255, action = "equip", slot = 2, eimage = "gfx/weiwen/Imperion/Dragon/dragon_armour.png", fimage = "gfx/weiwen/Imperion/Dragon/dragon_farmour.png", def = 0.19, speed = -1.3, level = 20, func = equip, }, [329] = { name = "[20]Dragon leggings", plural = "pairs of Dragon leggings", article = "a pair of", r = 2550, g = 255, b = 255, action = "equip", slot = 5, fimage = "gfx/weiwen/Imperion/Dragon/dragon_legs.png", def = 0.5, speed = 0.4, level = 20, func = equip, }, [330] = { name = "[20]Dragon boots", plural = "pairs of Dragon boots", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 6, fimage = "gfx/weiwen/Imperion/Dragon/dragon_boots.png", def = 4.15, speed = 2.3, level = 20, func = equip, }, [331] = { name = "[20]Dragon shield", r = 255, g = 255, b = 255, action = "equip", slot = 4, eimage = "gfx/weiwen/Imperion/Dragon/dragon_shield.png", fimage = "gfx/weiwen/Imperion/Dragon/dragon_fshield.png", equip = 41, def = 2.6, speed = -3.5, level = 20, func = equip, }, [333] = { name = "[20]Dragon sword", r = 255, g = 255, b = 255, action = "equip", slot = 3, eimage = "gfx/weiwen/Imperion/Dragon/dragon_sword.png", fimage = "gfx/weiwen/Imperion/Dragon/dragon_sword.png", offsetx = 6, offsety = 17, equip = 69, atk = 2.7, speed = -1.5, level = 20, func = equip, }, [332] = { name = "[20]Dragon mace", r = 255, g = 255, b = 255, action = "equip", slot = 3, eimage = "gfx/weiwen/Imperion/Dragon/dragon_mace.png", fimage = "gfx/weiwen/Imperion/Dragon/dragon_mace.png", offsetx = 4, offsety = 20, equip = 78, atk = 2.9, speed = -3, level = 20, func = equip, }, [334] = { name = "[20]Dragon crossbow", desc = "It requires you to hold it with two hands.", r = 255, g = 255, b = 255, action = "equip", slot = 3, twohand = false, eimage = "gfx/weiwen/Imperion/Dragon/dragon_bow.png", fimage = "gfx/weiwen/Imperion/Dragon/dragon_bow.png", offsety = 9, equip = 34, atk = 1.3, speed = -1, level = 20, func = equip }, [340] = { name = "[25]ice Dragon helmet", r = 255, g = 255, b = 255, action = "equip", slot = 1, eimage = "gfx/weiwen/Imperion/Ice/ice_helm.png", fimage = "gfx/weiwen/Imperion/Ice/ice_helm.png", def = 1.23, speed = 2.3, level = 25, func = equip, }, [341] = { name = "[25]ice Dragon armor", r = 255, g = 255, b = 255, action = "equip", slot = 2, eimage = "gfx/weiwen/Imperion/Ice/ice_armor.png", fimage = "gfx/weiwen/Imperion/Ice/ice_farmour.png", def = 0.29, speed = -1.2, level = 25, func = equip, }, [342] = { name = "[25]ice Dragon leggings", plural = "pairs of ice Dragon leggings", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 5, fimage = "gfx/weiwen/Imperion/Ice/ice_legs.png", def = 0.9, speed = 0.5, level = 25, func = equip, }, [343] = { name = "[25]ice Dragon boots", plural = "pairs of ice Dragon boots", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 6, fimage = "gfx/weiwen/Imperion/Ice/ice_boots.png", def = 6.15, speed = 4.3, level = 25, func = equip, }, [344] = { name = "[25]ice Dragon shield", r = 255, g = 255, b = 255, action = "equip", slot = 4, eimage = "gfx/weiwen/Imperion/Ice/ice_shield.png", fimage = "gfx/weiwen/Imperion/Ice/ice_fshield.png", equip = 41, def = 3.6, speed = -2.5, level = 25, func = equip, }, [345] = { name = "[25]ice Dragon sword", r = 255, g = 255, b = 255, action = "equip", slot = 3, eimage = "gfx/weiwen/Imperion/Ice/ice_sword.png", fimage = "gfx/weiwen/Imperion/Ice/ice_sword.png", offsetx = 6, offsety = 17, equip = 69, atk = 3.7, speed = -1.4, level = 25, func = equip, }, [346] = { name = "[25]ice Dragon mace", r = 255, g = 255, b = 255, action = "equip", slot = 3, eimage = "gfx/weiwen/Imperion/Ice/ice_mace.png", fimage = "gfx/weiwen/Imperion/Ice/ice_mace.png", offsetx = 4, offsety = 20, equip = 78, atk = 3.9, speed = -2.9, level = 25, func = equip, }, [347] = { name = "[25]ice Dragon crossbow", desc = "It requires you to hold it with two hands.", r = 255, g = 255, b = 255, action = "equip", slot = 3, twohand = false, eimage = "gfx/weiwen/Imperion/Ice/ice_bow.png", fimage = "gfx/weiwen/Imperion/Ice/ice_bow.png", offsety = 9, equip = 34, atk = 1.3, speed = -1, level = 25, func = equip, }, [350] = { name = "[30]fire Dragon helmet", r = 255, g = 255, b = 255, action = "equip", slot = 1, eimage = "gfx/weiwen/Imperion/Fire/Ponita_helm.png", fimage = "gfx/weiwen/Imperion/Fire/Ponita_helm.png", def = 2.23, speed = 2.3, level = 30, func = equip, }, [351] = { name = "[30]fire Dragon armor", r = 255, g = 255, b = 255, action = "equip", slot = 2, eimage = "gfx/weiwen/Imperion/Fire/Ponita_armor.png", fimage = "gfx/weiwen/Imperion/Fire/Ponita_farmor.png", equip = 82, def = 2.29, speed = -1.2, level = 30, func = equip, }, [352] = { name = "[30]fire Dragon leggings", plural = "pairs of fire Dragon leggings", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 5, fimage = "gfx/weiwen/Imperion/Fire/Ponita_legs.png", def = 2.9, speed = 3.5, level = 30, func = equip, }, [353] = { name = "[30]fire Dragon boots", plural = "pairs of fire Dragon boots", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 6, fimage = "gfx/weiwen/Imperion/Fire/Ponita_boots.png", def = 6.15, speed = 4.3, level = 30, func = equip, }, [355] = { name = "[30]fire Dragon sword", r = 255, g = 255, b = 255, action = "equip", slot = 3, eimage = "gfx/weiwen/Imperion/Fire/Ponita word.png", fimage = "gfx/weiwen/Imperion/Fire/Ponita word.png", offsetx = 6, offsety = 17, equip = 69, atk = 4.7, speed = -0.4, level = 30, func = equip, }, [356] = { name = "[30]Fire Dragon Wings", desc = "You move faster with it, but are unable to attack with it. Your defence is also reduced significantly.", r = 255, g = 255, b = 255, action = "Equip", slot = 7, ground = true, water = true, fimage = "gfx/weiwen/Imperion/Fire/phoenix2_wing.png", eimage = "gfx/weiwen/Imperion/Fire/phoenix2_wing.png", fscalex = 1.2, fscaley = 0.8, escalex = 1.2, escaley = 0.8, offsety = 20, speed = 25, def = 2.5, level = 30, func = equip, }, [357] = { name = "[30]fire Dragon crossbow", desc = "It requires you to hold it with two hands.", r = 255, g = 255, b = 255, action = "equip", slot = 3, twohand = false, eimage = "gfx/weiwen/Imperion/Fire/phoenix_bow.png", fimage = "gfx/weiwen/Imperion/Fire/phoenix_bow.png", offsety = 9, equip = 34, atk = 3.3, speed = -1, level = 30, func = equip, }, [360] = { name = "[40]black Dragon helmet", r = 255, g = 255, b = 255, action = "equip", slot = 1, eimage = "gfx/weiwen/Imperion/Black/blackdragon_helmet.png", fimage = "gfx/weiwen/Imperion/Black/blackdragon_helmet.png", def = 2.23, speed = 3.3, level = 40, func = equip, }, [361] = { name = "[40]black Dragon armor", r = 255, g = 255, b = 255, action = "equip", slot = 2, eimage = "gfx/weiwen/Imperion/Black/blackdragon_armour.png", fimage = "gfx/weiwen/Imperion/Black/blackdragon_farmour.png", equip = 82, def = 3.29, speed = -1.2, level = 40, func = equip, }, [362] = { name = "[40]black Dragon leggings", plural = "pairs of black Dragon leggings", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 5, fimage = "gfx/weiwen/Imperion/Black/blackdragon_legs.png", def = 5.9, speed = 4.5, level = 40, func = equip, }, [363] = { name = "[40]black Dragon boots", plural = "pairs of black Dragon boots", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 6, fimage = "gfx/weiwen/Imperion/Black/blackdragon_boots.png", def = 11.00, speed = 6.3, level = 40, func = equip, }, [364] = { name = "[40]black Dragon sword", r = 255, g = 255, b = 255, action = "equip", slot = 3, eimage = "gfx/weiwen/Imperion/Black/blackdragon_sword.png", fimage = "gfx/weiwen/Imperion/Black/blackdragon_sword.png", offsetx = 6, offsety = 17, equip = 69, atk = 6.7, speed = -0.2, level = 40, func = equip, }, [365] = { name = "[40]black Dragon shield", r = 255, g = 255, b = 255, action = "equip", slot = 4, eimage = "gfx/weiwen/Imperion/Black/blackdragon_shield.png", fimage = "gfx/weiwen/Imperion/Black/blackdragon_fshield.png", equip = 41, def = 6.6, speed = -0.2, level = 40, func = equip, }, [366] = { name = "[40]black Dragon crossbow", desc = "It requires you to hold it with two hands.", r = 255, g = 255, b = 255, action = "equip", slot = 3, twohand = false, eimage = "gfx/weiwen/Imperion/Black/blackdragon_bow.png", fimage = "gfx/weiwen/Imperion/Black/blackdragon_bow.png", offsety = 9, equip = 34, atk = 4.3, speed = 1.1, level = 40, func = equip }, [367] = { name = "[50]strongfire helmet", r = 255, g = 255, b = 255, action = "equip", slot = 1, eimage = "gfx/weiwen/Imperion/Stronfire/strongfire_helmet.png", fimage = "gfx/weiwen/Imperion/Stronfire/strongfire_helmet.png", def = 4.23, speed = 4.3, level = 50, func = equip, }, [368] = { name = "[50]strongfire armor", r = 255, g = 255, b = 255, action = "equip", slot = 2, eimage = "gfx/weiwen/Imperion/Strongfire/strongfire_armour.png", fimage = "gfx/weiwen/Imperion/Strongfire/strongfire_farmour.png", equip = 82, def = 4.29, speed = 0.2, level = 50, func = equip, }, [369] = { name = "[50]strongfire leggings", plural = "uma das perneiras mais fortes", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 5, fimage = "gfx/weiwen/Imperion/Strongfire/strongfire_legs.png", def = 6.2, speed = 5.0, level = 50, func = equip, }, [370] = { name = "[50]strongfire boots", plural = "uma das bostas mais forte", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 6, fimage = "gfx/weiwen/Imperion/Strongfire/strongfire_boots.png", def = 12.00, speed = 6.5, level = 50, func = equip, }, [371] = { name = "[50]strongfire sword", r = 255, g = 255, b = 255, action = "equip", slot = 3, eimage = "gfx/weiwen/Imperion/Strongfire/strongfire_sword.png", fimage = "gfx/weiwen/Imperion/Strongfire/strongfire_sword.png", offsetx = 6, offsety = 17, equip = 69, atk = 6.9, speed = 1.0, level = 50, func = equip, }, [372] = { name = "[50]strongfire crossbow", desc = "It requires you to hold it with two hands.", r = 255, g = 255, b = 255, action = "equip", slot = 3, twohand = false, eimage = "gfx/weiwen/Imperion/Strongfire/strongfire_bow.png", fimage = "gfx/weiwen/Imperion/Strongfire/strongfire_bow.png", offsety = 9, equip = 1, atk = 5.1, speed = 2.0, level = 50, func = equip }, [373] = { name = "[60]Divine helmet", r = 255, g = 255, b = 255, action = "equip", slot = 1, eimage = "gfx/weiwen/Imperion/Divine/divinehelm.png", fimage = "gfx/weiwen/Imperion/Divine/divinehelm.png", def = 5.23, speed = 4.4, level = 60, func = equip, }, [374] = { name = "[60]divine armor", r = 255, g = 255, b = 255, action = "equip", slot = 2, eimage = "gfx/weiwen/Imperion/Divine/divinearmor.png", fimage = "gfx/weiwen/Imperion/Divine/divinefarmour.png", equip = 82, def = 4.31, speed = 0.3, level = 60, func = equip, }, [375] = { name = "[60]Divine leggings", plural = "até mais forte q strongfire", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 5, fimage = "gfx/weiwen/Imperion/Divine/divinelegs.png", def = 6.3, speed = 5.1, level = 60, func = equip, }, [376] = { name = "[60]Divine boots", plural = "uma das bostas mais forte", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 6, fimage = "gfx/weiwen/Imperion/Divine/divineboots.png", def = 13.00, speed = 6.6, level = 60, func = equip, }, [382] = { name = "[70]Reaxter helmet", r = 255, g = 255, b = 255, action = "equip", slot = 1, eimage = "gfx/weiwen/Imperion/Reaxter/reaxter_helm.png", fimage = "gfx/weiwen/Imperion/Reaxter/reaxter_helm.png", def = 5.43, speed = 4.5, level = 70, func = equip, }, [383] = { name = "[70]Reaxter armor", r = 255, g = 255, b = 255, action = "equip", slot = 2, eimage = "gfx/weiwen/Imperion/Reaxter/reaxter_armour.png", fimage = "gfx/weiwen/Imperion/Reaxter/reaxter_farmour.png", equip = 82, def = 5.32, speed = 1.1, level = 70, func = equip, }, [384] = { name = "[70]Reaxter leggings", plural = "isso é mais que divino", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 5, fimage = "gfx/weiwen/Imperion/Reaxter/reaxter_legs.png", def = 6.4, speed = 5.2, level = 70, func = equip, }, [385] = { name = "[70]Reaxter boots", plural = "uma das bostas mais forte", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 6, fimage = "gfx/weiwen/Imperion/Reaxter/reaxter_boots.png", def = 14.00, speed = 6.7, level = 70, func = equip, }, [386] = { name = "[70]Reaxter crossbow", desc = "It requires you to hold it with two hands.", r = 255, g = 255, b = 255, action = "equip", slot = 3, twohand = false, eimage = "gfx/weiwen/Imperion/Reaxter/reaxter_bow.png", fimage = "gfx/weiwen/Imperion/Reaxter/reaxter_bow.png", offsety = 9, equip = 1, atk = 5.2, speed = 3.0, level = 70, func = equip }, [387] = { name = "[70]Reaxter Wings", desc = "You move faster with it, but are unable to attack with it. Your defence is also reduced significantly.", r = 255, g = 255, b = 255, action = "Equip", slot = 7, ground = true, water = true, fimage = "gfx/weiwen/Imperion/Reaxter/reaxter_wings.png", eimage = "gfx/weiwen/Imperion/Reaxter/reaxter_wings.png", fscalex = 1.2, fscaley = 0.8, escalex = 1.2, escaley = 0.8, offsety = 20, speed = 45, def = 5.7, level = 70, func = equip, }, [392] = { name = "[80]Robotic helmet", r = 255, g = 255, b = 255, action = "equip", slot = 1, eimage = "gfx/weiwen/Imperion/Robotic/robot_helm.png", fimage = "gfx/weiwen/Imperion/Robotic/robot_helm.png", def = 10, speed = 5, level = 80, func = equip, }, [393] = { name = "[80]Robotic armor", r = 255, g = 255, b = 255, action = "equip", slot = 2, eimage = "gfx/weiwen/Imperion/Robotic/robot_armour.png", fimage = "gfx/weiwen/Imperion/Robotic/robot_farmour.png", equip = 82, def = 10, speed = 5, level = 80, func = equip, }, [394] = { name = "[80]Robotic leggings", plural = "isso é mais que divino", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 5, fimage = "gfx/weiwen/Imperion/Robotic/robot_legs.png", def = 10, speed = 6, level = 80, func = equip, }, [395] = { name = "[80]Robotic boots", plural = "uma das bostas mais forte", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 6, fimage = "gfx/weiwen/Imperion/Robotic/robot_boots.png", def = 15, speed = 7, level = 80, func = equip, }, [406] = { name = "[90]Aqua helmet", r = 255, g = 255, b = 255, action = "equip", slot = 1, eimage = "gfx/weiwen/Imperion/Aqua/Water_Helm.png", fimage = "gfx/weiwen/Imperion/Aqua/Water_Helm.png", def = 20, speed = 10, level = 90, func = equip, }, [407] = { name = "[90]Aqua armor", r = 255, g = 255, b = 255, action = "equip", slot = 2, eimage = "gfx/weiwen/Imperion/Aqua/water_armour.png", fimage = "gfx/weiwen/Imperion/Aqua/water_farmour.png", equip = 82, def = 20, speed = 10, level = 90, func = equip, }, [408] = { name = "[90]Aqua leggings", plural = "isso é mais que divino", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 5, fimage = "gfx/weiwen/Imperion/Aqua/water_legs.png", def = 20, speed = 10, level = 90, func = equip, }, [409] = { name = "[90]Aqua boots", plural = "uma das bostas mais forte", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 6, fimage = "gfx/weiwen/Imperion/Aqua/water_boots.png", def = 25, speed = 19, level = 90, func = equip, }, [410] = { name = "[90]Aqua crossbow", desc = "wow ....", r = 255, g = 255, b = 255, action = "equip", slot = 3, twohand = false, eimage = "gfx/weiwen/Imperion/Aqua/Water_bow.png", fimage = "gfx/weiwen/Imperion/Aqua/Water_bow.png", offsety = 9, equip = 32, atk = 30, speed = 10, level = 90, func = equip, }, [422] = { name = "[100]Lava helmet", r = 255, g = 255, b = 255, action = "equip", slot = 1, eimage = "gfx/weiwen/Imperion/lava/magma_helm.png", fimage = "gfx/weiwen/Imperion/lava/magma_helm.png", def = 40, speed = 20, level = 100, func = equip, }, [423] = { name = "[100]Lava armor", r = 255, g = 255, b = 255, action = "equip", slot = 2, eimage = "gfx/weiwen/Imperion/lava/magma_armour.png", fimage = "gfx/weiwen/Imperion/lava/magma_farmour.png", equip = 82, def = 40, speed = 20, level = 100, func = equip, }, [424] = { name = "[100]Lava leggings", plural = "isso é mais que divino", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 5, fimage = "gfx/weiwen/Imperion/lava/magma_legs.png", def = 40, speed = 20, level = 100, func = equip, }, [425] = { name = "[100]Lava boots", plural = "uma das bostas mais forte", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 6, fimage = "gfx/weiwen/Imperion/lava/magma_boots.png", def = 50, speed = 40, level = 100, func = equip, }, [426] = { name = "[100]Lava crossbow", desc = "wow ....", r = 255, g = 255, b = 255, action = "equip", slot = 3, twohand = false, eimage = "gfx/weiwen/Imperion/lava/magma_bow.png", fimage = "gfx/weiwen/Imperion/lava/magma_bow.png", offsety = 9, equip = 32, atk = 60, speed = 20, level = 100, func = equip, }, [427] = { name = "[150]apocalypse helmet", r = 255, g = 255, b = 255, action = "equip", slot = 1, eimage = "gfx/weiwen/Imperion/apoc1/dhelmet.png", fimage = "gfx/weiwen/Imperion/apoc1/dhelmet.png", def = 50, speed = 30, level = 150, func = equip, }, [428] = { name = "[150]apocalypse armor", r = 255, g = 255, b = 255, action = "equip", slot = 2, eimage = "gfx/weiwen/Imperion/apoc1/darmourw.png", fimage = "gfx/weiwen/Imperion/apoc1/darmor.png", equip = 82, def = 50, speed = 30, level = 150, func = equip, }, [429] = { name = "[150]apocalypse leggings", plural = "isso é mais que divino", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 5, fimage = "gfx/weiwen/Imperion/apoc1/dlegs.png", def = 50, speed = 30, level = 150, func = equip, }, [430] = { name = "[150]apocalypse boots", plural = "uma das bostas mais forte", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 6, fimage = "gfx/weiwen/Imperion/apoc1/dboots.png", def = 60, speed = 50, level = 150, func = equip, }, [431] = { name = "[150]apocalypse crossbow", desc = "wow ....", r = 255, g = 255, b = 255, action = "equip", slot = 3, twohand = false, eimage = "gfx/weiwen/Imperion/lava/magma_bow.png", fimage = "gfx/weiwen/Imperion/lava/magma_bow.png", offsety = 9, equip = 32, atk = 60, speed = 20, level = 150, func = equip, }, [435] = { name = "[175]apocalypse Night helmet", r = 255, g = 255, b = 255, action = "equip", slot = 1, eimage = "gfx/weiwen/Imperion/apoc2/night_helm.png", fimage = "gfx/weiwen/Imperion/apoc2/night_helm.png", def = 75, speed = 40, level = 175, func = equip, }, [436] = { name = "[175]apocalypse night armor", r = 255, g = 255, b = 255, action = "equip", slot = 2, eimage = "gfx/weiwen/Imperion/apoc2/night_armor.png", fimage = "gfx/weiwen/Imperion/apoc2/night_farmor.png", equip = 82, def = 60, speed = 40, level = 175, func = equip, }, [437] = { name = "[175]apocalypse night leggings", plural = "isso é mais que divino", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 5, fimage = "gfx/weiwen/Imperion/apoc2/night_legs.png", def = 60, speed = 40, level = 175, func = equip, }, [438] = { name = "[175]apocalypse night boots", plural = "uma das bostas mais forte", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 6, fimage = "gfx/weiwen/Imperion/apoc2/night_boots.png", def = 70, speed = 60, level = 175, func = equip, }, [439] = { name = "[200]apoc barbarian helmet", r = 255, g = 255, b = 255, action = "equip", slot = 1, eimage = "gfx/weiwen/Imperion/apoc3/undeadhelm.png", fimage = "gfx/weiwen/Imperion/apoc3/undeadhelm.png", def = 80, speed = 50, level = 200, func = equip, }, [440] = { name = "[200]apoc barbarian armor", r = 255, g = 255, b = 255, action = "equip", slot = 2, eimage = "gfx/weiwen/Imperion/apoc3/undeadarmor.png", fimage = "gfx/weiwen/Imperion/apoc3/undeadfarmour.png", equip = 82, def = 75, speed = 50, level = 200, func = equip, }, [441] = { name = "[200]apoc barbarian legings", plural = "isso é mais que divino", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 5, fimage = "gfx/weiwen/Imperion/apoc3/undeadlegs.png", def = 75, speed = 50, level = 200, func = equip, }, [442] = { name = "[200]apoc barbarian boots", plural = "uma das bostas mais forte", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 6, fimage = "gfx/weiwen/Imperion/apoc3/undeadboots.png", def = 75, speed = 75, level = 200, func = equip, }, [788] = { name = "[225]apocalypse chaos helmet", r = 255, g = 255, b = 255, action = "equip", slot = 1, eimage = "gfx/weiwen/Imperion/apoc4/bhelmet.png", fimage = "gfx/weiwen/Imperion/apoc4/bhelmet.png", def = 90, speed = 100, level = 225, func = equip, }, [789] = { name = "[225]apocalypse chaos armor", r = 255, g = 255, b = 255, action = "equip", slot = 2, eimage = "gfx/weiwen/Imperion/apoc4/barmour.png", fimage = "gfx/weiwen/Imperion/apoc4/bfarmour.png", equip = 82, def = 80, speed = 60, level = 225, func = equip, }, [790] = { name = "[225]apocalypse chaos leggs", plural = "strongest", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 5, fimage = "gfx/weiwen/Imperion/apoc4/blegs.png", def = 80, speed = 60, level = 225, func = equip, }, [791] = { name = "[225]apocalypse chaos boots", plural = "strongest", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 6, fimage = "gfx/weiwen/Imperion/apoc4/bboots.png", def = 80, speed = 80, level = 225, func = equip, }, [3000] = { name = "[250]Expecial helmet", r = 255, g = 255, b = 255, action = "equip", slot = 1, eimage = "gfx/weiwen/Imperion/EX/hielo_helm.png", fimage = "gfx/weiwen/Imperion/EX/hielo_helm.png", def = 100, speed = 100, level = 250, func = equip, }, [3001] = { name = "[250]Expecial armor", r = 255, g = 255, b = 255, action = "equip", slot = 2, eimage = "gfx/weiwen/Imperion/EX/hielo_armour.png", fimage = "gfx/weiwen/Imperion/EX/hielo_farmour.png", equip = 82, def = 100, speed = 60, level = 250, func = equip, }, [3002] = { name = "[250]Expecial leggs", plural = "strongest", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 5, fimage = "gfx/weiwen/Imperion/EX/hielo_legs.png", def = 100, speed = 60, level = 250, func = equip, }, [3003] = { name = "[250]Expecial boots", plural = "strongest", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 6, fimage = "gfx/weiwen/Imperion/EX/hielo_boots.png", def = 100, speed = 80, level = 250, func = equip, }, [3004] = { name = "[250]Expecial bow", desc = "wow ....", r = 255, g = 255, b = 255, action = "equip", slot = 3, twohand = false, eimage = "gfx/weiwen/Imperion/EX/hielo_bow.png", fimage = "gfx/weiwen/Imperion/EX/hielo_bow.png", offsety = 9, equip = 32, atk = 100, speed = 20, level = 250, func = equip, }, [3005] = { name = "[250]Expecial Wings", desc = "You move faster with it, but are unable to attack with it. Your defence is also reduced significantly.", r = 255, g = 255, b = 255, action = "Equip", slot = 7, ground = true, water = true, fimage = "gfx/weiwen/Imperion/EX/hielo_wings.png", eimage = "gfx/weiwen/Imperion/EX/hielo_wings.png", fscalex = 1.2, fscaley = 0.8, escalex = 1.2, escaley = 0.8, offsety = 20, speed = 50, def = 300, level = 250, func = equip, }, [3006] = { name = "[250]Expecial sword", r = 255, g = 255, b = 255, action = "equip", slot = 3, eimage = "gfx/weiwen/Imperion/EX/hielo_sword.png", fimage = "gfx/weiwen/Imperion/EX/hielo_sword.png", offsetx = 6, offsety = 17, equip = 69, atk = 100, speed = 0, level = 250, func = equip, }, [3007] = { name = "[250]Expecial shield", r = 255, g = 255, b = 255, action = "equip", slot = 4, eimage = "gfx/weiwen/Imperion/EX/hielo_shield.png", fimage = "gfx/weiwen/Imperion/EX/hielo_fshield.png", equip = 41, def = 50, speed = 0, level = 250, func = equip, }, [3008] = { name = "[250]Expecial Ring", r = 255, g = 255, b = 255, action = "equip", slot = 8, fimage = "gfx/weiwen/Imperion/EX/hielo_ring.png", def = 1000, speed = 4, func = equip, }, [4000] = { name = "[275]Expecial 2 helmet", r = 255, g = 255, b = 255, action = "equip", slot = 1, eimage = "gfx/weiwen/Imperion/EX2/ex2_helm.png", fimage = "gfx/weiwen/Imperion/EX2/ex2_helm.png", def = 110, speed = 275, func = equip, }, [4001] = { name = "[275]Expecial 2 armor", r = 255, g = 255, b = 255, action = "equip", slot = 2, eimage = "gfx/weiwen/Imperion/EX2/ex2_armour.png", fimage = "gfx/weiwen/Imperion/EX2/ex2_armour.png", equip = 82, def = 110, speed = 70, level = 275, func = equip, }, [4002] = { name = "[275]Expecial 2 leggs", plural = "strongest", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 5, fimage = "gfx/weiwen/Imperion/EX2/ex2_legs.png", def = 110, speed = 70, level = 275, func = equip, }, [4003] = { name = "[275]Expecial 2 boots", plural = "strongest", article = "a pair of", r = 255, g = 255, b = 255, action = "equip", slot = 6, fimage = "gfx/weiwen/Imperion/EX2/ex2_boots.png", def = 110, speed = 90, level = 275, func = equip, }, [4004] = { name = "[275]Expecial 2 bow", desc = "wow ....", r = 255, g = 255, b = 255, action = "equip", slot = 3, twohand = false, eimage = "gfx/weiwen/Imperion/EX2/ex2_bow.png", fimage = "gfx/weiwen/Imperion/EX2/ex2_bow.png", offsety = 9, equip = 32, atk = 110, speed = 25, level = 275, func = equip, }, [4005] = { name = "[275]Expecial 2 Wings", desc = "You move faster with it, but are unable to attack with it. Your defence is also reduced significantly.", r = 255, g = 255, b = 255, action = "Equip", slot = 7, ground = true, water = true, fimage = "gfx/weiwen/Imperion/EX2/ex2_kanat.png", eimage = "gfx/weiwen/Imperion/EX2/ex2_kanat.png", fscalex = 1.2, fscaley = 0.8, escalex = 1.2, escaley = 0.8, offsety = 20, speed = 60, def = 305, level = 275, func = equip, }, [500] = { name = "[Admin] crossbow", desc = "wow ....", r = 255, g = 255, b = 255, action = "equip", slot = 3, twohand = false, eimage = "gfx/weiwen/Imperion/more/m134_g.png", fimage = "gfx/weiwen/Imperion/more/m134_gd.png", offsety = 9, equip = 40, def = -20000 atk = 999999999, speed = 100, func = equip, }, [432] = { name = "[150]Lunar apocalypse Aura", desc = "You move faster with it, but are unable to attack with it. Your defence is also reduced significantly.", r = 255, g = 255, b = 255, action = "ride", slot = 7, ground = true, water = true, fimage = "gfx/weiwen/Imperion/more/lunar_aura.png", eimage = "gfx/weiwen/Imperion/more/lunar_aura.png", speed = 200, def = 20, level = 150, func = equip, }, [433] = { name = "[200]Solar apocalypse Aura", desc = "You move faster with it, but are unable to attack with it. Your defence is also reduced significantly.", r = 255, g = 255, b = 255, action = "ride", slot = 7, ground = true, water = true, fimage = "gfx/weiwen/Imperion/more/solar_aura.png", eimage = "gfx/weiwen/Imperion/more/solar_aura.png", speed = 200, def = 40, level = 200, func = equip, }, [434] = { name = "[500]Eclipse apocalypse Aura", desc = "You move faster with it, but are unable to attack with it. Your defence is also reduced significantly.", r = 255, g = 255, b = 255, action = "ride", slot = 7, ground = true, water = true, fimage = "gfx/weiwen/Imperion/more/eclipseaura.png", eimage = "gfx/weiwen/Imperion/more/eclipseaura.png", speed = 200, def = 100, level = 500, func = equip, }, [411] = { name = "Amulet + 100", r = 255, g = 255, b = 255, action = "equip", slot = 8, fimage = "gfx/weiwen/Imperion/more/amulet.png", def = 100, speed = 3, func = equip, }, [412] = { name = "Amulet + 200", r = 255, g = 255, b = 255, action = "equip", slot = 8, fimage = "gfx/weiwen/Imperion/more/amulet.png", def = 200, speed = 3, func = equip, }, [413] = { name = "Amulet + 300", r = 255, g = 255, b = 255, action = "equip", slot = 8, fimage = "gfx/weiwen/Imperion/more/amulet.png", def = 300, speed = 3, func = equip, },[/code]

quinta-feira, 6 de setembro de 2012

[code] Monster = {name = 'Monster', health = 100, image = 'gfx/weiwen/circle.png', scalex = 1, scaley = 1, atk = 1, def = 1, spd = 5, x = 0, y = 0, ang = 0, imgang = 0, exp = 5, money = 50, type = 'monster', loot = {}} MONSTERS = {} local t = 0 CONFIG.MONSTERS = { { name = 'Bulbasaur', health = 100, image = 'gfx/weiwen/pokemon/9.bmp', scalex = 2, scaley = 2, r = 136, g = 224, b = 32, atk = 1.9, def = 2.1, spd = 6, atkspd = 8, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 5, runat = 10, exp = 15, money = 100, loot = {{chance = 5000, id = 102}, {chance = 50, id = 221}}, spawn1 = {0, 100}, spawn2 = {150, 150}, spc = {1500, function(self) radiusmsg("Bulbasaur casts heal!", self.x, self.y) parse("effect \"colorsmoke\" " .. self.x .. " " .. self.y .. " 5 5 255 255 255") end}, }, { name = 'Charmander', health = 100, image = 'gfx/weiwen/pokemon/200.bmp', scalex = 2, scaley = 2, atk = 2.2, def = 1.8, spd = 6, atkspd = 8, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 5, runat = 10, exp = 15, money = 100, loot = {{chance = 5000, id = 100}, {chance = 50, id = 222}}, spawn1 = {0, 100}, spawn2 = {150, 150}, spc = {1000, function(self, target) radiusmsg("Charmander uses ember!", self.x, self.y) parse('explosion ' .. self.x .. ' ' .. self.y .. ' 96 40') parse('effect "colorsmoke" ' .. self.x .. ' ' .. self.y .. ' 100 64 255 128 0') parse('effect "colorsmoke" ' .. self.x .. ' ' .. self.y .. ' 100 96 255 255 0') end}, }, { name = 'Squirtle', health = 100, image = 'gfx/weiwen/pokemon/azul.bmp', scalex = 2, scaley = 2, atk = 1.7, def = 2.3, spd = 6, atkspd = 8, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 5, runat = 10, exp = 15, money = 100, loot = {{chance = 5000, id = 101}, {chance = 50, id = 223}}, spawn1 = {0, 100}, spawn2 = {150, 150}, spc = {1000, function(self) radiusmsg("Squirtle uses watergun!", self.x, self.y) parse('explosion ' .. self.x .. ' ' .. self.y .. ' 96 40') parse('effect "colorsmoke" ' .. self.x .. ' ' .. self.y .. ' 100 96 255 255 255') parse('effect "colorsmoke" ' .. self.x .. ' ' .. self.y .. ' 75 96 128 128 255') end}, }, { name = 'Caterpie', health = 100, image = 'gfx/weiwen/pokemon/16.bmp', scalex = 1.5, scaley = 1.5, r = 104, g = 152, b = 40, atk = 1.1, def = 1.2, spd = 7, atkspd = 10, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 100, runat = 20, spawn1 = {0, 0}, spawn2 = {150, 150}, exp = 10, money = 30, loot = {{chance = 8000, id = 1}}, }, { name = 'Weedle', health = 100, image = 'gfx/weiwen/pokemon/17.bmp', scalex = 1.5, scaley = 1.5, r = 104, g = 152, b = 40, atk = 1.2, def = 1.1, spd = 7, atkspd = 10, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 100, runat = 20, spawn1 = {0, 0}, spawn2 = {150, 150}, exp = 10, money = 30, loot = {{chance = 8000, id = 1}}, }, { name = 'Pidgey', health = 100, image = 'gfx/weiwen/pokemon/18.bmp', scalex = 2, scaley = 2, atk = 1.2, def = 1.2, spd = 10, atkspd = 7, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 50, runat = 20, spawn1 = {0, 0}, spawn2 = {150, 150}, exp = 20, money = 60, loot = {}, spc = {500, function(self) radiusmsg("Pidgey uses sand attack!", self.x, self.y) parse('flashposition ' .. self.x .. ' ' .. self.y .. ' 100') end}, }, { name = 'esquelet', health = 100, image = 'gfx/weiwen/pokemon/7.bmp', scalex = 1.5, scaley = 1.5, atk = 1.0, def = 1.0, spd = 9, atkspd = 5, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 100, runat = 20, spawn1 = {0, 0}, spawn2 = {150, 150}, exp = 10, money = 50, loot = {{chance = 8000, id = 4}}, }, { name = 'Bronze Vortex', health = 165, image = 'gfx/weiwen/pokemon/tierra.bmp', scalex = 2, scaley = 2, atk = 2.0, def = 7.0, spd = 10, atkspd = 9, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 100, runat = 20, spawn1 = {0, 0}, spawn2 = {180, 77}, exp = 410, money = 1000, loot = {{chance = 8000, id = 320}, {chance = 8000, id = 321}}, }, { name = 'Ice Monster', health = 200, image = 'gfx/weiwen/pokemon/13.bmp', scalex = 2, scaley = 2, atk = 4.3, def = 11.2, spd = 10, atkspd = 11, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 100, runat = 20, spawn1 = {0, 0}, spawn2 = {177, 143}, exp = 2020, money = 2200, loot = {{chance = 8000, id = 340}, {chance = 8000, id = 341}}, }, { name = 'Fire Dragon', health = 190, image = 'gfx/weiwen/pokemon/firedragon.bmp', scalex = 2, scaley = 2, atk = 6.3, def = 19.2, spd = 20, atkspd = 11, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 100, runat = 20, spawn1 = {0, 0}, spawn2 = {177, 143}, exp = 4020, money = 5000, loot = {{chance = 8000, id = 356}, {chance = 8000, id = 350}}, }, { name = 'Dragon', health = 200, image = 'gfx/weiwen/pokemon/3.bmp', scalex = 2, scaley = 2, atk = 3.0, def = 9.0, spd = 12, atkspd = 9, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 100, runat = 20, spawn1 = {0, 0}, spawn2 = {171, 119}, exp = 1020, money = 1200, loot = {{chance = 8000, id = 327}, {chance = 8000, id = 328}}, }, { name = 'Aqua', health = 200, image = 'gfx/weiwen/pokemon/3.bmp', scalex = 2, scaley = 2, atk = 3.0, def = 9.0, spd = 12, atkspd = 9, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 100, runat = 20, spawn1 = {0, 0}, spawn2 = {171, 119}, exp = 1020, money = 1200, loot = {{chance = 8000, id = 327}, {chance = 8000, id = 328}}, }, { name = 'Spearow', health = 100, image = 'gfx/weiwen/pokemon/6.bmp', scalex = 2, scaley = 2, atk = 1.4, def = 1.0, spd = 10, atkspd = 7, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 50, runat = 20, spawn1 = {0, 0}, spawn2 = {150, 150}, exp = 20, money =60, loot = {}, spc = {2500, function(self, id, dist) if not self.agility then radiusmsg("Spearow uses agility!", self.x, self.y) parse("effect \"colorsmoke\" " .. self.x .. " " .. self.y .. " 5 5 155 255 155") radiussound("weapons/g_flash.wav", self.x, self.y) self.spd = 10 self.agility = true imagecolor(self.image, 155, 255, 155) timer(5000, "CONFIG.MONSTERSKILLS.endAgility", self.id) elseif dist <= 32 then self:hit(id, 10) end end}, }, { name = 'Ekans', health = 100, image = 'gfx/weiwen/pokemon/10.bmp', scalex = 2, scaley = 2, atk = 1.8, def = 1.2, spd = 7, atkspd = 8, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 20, runat = 10, spawn1 = {0, 0}, spawn2 = {150, 150}, exp = 10, money = 80, loot = {}, spc = {500, function(self, id, dist) if dist <= 96 then radiusmsg("Ekans uses poison sting!", self.x, self.y) self:hit(id, 20) end end}, }, { name = 'Bear', health = 100, image = 'gfx/weiwen/pokemon/15.bmp', scalex = 2, scaley = 2, atk = 2.1, def = 2.1, spd = 7, atkspd = 7, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 5, runat = 10, spawn1 = {0, 100}, spawn2 = {150, 150}, exp = 25, money = 120, loot = {{chance = 5000, id = 103}, {chance = 50, id = 220}}, spc = {500, function(self) radiusmsg("Pikachu uses thundershock!", self.x, self.y) parse('explosion ' .. self.x .. ' ' .. self.y .. ' 96 40') parse('effect "colorsmoke" ' .. self.x .. ' ' .. self.y .. ' 100 96 255 255 0') parse('effect "colorsmoke" ' .. self.x .. ' ' .. self.y .. ' 75 64 255 255 255') end}, }, { name = 'Sandshrew', health = 100, image = 'gfx/weiwen/pokemon/12.bmp', scalex = 2, scaley = 2, atk = 1.7, def = 2.1, spd = 7, atkspd = 7, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 10, runat = 10, spawn1 = {165, 30}, spawn2 = {184, 48}, exp = 18, money = 120, loot = {}, spc = {1000, function(self) radiusmsg("Sandshrew uses sand attack!", self.x, self.y) parse('flashposition ' .. self.x .. ' ' .. self.y .. ' 100') end}, }, { name = 'NidoranF', health = 100, image = 'gfx/weiwen/pokemon/100.bmp', scalex = 2, scaley = 2, atk = 1.8, def = 1.2, spd = 7, atkspd = 8, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 20, runat = 10, spawn1 = {0, 0}, spawn2 = {150, 150}, exp = 10, money = 80, loot = {}, spc = {750, function(self, id, dist) if dist <= 96 then radiusmsg("NidoranF uses poison sting!", self.x, self.y) self:hit(id, 20) end end}, }, { name = 'mumia', health = 100, image = 'gfx/weiwen/pokemon/10006.bmp', scalex = 2, scaley = 2, atk = 1.8, def = 1.2, spd = 7, atkspd = 8, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 20, runat = 10, spawn1 = {0, 0}, spawn2 = {150, 150}, exp = 10, money = 80, loot = {}, spc = {750, function(self, id, dist) if dist <= 96 then radiusmsg("NidoranM uses horn attack!", self.x, self.y) self:hit(id, 20) end end}, }, { name = 'Vulpix', health = 100, image = 'gfx/weiwen/pokemon/10005.bmp', scalex = 2, scaley = 2, atk = 2.2, def = 1.8, spd = 7, atkspd = 8, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 10, runat = 0, spawn1 = {0, 100}, spawn2 = {150, 150}, exp = 10, money = 100, loot = {{chance = 5000, id = 104}}, spc = {500, function(self, id, dist) radiusmsg("Vulpix uses flamethrower!", self.x, self.y) local x1, y1 = self.x, self.y local rot = math.atan2(player(id, 'y')-y1, player(id, 'x')-x1) + math.pi/2 local x2, y2 = math.sin(rot), -math.cos(rot) local fire = image("gfx/sprites/spot.bmp", 0, 0, 1) imagepos(fire, x1+x2*64, y1+y2*64, math.deg(rot)+180) imagescale(fire, 1.5, 2) imagecolor(fire, 255, 64, 0) imageblend(fire, 1) timer(500, "freeimage", fire) parse('explosion ' .. x1+x2*100 .. ' ' .. y1+y2*100 .. ' 48 40') parse('explosion ' .. x1+x2*50 .. ' ' .. y1+y2*50 .. ' 32 40') end}, }, { name = 'Dog', health = 100000, image = 'gfx/weiwen/pokemon/14.bmp', scalex = 2, scaley = 2, atk = 0, def = 999999, spd = 1, atkspd = 6, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 10, runat = 0, spawn1 = {0, 0}, spawn2 = {150, 150}, exp = 25, money = 100, loot = {{chance = 1000, id = 230}}, }, { name = 'Exp', health = 500, image = 'gfx/weiwen/pokemon/exp.png', scalex = 2, scaley = 2, atk = 0.0, def = 5.2, spd = 0.1, atkspd = 1, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 10, runat = 0, spawn1 = {0, 0}, spawn2 = {150, 150}, exp = 5000000, money = 100, loot = {}, }, { name = 'Mankey', health = 100, image = 'gfx/weiwen/pokemon/2000.bmp', scalex = 2, scaley = 2, atk = 2.5, def = 1.8, spd = 10, atkspd = 6, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 10, runat = 0, range = 48, spawn1 = {0, 100}, spawn2 = {150, 150}, exp = 25, money = 120, loot = {{chance = 1000, id = 300},{chance = 1000, id = 301},{chance = 1000, id = 302},{chance = 1000, id = 303},{chance = 1000, id = 304},{chance = 1000, id = 305},{chance = 1000, id = 306}}, spc = {1000, function(self, id, dist) if not self.rage then radiusmsg("Mankey uses rage!", self.x, self.y) parse("effect \"colorsmoke\" " .. self.x .. " " .. self.y .. " 5 5 255 155 155") radiussound("weapons/g_flash.wav", self.x, self.y) self.def = 3.3 self.rage = true imagecolor(self.image, 255, 155, 155) timer(5000, "CONFIG.MONSTERSKILLS.endRage", self.id) elseif dist <= 96 then radiusmsg("Mankey uses karate chop!", self.x, self.y) self:hit(id, 20) end end}, }, { name = 'Abra', health = 100, image = 'gfx/weiwen/pokemon/250.bmp', scalex = 2, scaley = 2, atk = 0.6, def = 1.0, spd = 5, atkspd = 10, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 10, runat = 100, spawn1 = {0, 0}, spawn2 = {150, 150}, exp = 8, money = 50, loot = {{chance = 5000, id = 105}}, spc = {2500, function(self) radiusmsg("Abra uses teleport!", self.x, self.y) parse("effect \"colorsmoke\" " .. self.x .. " " .. self.y .. " 5 5 255 255 255") local dir = math.random(math.pi*2) if self:move(dir, 40) or self:move(dir, -40) then parse("effect \"colorsmoke\" " .. self.x .. " " .. self.y .. " 5 5 255 255 255") end end}, }, { name = 'Gastly', health = 100, image = 'gfx/weiwen/pokemon/8.bmp', scalex = 2, scaley = 2, r = 64, g = 0, b = 64, atk = 1.2, def = 1.5, spd = 8, atkspd = 10, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 10, runat = 50, spawn1 = {0, 100}, spawn2 = {150, 150}, exp = 8, money = 100, loot = {}, spc = {1000, function(self, id, dist) if dist <= 64 and not PLAYERS[id].tmp.paralyse then radiusmsg("Gastly uses lick!", self.x, self.y) PLAYERS[id].tmp.paralyse = true msg2(id, "You are paralysed.") parse("effect \"colorsmoke\" " .. player(id, 'x') .. " " .. player(id, 'y') .. " 5 5 64 0 64") timer(3000, "rem.paralyse", id) elseif dist <= 32 then self:hit(id, 10) end end}, }, { name = 'Onix', health = 125, image = 'gfx/weiwen/pokemon/1.bmp', scalex = 3, scaley = 3, r = 144, g = 144, b = 144, atk = 1.8, def = 5.0, spd = 3, atkspd = 10, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 5, runat = 0, range = 64, spawn1 = {165, 30}, spawn2 = {184, 48}, exp = 100, money = 300, loot = {{chance = 1000, id = 310},{chance = 1000, id = 311},{chance = 1000, id = 312},{chance = 1000, id = 313},{chance = 1000, id = 314},{chance = 1000, id = 315},{chance = 1000, id = 316}}, spc = {1000, function(self) if not self.harden then radiusmsg("Onix uses harden!", self.x, self.y) parse("effect \"colorsmoke\" " .. self.x .. " " .. self.y .. " 5 5 192 192 192") radiussound("weapons/g_flash.wav", self.x, self.y) self.def = 7.5 self.harden = true imagecolor(self.image, 155, 155, 255) timer(5000, "CONFIG.MONSTERSKILLS.endHarden", self.id) end end}, }, { name = 'Voltorb', health = 100, image = 'gfx/weiwen/pokemon/5.bmp', scalex = 2, scaley = 2, r = 144, g = 144, b = 144, atk = 2.3, def = 2.3, spd = 5, atkspd = 8, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 10, runat = 20, range = 48, spawn1 = {0, 100}, spawn2 = {150, 150}, exp = 30, money = 130, loot = {{chance = 5000, id = 103}}, spc = {1000, function(self) if self.health < 20 then radiusmsg("Voltorb uses selfdestruct!", self.x, self.y) parse('explosion ' .. self.x .. ' ' .. self.y .. ' 128 80') parse('effect "colorsmoke" ' .. self.x .. ' ' .. self.y .. ' 100 128 255 128 0') parse('effect "colorsmoke" ' .. self.x .. ' ' .. self.y .. ' 100 128 255 255 0') self:destroy() else radiusmsg("Voltorb uses thundershock!", self.x, self.y) parse('explosion ' .. self.x .. ' ' .. self.y .. ' 96 40') parse('effect "colorsmoke" ' .. self.x .. ' ' .. self.y .. ' 100 96 255 255 0') parse('effect "colorsmoke" ' .. self.x .. ' ' .. self.y .. ' 75 64 255 255 255') end end}, }, { name = 'Koffing', health = 100, image = 'gfx/weiwen/pokemon/251.bmp', scalex = 2, scaley = 2, r = 128, g = 128, b = 0, atk = 2.0, def = 1.7, spd = 4, atkspd = 10, x = 0, y = 0, ang = 0, imgang = 0, spawnchance = 10, runat = 20, range = 48, spawn1 = {0, 100}, spawn2 = {150, 150}, exp = 30, money = 150, loot = {{chance = 5000, id = 106}}, spc = {1000, function(self) if self.health < 20 then radiusmsg("Koffing uses explosion!", self.x, self.y) parse('explosion ' .. self.x .. ' ' .. self.y .. ' 128 40') parse('effect "colorsmoke" ' .. self.x .. ' ' .. self.y .. ' 100 128 255 128 0') parse('effect "colorsmoke" ' .. self.x .. ' ' .. self.y .. ' 100 128 255 255 0') self:destroy() else radiusmsg("Koffing uses poison fog!", self.x, self.y) parse('explosion ' .. self.x .. ' ' .. self.y .. ' 96 40') parse('effect "colorsmoke" ' .. self.x .. ' ' .. self.y .. ' 100 96 128 128 0') end end}, }, } CONFIG.MONSTERSKILLS = { endAgility = function(id) self = MONSTERS[tonumber(id)] self.spd = self._spd self._spd = nil imagecolor(self.image, 255, 255, 255) self.agility = nil end, endRage = function(id) self = MONSTERS[tonumber(id)] self.atk = self._atk self._atk = nil imagecolor(self.image, 255, 255, 255) self.rage = nil end, endHarden = function(id) self = MONSTERS[tonumber(id)] self.def = self._def self._def = nil imagecolor(self.image, 255, 255, 255) self.harden = nil end, } addhook("attack", "MONSTERattack") function MONSTERattack(id) if gettile(PLAYERS[id].x, PLAYERS[id].y).SAFE or gettile(PLAYERS[id].x, PLAYERS[id].y).NOMONSTERS then return end if inarray({400, 401, 402, 403, 404}, PLAYERS[id].Equipment[7]) then message(id, "You may not attack on a horse.") return end local weapon, closest = player(id, 'weapontype') for _, m in ipairs(MONSTERS) do local x, y = player(id, 'x'), player(id, 'y') local dist = math.sqrt((m.x-x)^2+(m.y-y)^2) if dist <= (closest and closest[2] or (CONFIG.WEAPONRANGE[weapon] or CONFIG.WEAPONRANGE[50])) then local rot = player(id, 'rot') if math.abs(math.rad(rot) - math.atan2(y-m.y, x-m.x) + math.pi/2)%(2*math.pi) <= (CONFIG.WEAPONWIDTH[weapon] or CONFIG.WEAPONRANGE[50]) then closest = {m, dist} end end end if closest then closest[1]:damage(id, math.ceil(20*((PLAYERS[id].Level+50)*PLAYERS[id].tmp.atk/closest[1].def)/math.random(60, 140)), weapon) end end addhook("ms100", "MONSTERms100") function MONSTERms100() t = t + 1 if t % 100 == 0 then while #MONSTERS < CONFIG.MAXMONSTERS do local rand, spawnNo, mapName while true do rand = math.random(#CONFIG.MONSTERS) mapName = CONFIG.MONSTERS[rand].spawn[map'name'] and map'name' or CONFIG.DEFAULTMAP spawnNo = math.random(#CONFIG.MONSTERS[rand].spawn[mapName]) if math.random(0, 100) < CONFIG.MONSTERS[rand].spawnchance[mapName][spawnNo] then break end end local m = deepcopy(CONFIG.MONSTERS[rand]) local x, y, tilex, tiley local spawn = m.spawn[mapName][spawnNo] repeat tilex, tiley = math.random(spawn[1][1], spawn[2][1]), math.random(spawn[1][2], spawn[2][2]) until not gettile(tilex, tiley).SAFE and not gettile(tilex, tiley).NOMONSTERS and tile(tilex, tiley, "walkable") and tile(tilex, tiley, "frame") ~= 34 m.x, m.y = math.floor(tilex*32+16), math.floor(tiley*32+16) Monster:new(m) end end for _, m in ipairs(MONSTERS) do if t % m.atkspd == 0 then m.target = nil local closest for _, p in ipairs(table.shuffle(player(0, 'table'))) do if player(p, 'health') > 0 and not gettile(PLAYERS[p].x, PLAYERS[p].y).SAFE and not gettile(PLAYERS[p].x, PLAYERS[p].y).NOMONSTERS then local dist = math.sqrt((player(p, 'x')-m.x)^2 + (player(p, 'y')-m.y)^2) if dist < 400 then if not closest or dist < closest[2] then closest = {p, dist} end end end end if closest then local dist = closest[2] if dist < 400 then m.target = closest[1] if m.spc and math.random(10000) <= m.spc[1] then m.spc[2](m, m.target, dist) elseif dist <= (m.range or 32) then m:hit(m.target, 10) end end end end m.imgang = math.sin(t/2.5*math.pi) * 15 if m.target and player(m.target, 'exists') and player(m.target, 'health') > 0 and not gettile(PLAYERS[m.target].x, PLAYERS[m.target].y).SAFE and not gettile(PLAYERS[m.target].x, PLAYERS[m.target].y).NOMONSTERS then xdist, ydist = player(m.target, 'x') - m.x, player(m.target, 'y') - m.y local dist = math.sqrt(xdist^2 + ydist^2) if dist < 400 then m.ang = math.atan2(ydist, xdist)-math.pi/2+math.random(-1, 1)/2 else m.target = nil end end if not m.target then m:rot(math.random(-1, 1)/2) end if not m:move(m:rot(), m.health > m.runat and 1 or -1) then repeat until m:move(math.rad(math.random(360)), 1) end end end function Monster:new(m) if not (m.x or m.y) then return false end m.image = image(m.image, m.x, m.y, 0) imagescale(m.image, m.scalex, m.scaley) setmetatable(m, self) self.__index = self local n = #MONSTERS+1 MONSTERS[#MONSTERS+1] = m m.id = n return m end function Monster:pos(x, y) if not x and not y then return self.x, self.y else self.x, self.y = x or self.x, y or self.y imagepos(self.image, self.x, self.y, self.imgang) end return true end function Monster:move(dir, amt) local x, y = -math.sin(dir)*amt*self.spd, math.cos(dir)*amt*self.spd local x, y = self.x+x, self.y+y local tilex, tiley = math.floor(x/32), math.floor(y/32) if tile(tilex, tiley, 'walkable') and tile(tilex, tiley, 'frame') ~= 34 and not gettile(tilex, tiley).SAFE and not gettile(tilex, tiley).NOMONSTERS then self:pos(x, y) return true else self:rot(math.random(-1, 1)*math.pi/2) return false end end function Monster:damage(id, dmg, wpntype) if not PLAYERS[id].Tutorial.damagem then message(id, "You have attacked a monster! Good job! Keep on attacking it until it dies.", "255128000") PLAYERS[id].Tutorial.damagem = true end local wpnName if weapon == 251 then wpnName = 'rune' elseif weapon == 46 then wpnName = 'firewave' dmg = dmg/5 else wpnName = PLAYERS[id].Equipment[3] and ITEMS[PLAYERS[id].Equipment[3]].name or 'dagger' end self.health = self.health - dmg --print(player(id, 'name') .. ' deals ' .. dmg .. ' damage to ' .. self.name .. ' usng a ' .. wpnName .. '.') if self.health <= 0 then if not PLAYERS[id].Tutorial.killm then message(id, "Congratulation! You have killed your first monster. You can proceed to pick up the loot by using the drop weapon button (default G)", "255128000") PLAYERS[id].Tutorial.killm = true end addexp(id, math.floor(self.exp*CONFIG.EXPRATE)) self:die() else parse('effect "colorsmoke" ' .. self.x .. ' ' .. self.y .. ' 0 ' .. self.scaley .. ' ' .. (self.r and (self.r .. ' ' .. self.g .. ' ' .. self.b) or '192 0 0')) end radiussound("weapons/machete_hit.wav", self.x, self.y) return true end function Monster:hit(id, dmg) if not PLAYERS[id].Tutorial.hitm then message(id, "A monster is attacking you! You can fight back by swinging your weapon at it.", "255128000") PLAYERS[id].Tutorial.hitm = true end if player(id, 'weapontype') == 41 and (math.abs(math.rad(player(id, 'rot')) - math.atan2(player(id, 'y')-self.y, player(id, 'x')-self.x) + math.pi/2)%(2*math.pi) <= math.pi*2/3) then EXPhit(id, self, -1, dmg/4) radiussound("weapons/ricmetal" .. math.random(1,2) .. ".wav", self.x, self.y) else EXPhit(id, self, -1, dmg) radiussound("weapons/knife_hit.wav", self.x, self.y) end return true end function Monster:die(id) local size = self.scalex+self.scaley parse('effect "colorsmoke" ' .. self.x .. ' ' .. self.y .. ' ' .. size .. ' 64 ' .. (self.r and (self.r .. ' ' .. self.g .. ' ' .. self.b) or '192 0 0')) local tilex, tiley = math.floor(self.x/32), math.floor(self.y/32) spawnitem(1337, tilex, tiley, math.floor(self.money*math.random(50, 150)/100)*CONFIG.MONEYRATE) for _, loot in ipairs(self.loot) do local chance = math.random(10000) if chance <= loot.chance then spawnitem(loot.id, tilex, tiley) end end radiussound("weapons/c4_explode.wav", self.x, self.y) self:destroy() end function Monster:destroy() freeimage(self.image) local found table.remove(MONSTERS, self.id) for i, m in ipairs(MONSTERS) do m.id = i end return true end function Monster:rot(rot) if not rot then return self.ang else self.ang = (self.ang+rot)%(math.pi*2) end return true end~ [code]