Module:Iteminfo/datagen3

-- to gen data slice.

-- 1.4.1

local trim = mw.text.trim -- cache local currentFrame local getArg = function(key) local value = currentFrame.args[key] if not value then return nil end value = trim(value) if value == '' then return nil else return value end end

local ItemIdSets = require('Module:Iteminfo/idSets').getValue

local ProjectileInfo = require('Module:Projectileinfo').getProjectileInfo

local Item = {} do Item.buyPrice = function(platinum, gold, silver, copper) return copper + silver * 100 + gold * 100 * 100 + platinum * 100 * 100 * 100 end Item.sellPrice = function(platinum, gold, silver, copper) return (copper + silver * 100 + gold * 100 * 100 + platinum * 100 * 100 * 100) * 5 end end

local AmmoID = {} do AmmoID.None = 0; AmmoID.Gel = 23; AmmoID.Arrow = 40; AmmoID.Coin = 71; AmmoID.FallenStar = 75; AmmoID.Bullet = 97; AmmoID.Sand = 169; AmmoID.Dart = 283; AmmoID.Rocket = 771; AmmoID.Solution = 780; AmmoID.Flare = 931; AmmoID.Snowball = 949; AmmoID.StyngerBolt = 1261; AmmoID.CandyCorn = 1783; AmmoID.JackOLantern = 1785; AmmoID.Stake = 1836; AmmoID.NailFriendly = 3108; end

local ItemRarityColor = {} do ItemRarityColor.AmberMinus11 = -11 ItemRarityColor.TrashMinus1 = -1 ItemRarityColor.White0 = 0 ItemRarityColor.Blue1 = 1 ItemRarityColor.Green2 = 2 ItemRarityColor.Orange3 = 3 ItemRarityColor.LightRed4 = 4 ItemRarityColor.Pink5 = 5 ItemRarityColor.LightPurple6 = 6 ItemRarityColor.Lime7 = 7 ItemRarityColor.Yellow8 = 8 ItemRarityColor.Cyan9 = 9 ItemRarityColor.StrongRed10 = 10 ItemRarityColor.Purple11 = 11 end

local SoundID = {} for i = 1, 172 do	SoundID['Item'..i] = 'Item_'..i end

local this = {}

local function SetShopValues(rarity, coinValue) this.rare = rarity; this.value = coinValue; end

local function ResetStats(Type) this.shadowOrbPrice = Item.sellPrice(0, 1, 50, 0); this.dungeonPrice = Item.sellPrice(0, 1, 75, 0); this.queenBeePrice = Item.sellPrice(0, 2, 0, 0); this.hellPrice = Item.sellPrice(0, 2, 50, 0); this.eclipsePrice = Item.sellPrice(0, 7, 50, 0); this.eclipsePostPlanteraPrice = Item.sellPrice(0, 10, 0, 0); this.eclipseMothronPrice = Item.sellPrice(0, 12, 50, 0); this.tooltipContext = -1 this.BestiaryNotes = null this.sentry = false this.canBePlacedInVanityRegardlessOfConditions = false this.DD2Summon = false this.shopSpecialCurrency = -1 this.shopCustomPrice = null this.expert = false this.isAShopItem = false this.expertOnly = false this.instanced = false this.questItem = false this.fishingPole = 0 this.bait = 0 this.hairDye = -1 this.makeNPC = 0 this.dye = 0 this.paint = 0 this.tileWand = -1 this.notAmmo = false this.netID = 0 this.prefix = 0 this.crit = 0 this.mech = false this.flame = false this.reuseDelay = 0 this.melee = false this.magic = false this.ranged = false this.summon = false this.placeStyle = 0 this.buffTime = 0 this.buffType = 0 this.mountType = -1 this.cartTrack = false this.material = false this.noWet = false this.vanity = false this.mana = 0 this.wet = false this.wetCount = 0 this.lavaWet = false this.channel = false this.manaIncrease = 0 --this.timeSinceTheItemHasBeenReservedForSomeone = 0 this.noMelee = false this.noUseGraphic = false this.lifeRegen = 0 this.shootSpeed = 0 this.active = true this.alpha = 0 this.ammo = AmmoID.None this.useAmmo = AmmoID.None this.autoReuse = false this.accessory = false this.axe = 0 this.healMana = 0 this.bodySlot = -1 this.legSlot = -1 this.headSlot = -1 this.potion = false -- -- this.color = new_Color this.glowMask = -1 this.consumable = false this.createTile = -1 this.createWall = -1 this.damage = -1 this.defense = 0 this.hammer = 0 this.healLife = 0 this.holdStyle = 0 this.knockBack = 0 this.maxStack = 1 this.pick = 0 this.rare = 0 this.scale = 1 this.shoot = 0 this.stack = 1 --this.ToolTip = null this.tileBoost = 0 this.useStyle = 0 this.UseSound = null this.useTime = 100 this.useAnimation = 100 this.value = 0 this.useTurn = false this.buy = false this.handOnSlot = -1 this.handOffSlot = -1 this.backSlot = -1 this.frontSlot = -1 this.shoeSlot = -1 this.waistSlot = -1 this.wingSlot = -1 this.shieldSlot = -1 this.neckSlot = -1 this.faceSlot = -1 this.balloonSlot = -1 this.uniqueStack = false this.favorited = false this.type = Type end

local function DefaultToQuestFish this.questItem = true this.maxStack = 1 this.width = 26 this.height = 26 this.uniqueStack = true this.rare = -11 end

local function DefaultToSeaShelll this.useStyle = 1 this.autoReuse = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 999 this.consumable = true this.createTile = 324 this.width = 22 this.height = 22 local num = this.type if num == 2626 then this.placeStyle = 1 this.value = Item.sellPrice(0, 0, 10, 0) return end if num == 4071 then this.placeStyle = 4 this.value = Item.sellPrice(0, 1, 0, 0) return elseif num == 4072 then this.placeStyle = 2 this.value = Item.sellPrice(0, 0, 20, 0) return elseif num == 4073 then this.placeStyle = 3 this.value = Item.sellPrice(0, 0, 20, 0) return end this.value = Item.sellPrice(0, 0, 5, 0) end

local function SetDefaults3(type) if type == 2002 then this.useStyle = 1 this.autoReuse = true this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 999 this.consumable = true this.width = 12 this.height = 12 this.makeNPC = 357 this.noUseGraphic = true this.bait = 25 return end if type == 2003 then this.useStyle = 1 this.autoReuse = true this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 999 this.consumable = true this.width = 12 this.height = 12 this.makeNPC = 300 this.noUseGraphic = true return end if type == 2004 then this.useStyle = 1 this.autoReuse = true this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 999 this.consumable = true this.width = 12 this.height = 12 this.makeNPC = 358 this.noUseGraphic = true this.bait = 35 return end if type == 2005 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 271 this.width = 12 this.height = 28 return end if type == 2006 then this.useStyle = 1 this.autoReuse = true this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 999 this.consumable = true this.width = 12 this.height = 12 this.makeNPC = 359 this.noUseGraphic = true this.bait = 10 return end if type == 2007 then this.useStyle = 1 this.autoReuse = true this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 999 this.consumable = true this.width = 12 this.height = 12 this.makeNPC = 360 this.noUseGraphic = true this.bait = 15 return end if type >= 2008 and type <= 2014 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 7 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createWall = 126 + type - 2008 this.width = 12 this.height = 12 this.value = Item.buyPrice(0, 0, 1, 0) return end if type 2019 then if type == 2020 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 101 this.width = 20 this.height = 20 this.value = 300 this.placeStyle = 6 return end if type == 2021 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 101 this.width = 20 this.height = 20 this.value = 300 this.placeStyle = 7 return end if type == 2022 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 101 this.width = 20 this.height = 20 this.value = 300 this.placeStyle = 8 return end if type == 2023 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 101 this.width = 20 this.height = 20 this.value = 300 this.placeStyle = 9 return end if type == 2024 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 101 this.width = 20 this.height = 20 this.value = 300 this.placeStyle = 10 return end if type == 2025 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 101 this.width = 20 this.height = 20 this.value = 300 this.placeStyle = 11 return end if type == 2026 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 101 this.width = 20 this.height = 20 this.value = 300 this.placeStyle = 12 return end if type == 2027 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 101 this.width = 20 this.height = 20 this.value = 300 this.placeStyle = 13 return end if type == 2028 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 101 this.width = 20 this.height = 20 this.value = 300 this.placeStyle = 14 return end if type == 2029 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 101 this.width = 20 this.height = 20 this.value = 300 this.placeStyle = 15 return end if type == 2030 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 101 this.width = 20 this.height = 20 this.value = 300 this.placeStyle = 16 return end if type == 2031 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 101 this.width = 20 this.height = 20 this.value = 300 this.placeStyle = 17 return end if type == 2032 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 42 this.width = 12 this.height = 28 this.placeStyle = 10 this.value = 150 return end if type == 2033 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 42 this.width = 12 this.height = 28 this.placeStyle = 11 this.value = 150 return end if type == 2034 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 42 this.width = 12 this.height = 28 this.placeStyle = 12 this.value = 150 return end if type == 2035 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 42 this.width = 12 this.height = 28 this.placeStyle = 13 this.value = 150 return end if type == 2036 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 42 this.width = 12 this.height = 28 this.placeStyle = 14 this.value = 150 return end if type == 2037 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 42 this.width = 12 this.height = 28 this.placeStyle = 15 this.value = 150 return end if type == 2038 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 42 this.width = 12 this.height = 28 this.placeStyle = 16 this.value = 150 return end if type == 2039 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 42 this.width = 12 this.height = 28 this.placeStyle = 17 this.value = 150 return end if type == 2040 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 42 this.width = 12 this.height = 28 this.placeStyle = 18 this.value = 150 return end if type == 2041 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 42 this.width = 12 this.height = 28 this.placeStyle = 19 this.value = 150 return end if type == 2042 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 42 this.width = 12 this.height = 28 this.placeStyle = 20 this.value = 150 return end if type == 2043 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 42 this.width = 12 this.height = 28 this.placeStyle = 21 this.value = 150 return end if type == 2044 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 99 this.consumable = true this.createTile = 10 this.placeStyle = 27 this.width = 14 this.height = 28 this.value = 200 return end if type >= 2045 and type <= 2054 then this.noWet = true this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 33 this.width = 8 this.height = 18 this.value = Item.sellPrice(0, 0, 0, 60) this.placeStyle = 4 + type - 2045 return end if type >= 2055 and type <= 2065 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 34 this.placeStyle = 7 + type - 2055 this.width = 26 this.height = 26 this.value = 3000 return end if type >= 2066 and type <= 2071 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 99 this.consumable = true this.autoReuse = true this.createTile = 79 this.placeStyle = 13 + type - 2066 this.width = 28 this.height = 20 this.value = 2000 return end if type >= 2072 and type <= 2081 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 90 this.placeStyle = type + 1 - 2072 this.width = 20 this.height = 20 this.value = 300 return end if type >= 2082 and type <= 2091 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 93 this.placeStyle = type + 1 - 2082 this.width = 10 this.height = 24 this.value = 500 return end if type >= 2092 and type <= 2103 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 100 this.placeStyle = type + 1 - 2092 this.width = 20 this.height = 20 this.value = 1500 return end if type >= 2104 and type <= 2113 then this.width = 28 this.height = 20 this.headSlot = type + 146 - 2104 this.rare = 1 this.value = Item.sellPrice(0, 0, 75, 0) this.vanity = true return end if type >= 2114 and type <= 2118 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 240 this.width = 30 this.height = 30 this.value = Item.sellPrice(0, 0, 5, 0) this.placeStyle = 41 + type - 2114 this.maxStack = 99 return end if type == 2119 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 273 this.width = 12 this.height = 12 return end if type == 2120 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 274 this.width = 12 this.height = 12 return end if type == 2121 then this.useStyle = 1 this.autoReuse = true this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 999 this.consumable = true this.width = 12 this.height = 12 this.makeNPC = 361 this.noUseGraphic = true return end if type == 2122 then this.useStyle = 1 this.autoReuse = true this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 999 this.consumable = true this.width = 12 this.height = 12 this.makeNPC = 362 this.noUseGraphic = true return end if type == 2123 then this.useStyle = 1 this.autoReuse = true this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 999 this.consumable = true this.width = 12 this.height = 12 this.makeNPC = 364 this.noUseGraphic = true return end if type >= 2124 and type <= 2128 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 90 this.placeStyle = type + 11 - 2124 this.width = 20 this.height = 20 this.value = 300 return end if type >= 2129 and type <= 2134 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 93 this.placeStyle = type + 11 - 2129 this.width = 10 this.height = 24 this.value = 500 return end if type >= 2135 and type <= 2138 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 101 this.width = 20 this.height = 20 this.value = 300 this.placeStyle = 18 + type - 2135 return end if type == 2139 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 99 this.consumable = true this.autoReuse = true this.createTile = 79 this.placeStyle = 19 this.width = 28 this.height = 20 this.value = 2000 return end if type == 2140 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 99 this.consumable = true this.autoReuse = true this.createTile = 79 this.placeStyle = 20 this.width = 28 this.height = 20 this.value = 2000 return end if type >= 2141 and type <= 2144 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 34 this.placeStyle = 18 + type - 2141 this.width = 26 this.height = 26 this.value = 3000 return end if type >= 2145 and type <= 2148 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 42 this.width = 12 this.height = 28 this.placeStyle = 22 + type - 2145 this.value = 150 return end if type >= 2149 and type <= 2152 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 100 this.placeStyle = type + 13 - 2149 this.width = 20 this.height = 20 this.value = 1500 return end if type >= 2153 and type <= 2155 then this.noWet = true this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 33 this.width = 8 this.height = 18 this.value = Item.sellPrice(0, 0, 0, 60) this.placeStyle = 14 + type - 2153 return end if type == 2156 then this.useStyle = 1 this.autoReuse = true this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 999 this.consumable = true this.width = 12 this.height = 12 this.makeNPC = 366 this.noUseGraphic = true this.bait = 15 return end if type == 2157 then this.useStyle = 1 this.autoReuse = true this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 999 this.consumable = true this.width = 12 this.height = 12 this.makeNPC = 367 this.noUseGraphic = true this.bait = 10 return end if type >= 2158 and type <= 2160 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 7 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createWall = 133 + type - 2158 this.width = 12 this.height = 12 this.value = Item.buyPrice(0, 0, 1, 0) return end if type == 2161 then this.width = 18 this.height = 18 this.maxStack = 999 this.value = 50000 this.rare = 5 return end if type >= 2162 and type <= 2168 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 275 + type - 2162 this.width = 12 this.height = 12 return end if type == 2169 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 7 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createWall = 136 this.width = 12 this.height = 12 return end if type == 2170 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 7 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createWall = 137 this.width = 12 this.height = 12 return end if type == 2171 then this.autoReuse = true this.useTurn = true this.useStyle = 1 this.useAnimation = 15 this.useTime = 10 this.maxStack = 999 this.consumable = true this.createTile = 199 this.width = 14 this.height = 14 this.value = 500 return end if type == 2172 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 283 this.width = 28 this.height = 14 this.value = 500 return end if type == 2173 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 284 this.width = 12 this.height = 12 return end if type >= 2174 and type <= 2175 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 285 + type - 2174 this.width = 12 this.height = 12 return end if type == 2176 then this.useStyle = 1 this.useAnimation = 12 this.useTime = 4 this.knockBack = 6 this.useTurn = true this.autoReuse = true this.width = 20 this.height = 12 this.damage = 45 this.pick = 200 this.axe = 25 this.UseSound = SoundID.Item1 this.rare = 8 this.value = Item.sellPrice(0, 4, 0, 0) this.melee = true this.tileBoost = this.tileBoost - 1 return end if type == 2177 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 287 this.width = 22 this.height = 22 this.value = Item.buyPrice(0, 15, 0, 0) this.rare = 6 return end if type >= 2178 and type <= 2187 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 288 + type - 2178 this.width = 12 this.height = 12 return end if type == 2189 then this.width = 18 this.height = 18 this.defense = 18 this.headSlot = 156 this.rare = 8 this.value = 375000 return end if type == 2188 then this.mana = 25 this.UseSound = SoundID.Item43 this.useStyle = 5 this.damage = 44 this.useAnimation = 30 this.useTime = 30 this.width = 40 this.height = 40 this.shoot = 355 this.shootSpeed = 14 this.knockBack = 7 this.magic = true this.autoReuse = true this.rare = 7 this.noMelee = true this.value = Item.sellPrice(0, 7, 0, 0) return end if type >= 2190 and type <= 2191 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 298 + type - 2190 this.width = 12 this.height = 12 return end if type >= 2192 and type <= 2198 or type == 2203 or type == 2204 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true if type == 2203 then this.createTile = 307 elseif type ~=2204 then this.createTile = 300 + type - 2192 else this.createTile = 308 end this.width = 12 this.height = 12 this.value = Item.buyPrice(0, 10, 0, 0) return end if type == 2199 then this.width = 18 this.height = 18 this.defense = 23 this.headSlot = 157 this.rare = 8 this.value = 300000 return end if type == 2200 then this.width = 18 this.height = 18 this.defense = 20 this.bodySlot = 105 this.rare = 8 this.value = 240000 return end if type == 2201 then this.width = 18 this.height = 18 this.defense = 32 this.bodySlot = 106 this.rare = 8 this.value = 240000 return end if type == 2202 then this.width = 18 this.height = 18 this.defense = 18 this.legSlot = 98 this.rare = 8 this.value = 180000 return end if type == 2205 then this.useStyle = 1 this.autoReuse = true this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 999 this.consumable = true this.width = 12 this.height = 12 this.makeNPC = 148 this.noUseGraphic = true return end if type == 2206 or type == 2207 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 309 + type - 2206 this.width = 12 this.height = 12 return end if type == 2208 then this.width = 18 this.height = 20 this.maxStack = 99 return end if type == 2209 then this.UseSound = SoundID.Item3 this.healMana = 300 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.maxStack = 99 this.consumable = true this.width = 14 this.height = 24 this.rare = 4 this.value = 1500 return end if type >= 2210 and type <= 2213 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 7 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createWall = 138 + type - 2210 this.width = 12 this.height = 12 return end if type >= 2214 and type <= 2217 then this.width = 30 this.height = 30 this.accessory = true this.rare = 3 this.value = Item.buyPrice(0, 10, 0, 0) return end if type == 2218 then this.width = 14 this.height = 18 this.maxStack = 99 this.rare = 8 this.value = Item.sellPrice(0, 0, 50, 0) return end if type == 2219 then this.width = 24 this.height = 24 this.accessory = true this.value = Item.buyPrice(0, 15, 0, 0) this.rare = 4 return end if type == 2220 then this.width = 24 this.height = 24 this.accessory = true this.value = Item.buyPrice(0, 16, 0, 0) this.rare = 5 return end if type == 2221 then this.width = 24 this.height = 24 this.accessory = true this.rare = 5 this.value = Item.buyPrice(0, 16, 0, 0) this.handOffSlot = 10 this.handOnSlot = 17 return end if type == 2222 then this.width = 18 this.height = 18 this.headSlot = 158 this.vanity = true this.value = Item.sellPrice(0, 0, 25, 0) return end if type == 2223 then this.autoReuse = true this.useStyle = 5 this.useAnimation = 20 this.useTime = 20 this.width = 50 this.height = 18 this.shoot = 10 this.useAmmo = AmmoID.Arrow this.UseSound = SoundID.Item75 this.crit = 7 this.damage = 85 this.knockBack = 3 this.shootSpeed = 7.75 this.noMelee = true this.value = Item.buyPrice(0, 45, 0, 0) this.rare = 8 this.ranged = true return end if type == 2224 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 34 this.placeStyle = 22 this.width = 26 this.height = 26 this.value = 160 return end if type == 2225 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 93 this.placeStyle = 17 this.width = 10 this.height = 24 this.value = 120 return end if type == 2226 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 42 this.width = 12 this.height = 28 this.placeStyle = 26 this.value = 200 return end if type == 2227 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 100 this.placeStyle = 17 this.width = 20 this.height = 20 this.value = 120 return end if type == 2228 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 15 this.placeStyle = 27 this.width = 12 this.height = 30 this.value = 150 return end if type == 2229 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 18 this.placeStyle = 18 this.width = 28 this.height = 14 this.value = 150 return end if type == 2230 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 21 this.placeStyle = 28 this.width = 26 this.height = 22 this.value = 320 return end if type == 2231 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 99 this.consumable = true this.autoReuse = true this.createTile = 79 this.placeStyle = 21 this.width = 28 this.height = 20 this.value = 600 return end if type == 2232 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 90 this.placeStyle = 16 this.width = 20 this.height = 20 this.value = 300 return end if type == 2233 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 101 this.width = 20 this.height = 20 this.value = 300 this.placeStyle = 22 return end if type == 2234 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 13 this.placeStyle = 5 this.width = 16 this.height = 24 this.value = 20 return end if type == 2235 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 103 this.placeStyle = 1 this.width = 16 this.height = 24 this.value = 20 return end if type == 2236 then this.noWet = true this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 33 this.width = 8 this.height = 18 this.value = Item.sellPrice(0, 0, 0, 60) this.placeStyle = 17 return end if type >= 2237 and type <= 2241 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 104 this.placeStyle = 1 + type - 2237 this.width = 20 this.height = 20 this.value = 300 return end if type == 2242 or type == 2243 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 103 this.placeStyle = 2 + type - 2242 this.width = 16 this.height = 24 this.value = 20 if type == 2242 then this.value = Item.buyPrice(0, 0, 20, 0) return end else if type == 2244 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 13 this.placeStyle = 6 this.width = 16 this.height = 24 this.value = 20 return end if type >= 2245 and type <= 2247 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 87 this.placeStyle = 5 + type - 2245 this.width = 20 this.height = 20 this.value = 300 return end if type == 2248 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 14 this.placeStyle = 24 this.width = 26 this.height = 20 this.value = 300 return end if type == 2249 or type == 2250 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 21 this.placeStyle = 29 + type - 2249 this.width = 26 this.height = 22 this.value = 2500 return end if type >= 2251 and type <= 2253 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 18 this.placeStyle = 19 + type - 2251 this.width = 28 this.height = 14 this.value = 150 return end if type >= 2254 and type <= 2256 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 87 this.placeStyle = 8 + type - 2254 this.width = 20 this.height = 20 this.value = 300 return end if type == 2257 or type == 2258 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 13 this.placeStyle = 7 + type - 2257 this.width = 16 this.height = 24 this.value = 20 if type == 2258 then this.value = Item.buyPrice(0, 0, 50, 0) return end else if type == 2259 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 14 this.placeStyle = 25 this.width = 26 this.height = 20 this.value = 300 return end if type >= 2260 and type <= 2262 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 311 + type - 2260 this.width = 12 this.height = 12 this.value = Item.buyPrice(0, 0, 0, 50) return end if type >= 2263 and type <= 2264 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 7 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createWall = 142 + type - 2263 this.width = 12 this.height = 12 return end if type == 2265 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 99 this.consumable = true this.createTile = 10 this.placeStyle = 28 this.width = 14 this.height = 28 this.value = 200 return end if type == 2266 then this.UseSound = SoundID.Item3 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.maxStack = 30 this.consumable = true this.width = 10 this.height = 10 this.buffType = 25 this.buffTime = 14400 this.rare = 1 this.value = Item.buyPrice(0, 0, 5, 0) return end if type == 2269 then this.autoReuse = false this.useStyle = 5 this.useAnimation = 22 this.useTime = 22 this.width = 24 this.height = 24 this.shoot = 14 this.knockBack = 4 this.useAmmo = AmmoID.Bullet this.UseSound = SoundID.Item41 this.damage = 20 this.shootSpeed = 16 this.noMelee = true this.value = Item.buyPrice(0, 10, 0, 0) this.scale = 0.85 this.rare = 2 this.ranged = true this.crit = 5 return end if type == 2270 then this.useStyle = 5 this.autoReuse = true this.useAnimation = 7 this.useTime = 7 this.width = 50 this.height = 18 this.shoot = 10 this.useAmmo = AmmoID.Bullet this.UseSound = SoundID.Item41 this.damage = 21 this.shootSpeed = 8 this.noMelee = true this.value = Item.buyPrice(0, 35, 0, 0) this.knockBack = 1.5 this.rare = 4 this.ranged = true return end if type == 2271 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 7 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createWall = 144 this.width = 12 this.height = 12 this.value = Item.buyPrice(0, 0, 2, 50) return end if type == 2272 then this.useStyle = 5 this.useAnimation = 20 this.useTime = 20 this.width = 38 this.height = 10 this.damage = 0 this.scale = 0.9 this.shoot = 358 this.shootSpeed = 11 this.value = Item.buyPrice(0, 1, 50, 0) return end if type == 2273 then this.autoReuse = true this.useTurn = true this.useStyle = 1 this.useAnimation = 22 this.knockBack = 3.5 this.width = 34 this.height = 34 this.damage = 16 this.crit = 15 this.scale = 1 this.UseSound = SoundID.Item1 this.rare = 1 this.value = Item.buyPrice(0, 10, 0, 0) this.melee = true return end if type == 2274 then this.flame = true this.noWet = true this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.holdStyle = 1 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 4 this.placeStyle = 12 this.width = 10 this.height = 12 this.value = Item.buyPrice(0, 0, 3, 0) return end if type == 2275 then this.width = 18 this.height = 18 this.headSlot = 159 this.value = Item.buyPrice(0, 3, 0, 0) this.defense = 2 this.rare = 2 return end if type == 2276 then this.width = 24 this.height = 24 this.accessory = true this.vanity = true this.rare = 8 this.value = Item.buyPrice(2, 0, 0, 0) this.handOnSlot = 16 return end if type == 2277 then this.width = 18 this.height = 14 this.bodySlot = 165 this.value = Item.buyPrice(0, 2, 0, 0) this.defense = 4 this.rare = 1 return end if type == 2278 then this.width = 18 this.height = 14 this.bodySlot = 166 this.vanity = true this.value = Item.buyPrice(0, 1, 0, 0) return end if type == 2279 then this.width = 18 this.height = 14 this.bodySlot = 167 this.value = Item.buyPrice(0, 3, 50, 0) this.defense = 2 this.rare = 1 return end if type == 2280 then this.width = 22 this.height = 20 this.accessory = true this.value = 400000 this.rare = 7 this.wingSlot = 24 return end if type >= 2281 and type <= 2283 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 242 this.width = 30 this.height = 30 this.value = Item.buyPrice(0, 1, 0, 0) this.placeStyle = 22 + type - 2281 return end if type >= 2284 and type <= 2287 then this.width = 26 this.height = 30 this.maxStack = 1 this.value = Item.buyPrice(0, 5, 0, 0) this.rare = 5 this.accessory = true this.backSlot = (3 + type - 2284) this.frontSlot = (1 + type - 2284) this.vanity = true return end if type == 2288 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 15 this.placeStyle = 28 this.width = 12 this.height = 30 this.value = 150 return end if type == 2289 or type >= 2291 and type <= 2296 then this.useStyle = 1 this.useAnimation = 8 this.useTime = 8 this.width = 24 this.height = 28 this.UseSound = SoundID.Item1 this.shoot = 361 + type - 2291 if type == 2289 then this.fishingPole = 5 this.shootSpeed = 9 this.shoot = 360 this.value = Item.sellPrice(0, 0, 0, 60) return end if type == 2291 then this.fishingPole = 15 this.shootSpeed = 11 this.value = Item.sellPrice(0, 0, 24, 0) return end if type == 2293 then this.fishingPole = 20 this.shootSpeed = 13 this.rare = 1 this.value = Item.sellPrice(0, 2, 40, 0) return end if type == 2292 then this.fishingPole = 30 this.shootSpeed = 14 this.rare = 2 this.value = Item.sellPrice(0, 1, 0, 0) return end if type == 2295 then this.fishingPole = 35 this.shootSpeed = 15 this.rare = 2 this.value = Item.buyPrice(0, 20, 0, 0) return end if type == 2296 then this.fishingPole = 40 this.shootSpeed = 16 this.rare = 2 this.value = Item.buyPrice(0, 35, 0, 0) return end if type == 2294 then this.fishingPole = 50 this.shootSpeed = 17 this.rare = 3 this.value = Item.sellPrice(0, 20, 0, 0) return end else if type >= 2421 and type <= 2422 then this.useStyle = 1 this.useAnimation = 8 this.useTime = 8 this.width = 24 this.height = 28 this.UseSound = SoundID.Item1 this.shoot = 381 + type - 2421 if type == 2421 then this.fishingPole = 22 this.shootSpeed = 13.5 this.rare = 1 this.value = Item.sellPrice(0, 3, 12, 0) return end this.fishingPole = 45 this.shootSpeed = 16.5 this.rare = 3 this.value = Item.sellPrice(0, 10, 0, 0) return end if type == 2320 then this.autoReuse = true this.width = 26 this.height = 26 this.value = Item.sellPrice(0, 1, 50, 0) this.useStyle = 1 this.useAnimation = 24 this.useTime = 14 this.hammer = 70 this.knockBack = 6 this.damage = 24 this.scale = 1.05 this.UseSound = SoundID.Item1 this.rare = 3 this.melee = true return end if type == 2314 then this.maxStack = 30 this.width = 26 this.height = 26 this.value = Item.sellPrice(0, 0, 15, 0) this.rare = 1 this.UseSound = SoundID.Item3 this.healLife = 120 this.useStyle = 2 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.consumable = true this.potion = true return end if type 2321 then if type == 2322 then this.UseSound = SoundID.Item3 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.maxStack = 30 this.consumable = true this.width = 14 this.height = 24 this.buffType = 104 this.buffTime = 36000 this.value = 1000 this.rare = 1 return end if type == 2323 then this.UseSound = SoundID.Item3 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.maxStack = 30 this.consumable = true this.width = 14 this.height = 24 this.buffType = 105 this.buffTime = 28800 this.value = 1000 this.rare = 1 return end if type == 2324 then this.UseSound = SoundID.Item3 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.maxStack = 30 this.consumable = true this.width = 14 this.height = 24 this.buffType = 106 this.buffTime = 28800 this.value = 1000 this.rare = 1 return end if type == 2325 then this.UseSound = SoundID.Item3 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.maxStack = 30 this.consumable = true this.width = 14 this.height = 24 this.buffType = 107 this.buffTime = 162000 this.value = 1000 this.rare = 1 return end if type == 2326 then this.UseSound = SoundID.Item3 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.maxStack = 30 this.consumable = true this.width = 14 this.height = 24 this.buffType = 108 this.buffTime = 28800 this.value = 1000 this.rare = 1 return end if type == 2327 then this.UseSound = SoundID.Item3 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.maxStack = 30 this.consumable = true this.width = 14 this.height = 24 this.buffType = 109 this.buffTime = 28800 this.value = 1000 this.rare = 1 return end if type == 2328 then this.UseSound = SoundID.Item3 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.maxStack = 30 this.consumable = true this.width = 14 this.height = 24 this.buffType = 110 this.buffTime = 28800 this.value = 1000 this.rare = 1 return end if type == 2329 then this.UseSound = SoundID.Item3 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.maxStack = 30 this.consumable = true this.width = 14 this.height = 24 this.buffType = 111 this.buffTime = 36000 this.value = 1000 this.rare = 1 return end if type == 2330 then this.autoReuse = true this.useStyle = 1 this.useAnimation = 35 this.width = 24 this.height = 28 this.damage = 24 this.knockBack = 7 this.scale = 1.15 this.UseSound = SoundID.Item1 this.rare = 1 this.value = Item.sellPrice(0, 1, 0, 0) this.melee = true return end if type == 2331 then this.useStyle = 5 this.useAnimation = 20 this.useTime = 20 this.shootSpeed = 4 this.knockBack = 6.5 this.width = 40 this.height = 40 this.damage = 70 this.crit = 20 this.UseSound = SoundID.Item1 this.shoot = 367 this.rare = 7 this.value = Item.sellPrice(0, 1, 0, 0) this.noMelee = true this.noUseGraphic = true this.melee = true return end if type == 2332 then this.useStyle = 5 this.useAnimation = 20 this.useTime = 20 this.shootSpeed = 4 this.knockBack = 4.25 this.width = 40 this.height = 40 this.damage = 19 this.UseSound = SoundID.Item1 this.shoot = 368 this.rare = 2 this.value = Item.sellPrice(0, 0, 50, 0) this.noMelee = true this.noUseGraphic = true this.melee = true return end if type == 2333 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 7 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createWall = 145 this.width = 12 this.height = 12 return end if type == 2334 then this.width = 12 this.height = 12 this.rare = 1 this.maxStack = 99 this.value = Item.sellPrice(0, 0, 10, 0) this.createTile = 376 this.placeStyle = 0 this.useAnimation = 15 this.useTime = 15 this.autoReuse = true this.useStyle = 1 this.consumable = true return end if type == 2335 then this.width = 12 this.height = 12 this.rare = 2 this.maxStack = 99 this.value = Item.sellPrice(0, 0, 50, 0) this.createTile = 376 this.placeStyle = 1 this.useAnimation = 15 this.useTime = 15 this.autoReuse = true this.useStyle = 1 this.consumable = true return end if type == 2336 then this.width = 12 this.height = 12 this.rare = 3 this.maxStack = 99 this.value = Item.sellPrice(0, 2, 0, 0) this.createTile = 376 this.placeStyle = 2 this.useAnimation = 15 this.useTime = 15 this.autoReuse = true this.useStyle = 1 this.consumable = true return end if type >= 2337 and type <= 2339 then this.width = 12 this.height = 12 this.rare = -1 this.maxStack = 99 return end if type == 2340 then this.useStyle = 1 this.useAnimation = 15 this.useTime = 7 this.useTurn = true this.autoReuse = true this.width = 16 this.height = 16 this.maxStack = 999 this.createTile = 314 this.placeStyle = 0 this.consumable = true this.cartTrack = true this.tileBoost = 5 return end if type == 2341 then this.useStyle = 1 this.useTurn = true this.useAnimation = 22 this.useTime = 13 this.autoReuse = true this.width = 24 this.height = 28 this.damage = 16 this.pick = 59 this.scale = 1.15 this.UseSound = SoundID.Item1 this.knockBack = 3 this.rare = 3 this.value = Item.sellPrice(0, 1, 50, 0) this.melee = true return end if type == 2342 then this.useStyle = 5 this.useAnimation = 25 this.useTime = 8 this.shootSpeed = 48 this.knockBack = 2.25 this.width = 20 this.height = 12 this.damage = 13 this.axe = 14 this.UseSound = SoundID.Item23 this.shoot = 369 this.rare = 3 this.value = Item.sellPrice(0, 1, 50, 0) this.noMelee = true this.noUseGraphic = true this.melee = true this.channel = true return end if type == 2343 then this.width = 48 this.height = 28 this.mountType = 6 this.rare = 1 this.value = Item.sellPrice(0, 0, 2, 0) return end if type == 2344 then this.UseSound = SoundID.Item3 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.maxStack = 30 this.consumable = true this.width = 14 this.height = 24 this.buffType = 112 this.buffTime = 28800 this.value = 1000 this.rare = 1 return end if type == 2345 then this.UseSound = SoundID.Item3 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.maxStack = 30 this.consumable = true this.width = 14 this.height = 24 this.buffType = 113 this.buffTime = 28800 this.value = 1000 this.rare = 1 return end if type == 2346 then this.UseSound = SoundID.Item3 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.maxStack = 30 this.consumable = true this.width = 14 this.height = 24 this.buffType = 114 this.buffTime = 14400 this.value = 1000 this.rare = 1 return end if type == 2347 then this.UseSound = SoundID.Item3 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.maxStack = 30 this.consumable = true this.width = 14 this.height = 24 this.buffType = 115 this.buffTime = 14400 this.value = 1000 this.rare = 1 return end if type == 2348 then this.UseSound = SoundID.Item3 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.maxStack = 30 this.consumable = true this.width = 14 this.height = 24 this.buffType = 116 this.buffTime = 14400 this.value = 1000 this.rare = 1 return end if type == 2349 then this.UseSound = SoundID.Item3 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.maxStack = 30 this.consumable = true this.width = 14 this.height = 24 this.buffType = 117 this.buffTime = 14400 this.value = 1000 this.rare = 1 return end if type == 2350 then this.UseSound = SoundID.Item6 this.useStyle = 6 this.useTurn = true local num = 30 local num1 = num this.useAnimation = num this.useTime = num1 this.maxStack = 30 this.consumable = true this.width = 14 this.height = 24 this.value = 1000 this.rare = 1 return end if type == 2351 then this.UseSound = SoundID.Item6 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.maxStack = 30 this.consumable = true this.width = 14 this.height = 24 this.value = 1000 this.rare = 1 return end if type == 2352 then this.useStyle = 1 this.shootSpeed = 9 this.shoot = 370 this.width = 18 this.height = 20 this.maxStack = 99 this.consumable = true this.UseSound = SoundID.Item1 this.useAnimation = 15 this.useTime = 15 this.noUseGraphic = true this.noMelee = true this.value = 200 return end if type == 2353 then this.useStyle = 1 this.shootSpeed = 9 this.shoot = 371 this.width = 18 this.height = 20 this.maxStack = 99 this.consumable = true this.UseSound = SoundID.Item1 this.useAnimation = 15 this.useTime = 15 this.noUseGraphic = true this.noMelee = true this.value = 200 return end if type == 2354 then this.UseSound = SoundID.Item3 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.maxStack = 30 this.consumable = true this.width = 14 this.height = 24 this.buffType = 121 this.buffTime = 28800 this.rare = 1 this.value = 1000 return end if type == 2355 then this.UseSound = SoundID.Item3 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.maxStack = 30 this.consumable = true this.width = 14 this.height = 24 this.buffType = 122 this.buffTime = 28800 this.value = 1000 this.rare = 1 return end if type == 2356 then this.UseSound = SoundID.Item3 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.maxStack = 30 this.consumable = true this.width = 14 this.height = 24 this.buffType = 123 this.buffTime = 10800 this.value = 1000 this.rare = 1 return end if type == 2357 then this.autoReuse = true this.useTurn = true this.useStyle = 1 this.useAnimation = 15 this.useTime = 10 this.maxStack = 999 this.consumable = true this.createTile = 82 this.placeStyle = 6 this.width = 12 this.height = 14 this.value = 80 return end if type == 2358 then this.maxStack = 999 this.width = 12 this.height = 14 this.value = 100 return end if type == 2359 then this.UseSound = SoundID.Item3 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.maxStack = 30 this.consumable = true this.width = 14 this.height = 24 this.buffType = 124 this.buffTime = 54000 this.value = 1000 this.rare = 1 return end if type == 2360 then this.noUseGraphic = true this.damage = 0 this.useStyle = 5 this.shootSpeed = 13 this.shoot = 372 this.width = 18 this.height = 28 this.UseSound = SoundID.Item1 this.useAnimation = 20 this.useTime = 20 this.rare = 3 this.noMelee = true this.value = 20000 return end if type == 2361 then this.width = 18 this.height = 18 this.defense = 4 this.headSlot = 160 this.rare = 3 this.value = 45000 return end if type == 2362 then this.width = 18 this.height = 18 this.defense = 5 this.bodySlot = 168 this.rare = 3 this.value = 30000 return end if type == 2363 then this.width = 18 this.height = 18 this.defense = 4 this.legSlot = 103 this.rare = 3 this.value = 30000 return end if type == 2364 then this.mana = 10 this.damage = 11 this.useStyle = 1 this.shootSpeed = 10 this.shoot = 373 this.width = 26 this.height = 28 this.UseSound = SoundID.Item76 this.useAnimation = 22 this.useTime = 22 this.rare = 3 this.noMelee = true this.knockBack = 2 this.buffType = 125 this.value = 10000 this.summon = true return end if type == 2365 then this.mana = 10 this.damage = 17 this.useStyle = 1 this.shootSpeed = 10 this.shoot = 375 this.width = 26 this.height = 28 this.UseSound = SoundID.Item77 this.useAnimation = 36 this.useTime = 36 this.rare = 3 this.noMelee = true this.knockBack = 2 this.buffType = 126 this.value = 10000 this.summon = true return end if type == 2366 then this.mana = 10 this.damage = 26 this.useStyle = 1 this.shootSpeed = 14 this.shoot = 377 this.width = 18 this.height = 20 this.UseSound = SoundID.Item78 this.useAnimation = 30 this.useTime = 30 this.noMelee = true this.value = Item.sellPrice(0, 5, 0, 0) this.knockBack = 7.5 this.rare = 4 this.summon = true this.sentry = true return end if type == 2367 then this.width = 18 this.height = 18 this.defense = 1 this.headSlot = 161 this.rare = 1 this.value = Item.sellPrice(0, 1, 0, 0) return end if type == 2368 then this.width = 18 this.height = 18 this.bodySlot = 169 this.defense = 2 this.rare = 1 this.value = Item.sellPrice(0, 1, 0, 0) return end if type == 2369 then this.width = 18 this.height = 18 this.legSlot = 104 this.defense = 1 this.rare = 1 this.value = Item.sellPrice(0, 1, 0, 0) return end if type == 2370 then this.width = 18 this.height = 18 this.headSlot = 162 this.rare = 4 this.value = Item.sellPrice(0, 0, 75, 0) this.defense = 5 return end if type == 2371 then this.width = 18 this.height = 18 this.bodySlot = 170 this.rare = 4 this.value = Item.sellPrice(0, 0, 75, 0) this.defense = 8 return end if type == 2372 then this.width = 18 this.height = 18 this.legSlot = 105 this.rare = 4 this.value = Item.sellPrice(0, 0, 75, 0) this.defense = 7 return end if type >= 2373 and type <= 2375 then this.width = 26 this.height = 30 this.maxStack = 1 this.value = Item.sellPrice(0, 1, 0, 0) this.rare = 1 this.accessory = true return end if type >= 2376 and type <= 2385 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 87 this.placeStyle = 11 + type - 2376 this.width = 20 this.height = 20 this.value = 300 if type == 2379 then this.value = Item.buyPrice(0, 10, 0, 0) return end elseif type 2396 then if type >= 2397 and type <= 2416 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 89 this.placeStyle = 1 + type - 2397 this.width = 20 this.height = 20 this.value = 300 return end if type == 2417 then this.width = 18 this.height = 18 this.headSlot = 163 this.vanity = true this.value = Item.sellPrice(0, 1, 0, 0) return end if type == 2418 then this.width = 18 this.height = 18 this.bodySlot = 171 this.vanity = true this.value = Item.sellPrice(0, 1, 0, 0) return end if type == 2419 then this.width = 18 this.height = 18 this.legSlot = 106 this.vanity = true this.value = Item.sellPrice(0, 1, 0, 0) return end if type == 2420 then this.damage = 0 this.useStyle = 1 this.shoot = 380 this.width = 16 this.height = 30 this.UseSound = SoundID.Item2 this.useAnimation = 20 this.useTime = 20 this.rare = 3 this.noMelee = true this.value = Item.sellPrice(0, 3, 0, 0) this.buffType = 127 return end if type == 2423 then this.width = 16 this.height = 24 this.accessory = true this.rare = 1 this.value = 50000 this.shoeSlot = 15 return end if type == 2424 then this.noMelee = true this.useStyle = 1 this.shootSpeed = 20 this.shoot = 383 this.damage = 70 this.knockBack = 8 this.width = 34 this.height = 34 this.UseSound = SoundID.Item1 this.useAnimation = 20 this.useTime = 20 this.noUseGraphic = true this.rare = 3 this.value = 50000 this.melee = true return end if type == 2428 then this.useStyle = 1 this.width = 16 this.height = 30 this.UseSound = SoundID.Item79 this.useAnimation = 20 this.useTime = 20 this.rare = 8 this.noMelee = true this.mountType = 1 this.value = Item.sellPrice(0, 5, 0, 0) return end if type == 2429 then this.useStyle = 1 this.width = 16 this.height = 30 this.UseSound = SoundID.Item80 this.useAnimation = 20 this.useTime = 20 this.rare = 8 this.noMelee = true this.mountType = 2 this.value = Item.sellPrice(0, 5, 0, 0) return end if type == 2430 then this.useStyle = 1 this.width = 16 this.height = 30 this.UseSound = SoundID.Item81 this.useAnimation = 20 this.useTime = 20 this.rare = 8 this.noMelee = true this.mountType = 3 this.value = Item.sellPrice(0, 5, 0, 0) return end if type == 2431 then this.width = 18 this.height = 16 this.maxStack = 99 this.value = 100 return end if type 2434 then if type == 2435 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 315 this.width = 12 this.height = 12 this.value = Item.buyPrice(0, 0, 0, 50) return end if type >= 2436 and type <= 2438 then this.useStyle = 1 this.autoReuse = true this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 999 this.consumable = true this.width = 12 this.height = 12 this.noUseGraphic = true this.bait = 20 this.value = Item.sellPrice(0, 3, 50, 0) return end if type >= 2439 and type <= 2441 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 316 + type - 2439 this.width = 12 this.height = 12 return end if type >= 2442 and type <= 2449 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 240 this.width = 30 this.height = 30 this.value = Item.sellPrice(0, 0, 50, 0) this.placeStyle = 46 + type - 2442 return end if type >= 2450 and type <= 2488 then DefaultToQuestFish return end if type == 2489 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 240 this.width = 30 this.height = 30 this.value = Item.sellPrice(0, 1, 0, 0) this.placeStyle = 54 this.rare = 1 return end if type == 2490 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 319 this.width = 12 this.height = 12 this.value = Item.sellPrice(0, 3, 0, 0) return end if type == 2491 then this.useStyle = 1 this.width = 16 this.height = 30 this.UseSound = SoundID.Item25 this.useAnimation = 20 this.useTime = 20 this.rare = 8 this.noMelee = true this.mountType = 4 this.value = Item.sellPrice(0, 5, 0, 0) return end if type == 2492 then this.useStyle = 1 this.useAnimation = 15 this.useTime = 7 this.useTurn = true this.autoReuse = true this.width = 16 this.height = 16 this.maxStack = 99 this.createTile = 314 this.placeStyle = 1 this.consumable = true this.cartTrack = true this.mech = true this.tileBoost = 2 this.value = Item.sellPrice(0, 0, 10, 0) return end if type == 2493 then this.width = 28 this.height = 20 this.headSlot = 164 this.rare = 1 this.value = Item.sellPrice(0, 0, 75, 0) this.vanity = true return end if type == 2494 then this.width = 22 this.height = 20 this.accessory = true this.value = Item.buyPrice(0, 40, 0, 0) this.rare = 4 this.wingSlot = 25 return end if type == 2495 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 242 this.width = 30 this.height = 30 this.value = Item.sellPrice(0, 1, 0, 0) this.placeStyle = 25 return end if type == 2496 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 320 this.placeStyle = 0 this.width = 22 this.height = 30 this.value = Item.sellPrice(0, 1, 0, 0) return end if type == 2497 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 242 this.width = 30 this.height = 30 this.value = Item.sellPrice(0, 0, 50, 0) this.placeStyle = 26 return end if type == 2498 then this.width = 18 this.height = 18 this.headSlot = 165 this.vanity = true this.value = Item.sellPrice(0, 1, 0, 0) return end if type == 2499 then this.width = 18 this.height = 18 this.bodySlot = 172 this.vanity = true this.value = Item.sellPrice(0, 1, 0, 0) return end if type == 2500 then this.width = 18 this.height = 18 this.legSlot = 107 this.vanity = true this.value = Item.sellPrice(0, 1, 0, 0) return end if type == 2501 then this.width = 18 this.height = 12 this.maxStack = 1 this.value = Item.sellPrice(0, 1, 0, 0) this.rare = 5 this.accessory = true this.vanity = true this.canBePlacedInVanityRegardlessOfConditions = true return end if type == 2502 then this.useStyle = 1 this.width = 16 this.height = 30 this.UseSound = SoundID.Item25 this.useAnimation = 20 this.useTime = 20 this.rare = 8 this.noMelee = true this.mountType = 5 this.value = Item.sellPrice(0, 5, 0, 0) return end if type == 2503 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 321 this.width = 8 this.height = 10 return end if type == 2504 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 322 this.width = 8 this.height = 10 return end if type == 2505 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 7 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createWall = 149 this.width = 12 this.height = 12 return end if type == 2506 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 7 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createWall = 151 this.width = 12 this.height = 12 return end if type == 2507 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 7 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createWall = 150 this.width = 12 this.height = 12 return end if type == 2508 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 7 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createWall = 152 this.width = 12 this.height = 12 return end if type == 2509 then this.width = 18 this.height = 18 this.defense = 1 this.headSlot = 166 return end if type == 2510 then this.width = 18 this.height = 18 this.defense = 1 this.bodySlot = 173 return end if type == 2511 then this.width = 18 this.height = 18 this.defense = 1 this.legSlot = 108 return end if type == 2512 then this.width = 18 this.height = 18 this.defense = 1 this.headSlot = 167 return end if type == 2513 then this.width = 18 this.height = 18 this.defense = 1 this.bodySlot = 174 return end if type == 2514 then this.width = 18 this.height = 18 this.defense = 1 this.legSlot = 109 return end if type == 2517 then this.useStyle = 1 this.useTurn = false this.useAnimation = 23 this.useTime = 23 this.width = 24 this.height = 28 this.damage = 8 this.knockBack = 5 this.UseSound = SoundID.Item1 this.scale = 1 this.value = 100 this.melee = true return end if type == 2516 then this.autoReuse = true this.useStyle = 1 this.useTurn = true this.useAnimation = 33 this.useTime = 23 this.hammer = 35 this.width = 24 this.height = 28 this.damage = 4 this.knockBack = 5.5 this.scale = 1.1 this.UseSound = SoundID.Item1 this.value = 50 this.melee = true return end if type == 2515 then this.useStyle = 5 this.useAnimation = 29 this.useTime = 29 this.width = 12 this.height = 28 this.shoot = 1 this.useAmmo = AmmoID.Arrow this.UseSound = SoundID.Item5 this.damage = 6 this.shootSpeed = 6.6 this.noMelee = true this.value = 100 this.ranged = true return end if type == 2518 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 19 this.placeStyle = 17 this.width = 8 this.height = 10 return end if type == 2519 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 90 this.placeStyle = 17 this.width = 20 this.height = 20 this.value = 300 return end if type == 2520 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 99 this.consumable = true this.autoReuse = true this.createTile = 79 this.placeStyle = 22 this.width = 28 this.height = 20 this.value = 2000 return end if type == 2521 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 89 this.placeStyle = 21 this.width = 20 this.height = 20 this.value = 300 return end if type == 2527 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 89 this.placeStyle = 22 this.width = 20 this.height = 20 this.value = 300 return end if type == 2522 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 100 this.placeStyle = 18 this.width = 20 this.height = 20 this.value = 1500 return end if type == 2523 then this.noWet = true this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 33 this.placeStyle = 18 this.width = 8 this.value = Item.sellPrice(0, 0, 0, 60) this.height = 18 return end if type == 2524 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 15 this.placeStyle = 29 this.width = 12 this.height = 30 this.value = 150 return end if type == 2525 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 34 this.placeStyle = 23 this.width = 26 this.height = 26 this.value = 3000 return end if type == 2526 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 21 this.placeStyle = 31 this.width = 26 this.height = 22 this.value = 500 return end if type == 2528 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 99 this.consumable = true this.createTile = 10 this.placeStyle = 29 this.width = 14 this.height = 28 this.value = 200 return end if type == 2529 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 88 this.placeStyle = 16 this.width = 20 this.height = 20 this.value = 300 return end if type == 2530 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 42 this.width = 12 this.height = 28 this.placeStyle = 27 this.value = 150 return end if type == 2531 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 87 this.placeStyle = 21 this.width = 20 this.height = 20 this.value = 300 return end if type == 2535 then this.mana = 10 this.damage = 30 this.useStyle = 1 this.shootSpeed = 10 this.shoot = 387 this.width = 26 this.height = 28 this.UseSound = SoundID.Item82 this.useAnimation = 36 this.useTime = 36 this.rare = 5 this.noMelee = true this.knockBack = 2 this.buffType = 134 this.value = Item.buyPrice(0, 10, 0, 0) this.summon = true return end if type == 2532 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 14 this.placeStyle = 26 this.width = 26 this.height = 20 this.value = 300 return end if type == 2533 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 93 this.placeStyle = 18 this.width = 10 this.height = 24 this.value = 500 return end if type == 2534 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 18 this.placeStyle = 22 this.width = 28 this.height = 14 this.value = 150 return end if type == 2536 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 101 this.width = 20 this.height = 20 this.value = 300 this.placeStyle = 23 return end if type == 2549 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 19 this.placeStyle = 18 this.width = 8 this.height = 10 return end if type == 2537 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 90 this.placeStyle = 18 this.width = 20 this.height = 20 this.value = 300 return end if type == 2538 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 99 this.consumable = true this.autoReuse = true this.createTile = 79 this.placeStyle = 23 this.width = 28 this.height = 20 this.value = 2000 return end if type == 2539 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 89 this.placeStyle = 23 this.width = 20 this.height = 20 this.value = 300 return end if type == 2540 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 101 this.width = 20 this.height = 20 this.value = 300 this.placeStyle = 24 return end if type == 2541 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 100 this.placeStyle = 19 this.width = 20 this.height = 20 this.value = 1500 return end if type == 2542 then this.noWet = true this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 33 this.placeStyle = 19 this.width = 8 this.value = Item.sellPrice(0, 0, 0, 60) this.height = 18 return end if type == 2543 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 34 this.placeStyle = 24 this.width = 26 this.height = 26 this.value = 3000 return end if type == 2544 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 21 this.placeStyle = 32 this.width = 26 this.height = 22 this.value = 500 return end if type == 2545 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 88 this.placeStyle = 17 this.width = 20 this.height = 20 this.value = 300 return end if type == 2547 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 93 this.placeStyle = 19 this.width = 10 this.height = 24 this.value = 500 return end if type == 2546 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 42 this.width = 12 this.height = 28 this.placeStyle = 28 this.value = 150 return end if type == 2548 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 87 this.placeStyle = 22 this.width = 20 this.height = 20 this.value = 300 return end if type == 2413 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 89 this.placeStyle = 23 this.width = 20 this.height = 20 this.value = 300 return end if type == 2550 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 14 this.placeStyle = 27 this.width = 26 this.height = 20 this.value = 300 return end if type == 2551 then this.mana = 10 this.damage = 26 this.useStyle = 1 this.shootSpeed = 10 this.shoot = 390 this.width = 26 this.height = 28 this.UseSound = SoundID.Item83 this.useAnimation = 36 this.useTime = 36 this.rare = 4 this.noMelee = true this.knockBack = 3 this.buffType = 133 this.value = Item.buyPrice(0, 5, 0, 0) this.summon = true return end if type == 2552 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 90 this.placeStyle = 19 this.width = 20 this.height = 20 this.value = 300 return end if type == 2553 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 99 this.consumable = true this.autoReuse = true this.createTile = 79 this.placeStyle = 24 this.width = 28 this.height = 20 this.value = 2000 return end if type == 2554 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 101 this.width = 20 this.height = 20 this.value = 300 this.placeStyle = 25 return end if type == 2555 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 100 this.placeStyle = 20 this.width = 20 this.height = 20 this.value = 1500 return end if type == 2556 then this.noWet = true this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 33 this.placeStyle = 20 this.width = 8 this.value = Item.sellPrice(0, 0, 0, 60) this.height = 18 return end if type == 2557 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 15 this.placeStyle = 30 this.width = 12 this.height = 30 this.value = 150 return end if type == 2558 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 34 this.placeStyle = 25 this.width = 26 this.height = 26 this.value = 3000 return end if type == 2559 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 21 this.placeStyle = 33 this.width = 26 this.height = 22 this.value = 500 return end if type == 2560 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 104 this.placeStyle = 6 this.width = 20 this.height = 20 this.value = 300 return end if type == 2561 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 99 this.consumable = true this.createTile = 10 this.placeStyle = 30 this.width = 14 this.height = 28 this.value = 200 return end if type == 2562 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 88 this.placeStyle = 18 this.width = 20 this.height = 20 this.value = 300 return end if type == 2563 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 93 this.placeStyle = 20 this.width = 10 this.height = 24 this.value = 500 return end if type == 2564 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 42 this.placeStyle = 29 this.width = 12 this.height = 28 this.value = 150 return end if type == 2565 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 87 this.placeStyle = 23 this.width = 20 this.height = 20 this.value = 300 return end if type == 2566 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 19 this.placeStyle = 19 this.width = 8 this.height = 10 return end if type == 2567 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 90 this.placeStyle = 20 this.width = 20 this.height = 20 this.value = 300 return end if type == 2568 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 99 this.consumable = true this.autoReuse = true this.createTile = 79 this.placeStyle = 25 this.width = 28 this.height = 20 this.value = 2000 return end if type == 2569 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 101 this.placeStyle = 26 this.width = 20 this.height = 20 this.value = 300 return end if type == 2570 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 100 this.placeStyle = 21 this.width = 20 this.height = 20 this.value = 1500 return end if type == 2571 then this.noWet = true this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 33 this.placeStyle = 21 this.width = 8 this.value = Item.sellPrice(0, 0, 0, 60) this.height = 18 return end if type == 2572 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 15 this.placeStyle = 31 this.width = 12 this.height = 30 this.value = 150 return end if type == 2573 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 34 this.placeStyle = 26 this.width = 26 this.height = 26 this.value = 3000 return end if type == 2574 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 21 this.placeStyle = 34 this.width = 26 this.height = 22 this.value = 500 return end if type == 2575 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 104 this.placeStyle = 7 this.width = 20 this.height = 20 this.value = 300 return end if type == 2576 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 99 this.consumable = true this.createTile = 10 this.placeStyle = 31 this.width = 14 this.height = 28 this.value = 200 return end if type == 2577 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 88 this.placeStyle = 19 this.width = 20 this.height = 20 this.value = 300 return end if type == 2578 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 93 this.placeStyle = 21 this.width = 10 this.height = 24 this.value = 500 return end if type == 2579 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 42 this.placeStyle = 30 this.width = 12 this.height = 28 this.value = 150 return end if type == 2580 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 87 this.placeStyle = 24 this.width = 20 this.height = 20 this.value = 300 return end if type == 2581 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 19 this.placeStyle = 20 this.width = 8 this.height = 10 return end if type == 2582 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 89 this.placeStyle = 25 this.width = 20 this.height = 20 this.value = 300 return end if type == 2583 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 14 this.placeStyle = 29 this.width = 26 this.height = 20 this.value = 300 return end if type == 2584 then this.mana = 10 this.damage = 40 this.useStyle = 1 this.shootSpeed = 10 this.shoot = 393 this.width = 26 this.height = 28 this.UseSound = SoundID.Item44 this.useAnimation = 36 this.useTime = 36 this.rare = 5 this.noMelee = true this.knockBack = 6 this.buffType = 135 this.value = Item.buyPrice(0, 5, 0, 0) this.summon = true return end if type == 2585 then this.noUseGraphic = true this.damage = 0 this.useStyle = 5 this.shootSpeed = 13 this.shoot = 396 this.width = 18 this.height = 28 this.UseSound = SoundID.Item1 this.useAnimation = 20 this.useTime = 20 this.rare = 3 this.noMelee = true this.value = 20000 return end if type == 2586 then this.useStyle = 5 this.shootSpeed = 5.5 this.shoot = 397 this.width = 20 this.height = 20 this.maxStack = 99 this.consumable = true this.UseSound = SoundID.Item1 this.useAnimation = 45 this.useTime = 45 this.noUseGraphic = true this.noMelee = true this.value = 75 this.damage = 60 this.knockBack = 8 this.ranged = true return end if type == 2587 then this.damage = 0 this.useStyle = 1 this.shoot = 398 this.width = 16 this.height = 30 this.UseSound = SoundID.Item2 this.useAnimation = 20 this.useTime = 20 this.rare = 3 this.noMelee = true this.buffType = 136 this.value = Item.sellPrice(0, 2, 0, 0) return end if type == 2588 then this.width = 28 this.height = 20 this.headSlot = 168 this.rare = 1 this.value = Item.sellPrice(0, 0, 75, 0) this.vanity = true return end if type == 2589 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 240 this.width = 30 this.height = 30 this.value = Item.sellPrice(0, 1, 0, 0) this.placeStyle = 55 this.rare = 1 return end if type == 2590 then this.useStyle = 5 this.shootSpeed = 6.5 this.shoot = 399 this.width = 20 this.height = 20 this.maxStack = 99 this.consumable = true this.UseSound = SoundID.Item1 this.useAnimation = 40 this.useTime = 40 this.noUseGraphic = true this.noMelee = true this.value = Item.sellPrice(0, 0, 1, 0) this.damage = 23 this.knockBack = 7 this.ranged = true this.rare = 1 return end if type >= 2591 and type <= 2606 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 104 this.placeStyle = 8 + type - 2591 this.width = 20 this.height = 20 this.value = 300 return end if type == 2607 then this.maxStack = 99 this.width = 12 this.height = 12 this.rare = 4 this.value = Item.sellPrice(0, 0, 5, 0) return end if type == 2608 then this.autoReuse = true this.scale = 1.05 this.useStyle = 1 this.useAnimation = 20 this.knockBack = 6 this.width = 24 this.height = 28 this.damage = 25 this.scale = 1.05 this.UseSound = SoundID.Item1 this.rare = 4 this.value = 10000 this.melee = true return end if type == 2609 then this.width = 22 this.height = 20 this.accessory = true this.value = Item.buyPrice(0, 40, 0, 0) this.rare = 8 this.wingSlot = 26 return end if type == 2610 then this.useStyle = 5 this.useAnimation = 12 this.useTime = 12 this.width = 38 this.height = 10 this.damage = 0 this.scale = 0.9 this.shoot = 406 this.shootSpeed = 8 this.autoReuse = true this.value = Item.buyPrice(0, 1, 50, 0) return end if type == 2611 then this.autoReuse = false this.useStyle = 5 this.useAnimation = 20 this.useTime = 20 this.autoReuse = true this.knockBack = 4.5 this.width = 30 this.height = 10 this.damage = 66 this.shoot = 404 this.shootSpeed = 14 this.UseSound = SoundID.Item1 this.rare = 8 this.value = Item.sellPrice(0, 5, 0, 0) this.melee = true this.noUseGraphic = true return end if type >= 2612 and type <= 2620 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 21 if type > 2614 then this.placeStyle = 41 + type - 2615 else this.placeStyle = 35 + (type - 2612) * 2 end this.width = 26 this.height = 22 this.value = 500 return end if type == 2621 then this.mana = 10 this.damage = 50 this.useStyle = 1 this.shootSpeed = 10 this.shoot = 407 this.width = 26 this.height = 28 this.UseSound = SoundID.Item44 this.useAnimation = 36 this.useTime = 36 this.rare = 8 this.noMelee = true this.knockBack = 2 this.buffType = 139 this.value = Item.sellPrice(0, 5, 0, 0) this.summon = true return end if type == 2624 then this.useStyle = 5 this.autoReuse = true this.useAnimation = 24 this.useTime = 24 this.width = 50 this.height = 18 this.shoot = 1 this.useAmmo = AmmoID.Arrow this.UseSound = SoundID.Item5 this.damage = 53 this.shootSpeed = 10 this.noMelee = true this.value = Item.sellPrice(0, 5, 0, 0) this.ranged = true this.rare = 8 this.knockBack = 2 return end if type == 2622 then this.mana = 16 this.damage = 90 this.useStyle = 5 this.shootSpeed = 6 this.shoot = 409 this.width = 26 this.height = 28 this.UseSound = SoundID.Item84 this.useAnimation = 40 this.useTime = 40 this.autoReuse = true this.rare = 8 this.noMelee = true this.knockBack = 5 this.scale = 0.9 this.value = Item.sellPrice(0, 5, 0, 0) this.magic = true return end if type == 2625 or type == 2626 then DefaultToSeaShelll return end if type >= 2627 and type <= 2630 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 19 this.placeStyle = 21 + type - 2627 this.width = 8 this.height = 10 return end if type >= 2631 and type <= 2633 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 18 this.placeStyle = 24 + type - 2631 this.width = 28 this.height = 14 this.value = 150 return end if type >= 2634 and type <= 2636 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 89 this.placeStyle = 26 + type - 2634 this.width = 20 this.height = 20 this.value = 300 return end if type == 2623 then this.autoReuse = true this.mana = 4 this.UseSound = SoundID.Item85 this.useStyle = 5 this.damage = 70 this.useAnimation = 9 this.useTime = 9 this.width = 40 this.height = 40 this.shoot = 410 this.shootSpeed = 11 this.knockBack = 3 this.value = Item.sellPrice(0, 5, 0, 0) this.magic = true this.rare = 8 this.noMelee = true return end if type >= 2637 and type <= 2640 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 88 this.placeStyle = 20 + type - 2637 this.width = 20 this.height = 20 this.value = 300 return end if type == 2641 or type == 2642 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 42 if type ~=2641 then this.placeStyle = 32 else this.placeStyle = 31 end this.width = 12 this.height = 28 this.value = 150 return end if type >= 2643 and type <= 2647 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 93 this.placeStyle = 22 + type - 2643 this.width = 10 this.height = 24 this.value = 500 return end if type >= 2648 and type <= 2651 then this.noWet = true this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 33 this.width = 8 this.height = 18 this.value = Item.sellPrice(0, 0, 0, 60) this.placeStyle = 22 + type - 2648 return end if type >= 2652 and type <= 2657 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 34 this.placeStyle = 27 + type - 2652 this.width = 26 this.height = 26 this.value = 3000 return end if type >= 2658 and type <= 2663 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 90 this.placeStyle = 21 + type - 2658 this.width = 20 this.height = 20 this.value = 300 return end if type >= 2664 and type <= 2668 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 100 this.placeStyle = 22 + type - 2664 this.width = 20 this.height = 20 this.value = 1500 return end if type == 2669 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 99 this.consumable = true this.autoReuse = true this.createTile = 79 this.placeStyle = 26 this.width = 28 this.height = 20 this.value = 2000 return end if type == 2670 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 101 this.width = 20 this.height = 20 this.value = 300 this.placeStyle = 27 return end if type == 2671 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 87 this.placeStyle = 25 this.width = 20 this.height = 20 this.value = 300 return end if type == 2672 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 105 this.width = 20 this.height = 20 this.value = 300 this.placeStyle = 50 return end if type == 2673 then this.useStyle = 1 this.autoReuse = true this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 999 this.consumable = true this.width = 12 this.height = 12 this.makeNPC = 374 this.noUseGraphic = true this.bait = 666 return end if type >= 2674 and type <= 2676 then this.maxStack = 999 this.consumable = true this.width = 12 this.height = 12 if type == 2675 then this.bait = 30 this.value = Item.sellPrice(0, 0, 3, 0) return end if type == 2676 then this.bait = 50 this.value = Item.sellPrice(0, 0, 10, 0) return end this.bait = 15 this.value = Item.sellPrice(0, 0, 1, 0) return end if type >= 2677 and type <= 2690 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 7 this.autoReuse = true this.maxStack = 999 this.consumable = true if type == 2677 then this.createWall = 153 elseif type == 2678 then this.createWall = 157 elseif type == 2679 then this.createWall = 154 elseif type == 2680 then this.createWall = 158 elseif type == 2681 then this.createWall = 155 elseif type == 2682 then this.createWall = 159 elseif type == 2683 then this.createWall = 156 elseif type == 2684 then this.createWall = 160 elseif type == 2685 then this.createWall = 164 elseif type == 2686 then this.createWall = 161 elseif type == 2687 then this.createWall = 165 elseif type == 2688 then this.createWall = 162 elseif type == 2689 then this.createWall = 166 elseif type == 2690 then this.createWall = 163 end this.width = 12 this.height = 12 return end if type == 2691 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 7 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createWall = 167 this.width = 12 this.height = 12 return end if type == 2692 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 325 this.width = 12 this.height = 12 return end if type == 2693 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 326 this.width = 12 this.height = 12 return end if type == 2694 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 327 this.width = 12 this.height = 12 return end if type == 2695 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 328 this.width = 12 this.height = 12 return end if type == 2696 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 7 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createWall = 168 this.width = 12 this.height = 12 return end if type == 2697 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 329 this.width = 12 this.height = 12 return end if type == 2698 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 7 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createWall = 169 this.width = 12 this.height = 12 return end if type == 2699 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 471 this.width = 30 this.height = 30 this.value = Item.sellPrice(0, 0, 0, 50) return end if type == 2700 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 335 this.width = 26 this.height = 22 this.value = Item.buyPrice(0, 5, 0, 0) this.mech = true return end if type == 2701 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 336 this.width = 12 this.height = 12 return end if type >= 2702 and type <= 2737 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 337 this.width = 20 this.height = 20 this.value = 300 this.placeStyle = type - 2702 return end if type == 2738 then this.createTile = 338 this.placeStyle = 0 this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.width = 12 this.height = 30 this.value = Item.buyPrice(0, 3, 0, 0) this.mech = true return end if type == 2739 then this.useStyle = 1 this.useAnimation = 15 this.useTime = 7 this.useTurn = true this.autoReuse = true this.width = 16 this.height = 16 this.maxStack = 99 this.createTile = 314 this.placeStyle = 2 this.consumable = true this.cartTrack = true this.mech = true this.tileBoost = 2 this.value = Item.buyPrice(0, 0, 50, 0) return end if type == 2740 then this.useStyle = 1 this.autoReuse = true this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 999 this.consumable = true this.width = 12 this.height = 12 this.makeNPC = 377 this.noUseGraphic = true this.bait = 10 return end if type == 2741 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 339 this.width = 12 this.height = 12 return end if type == 2742 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.consumable = true this.createTile = 139 this.placeStyle = 31 this.width = 24 this.height = 24 this.rare = 4 this.value = 100000 this.accessory = true this.canBePlacedInVanityRegardlessOfConditions = true return end if type == 2743 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 14 this.placeStyle = 30 this.width = 26 this.height = 20 this.value = 300 return end if type == 2744 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 19 this.placeStyle = 25 this.width = 8 this.height = 10 return end if type == 2745 then this.useStyle = 1 this.useTurn = false this.useAnimation = 23 this.useTime = 23 this.width = 24 this.height = 28 this.damage = 8 this.knockBack = 5 this.UseSound = SoundID.Item1 this.scale = 1 this.value = 100 this.melee = true return end if type == 2746 then this.autoReuse = true this.useStyle = 1 this.useTurn = true this.useAnimation = 33 this.useTime = 23 this.hammer = 35 this.width = 24 this.height = 28 this.damage = 4 this.knockBack = 5.5 this.scale = 1.1 this.UseSound = SoundID.Item1 this.value = 50 this.melee = true return end if type == 2747 then this.useStyle = 5 this.useAnimation = 29 this.useTime = 29 this.width = 12 this.height = 28 this.shoot = 1 this.useAmmo = AmmoID.Arrow this.UseSound = SoundID.Item5 this.damage = 6 this.shootSpeed = 6.6 this.noMelee = true this.value = 100 this.ranged = true return end if type == 2748 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 21 this.placeStyle = 47 this.width = 26 this.height = 22 this.value = 500 return end if type == 2749 then this.mana = 10 this.damage = 36 this.useStyle = 1 this.shootSpeed = 10 this.shoot = 423 this.width = 26 this.height = 28 this.UseSound = SoundID.Item44 this.useAnimation = 36 this.useTime = 36 this.rare = 8 this.noMelee = true this.knockBack = 2 this.buffType = 140 this.value = Item.sellPrice(0, 10, 0, 0) this.summon = true return end if type == 2750 then this.autoReuse = true this.mana = 13 this.useStyle = 5 this.damage = 50 this.useAnimation = 10 this.useTime = 10 this.width = 40 this.height = 40 this.shoot = 424 this.shootSpeed = 10 this.knockBack = 4.5 this.value = Item.sellPrice(0, 2, 0, 0) this.magic = true this.rare = 5 this.noMelee = true this.UseSound = SoundID.Item88 return end if type >= 2751 and type <= 2755 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 340 + type - 2751 this.width = 12 this.height = 12 return end if type == 2756 then this.UseSound = SoundID.Item6 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.maxStack = 30 this.consumable = true this.width = 14 this.height = 24 this.value = 1000 this.rare = 1 return end if type == 2757 then this.width = 18 this.height = 18 this.defense = 14 this.headSlot = 169 this.glowMask = 26 this.rare = 10 this.value = Item.sellPrice(0, 7, 0, 0) return end if type == 2758 then this.width = 18 this.height = 18 this.defense = 28 this.bodySlot = 175 this.glowMask = 27 this.rare = 10 this.value = Item.sellPrice(0, 7, 0, 0) * 2 return end if type == 2759 then this.width = 18 this.height = 18 this.defense = 20 this.legSlot = 110 this.rare = 10 this.value = math.floor(Item.sellPrice(0, 7, 0, 0) * 1.5) return end if type == 2760 then this.width = 18 this.height = 18 this.defense = 14 this.headSlot = 170 this.glowMask = 28 this.rare = 10 this.value = Item.sellPrice(0, 7, 0, 0) return end if type == 2761 then this.width = 18 this.height = 18 this.defense = 18 this.bodySlot = 176 this.glowMask = 29 this.rare = 10 this.value = Item.sellPrice(0, 7, 0, 0) * 2 return end if type == 2762 then this.width = 18 this.height = 18 this.defense = 14 this.legSlot = 111 this.glowMask = 30 this.rare = 10 this.value = math.floor(Item.sellPrice(0, 7, 0, 0) * 1.5) return end if type == 2763 then this.width = 18 this.height = 18 this.defense = 24 this.headSlot = 171 this.rare = 10 this.value = Item.sellPrice(0, 7, 0, 0) return end if type == 2764 then this.width = 18 this.height = 18 this.defense = 34 this.bodySlot = 177 this.rare = 10 this.value = Item.sellPrice(0, 7, 0, 0) * 2 return end if type == 2765 then this.width = 18 this.height = 18 this.defense = 20 this.legSlot = 112 this.rare = 10 this.value = math.floor(Item.sellPrice(0, 7, 0, 0) * 1.5) return end if type == 2767 then this.useStyle = 4 this.width = 22 this.height = 14 this.consumable = true this.useAnimation = 45 this.useTime = 45 this.maxStack = 20 this.rare = 8 return end if type == 2766 then this.width = 22 this.height = 14 this.maxStack = 99 this.rare = 8 return end if type == 2770 then this.width = 22 this.height = 20 this.accessory = true this.value = this.eclipseMothronPrice this.rare = 8 this.wingSlot = 27 return end if type == 2769 then this.useStyle = 1 this.width = 32 this.height = 30 this.UseSound = SoundID.Item25 this.useAnimation = 20 this.useTime = 20 this.rare = 8 this.noMelee = true this.mountType = 7 this.value = Item.sellPrice(0, 5, 0, 0) return end if type == 2768 then this.useStyle = 1 this.width = 32 this.height = 30 this.UseSound = SoundID.Item25 this.useAnimation = 20 this.useTime = 20 this.rare = 8 this.noMelee = true this.mountType = 8 this.value = Item.sellPrice(0, 5, 0, 0) return end if type == 2771 then this.useStyle = 1 this.channel = true this.width = 34 this.height = 34 this.UseSound = SoundID.Item90 this.useAnimation = 20 this.useTime = 20 this.rare = 8 this.noMelee = true this.mountType = 9 this.value = Item.sellPrice(0, 5, 0, 0) return end if type == 2772 then this.autoReuse = true this.useStyle = 1 this.useAnimation = 25 this.knockBack = 6 this.useTime = 7 this.width = 54 this.height = 54 this.damage = 100 this.axe = 27 this.UseSound = SoundID.Item1 this.rare = 10 this.scale = 1.05 this.value = Item.sellPrice(0, 6, 0, 0) this.melee = true this.glowMask = 1 this.tileBoost = this.tileBoost + 4 return end if type == 2773 then this.useStyle = 5 this.useAnimation = 25 this.useTime = 7 this.shootSpeed = 28 this.knockBack = 4 this.width = 56 this.height = 22 this.damage = 80 this.axe = 27 this.UseSound = SoundID.Item23 this.shoot = 427 this.rare = 10 this.value = Item.sellPrice(0, 6, 0, 0) this.noMelee = true this.noUseGraphic = true this.melee = true this.channel = true this.glowMask = 20 this.tileBoost = this.tileBoost + 4 return end if type == 2774 then this.useStyle = 5 this.useAnimation = 25 this.useTime = 4 this.shootSpeed = 32 this.knockBack = 0 this.width = 54 this.height = 26 this.damage = 50 this.pick = 225 this.UseSound = SoundID.Item23 this.shoot = 428 this.rare = 10 this.value = Item.sellPrice(0, 7, 0, 0) this.noMelee = true this.noUseGraphic = true this.melee = true this.channel = true this.glowMask = 21 this.tileBoost = this.tileBoost + 3 return end if type == 2776 then this.useStyle = 1 this.useAnimation = 12 this.useTime = 6 this.knockBack = 5.5 this.useTurn = true this.autoReuse = true this.width = 36 this.height = 36 this.damage = 80 this.pick = 225 this.UseSound = SoundID.Item1 this.rare = 10 this.value = Item.sellPrice(0, 7, 0, 0) this.melee = true this.glowMask = 5 this.tileBoost = this.tileBoost + 4 return end if type == 2775 then this.useTurn = true this.autoReuse = true this.useStyle = 1 this.useAnimation = 30 this.useTime = 7 this.knockBack = 7 this.width = 44 this.height = 42 this.damage = 110 this.hammer = 100 this.UseSound = SoundID.Item1 this.rare = 10 this.value = Item.sellPrice(0, 8, 0, 0) this.melee = true this.scale = 1.1 this.glowMask = 4 this.tileBoost = this.tileBoost + 4 return end if type == 2777 then SetDefaults3(2772) type = 2777 this.glowMask = 6 return end if type == 2778 then SetDefaults3(2773) type = 2778 this.shoot = 429 this.glowMask = 22 return end if type == 2779 then SetDefaults3(2774) type = 2779 this.shoot = 430 this.glowMask = 23 return end if type == 2780 then SetDefaults3(2775) type = 2780 this.glowMask = 9 return end if type == 2781 then SetDefaults3(2776) type = 2781 this.glowMask = 10 return end if type == 2782 then SetDefaults3(2772) type = 2782 this.glowMask = -1 return end if type == 2783 then SetDefaults3(2773) type = 2783 this.shoot = 431 this.glowMask = -1 return end if type == 2784 then SetDefaults3(2774) type = 2784 this.shoot = 432 this.glowMask = -1 return end if type == 2785 then SetDefaults3(2775) type = 2785 this.glowMask = -1 return end if type == 2786 then SetDefaults3(2776) type = 2786 this.glowMask = -1 return end if type == 2787 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 345 this.width = 12 this.height = 12 return end if type == 2788 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 7 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createWall = 172 this.width = 12 this.height = 12 return end if type >= 2789 and type <= 2791 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 7 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createWall = 173 + type - 2789 this.width = 12 this.height = 12 return end if type >= 2792 and type <= 2794 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 346 + type - 2792 this.width = 12 this.height = 12 return end if type == 2795 then this.useStyle = 5 this.useAnimation = 20 this.useTime = 20 this.shootSpeed = 20 this.knockBack = 2 this.width = 20 this.height = 12 this.damage = 60 this.shoot = 439 this.mana = 6 this.rare = 8 this.value = Item.sellPrice(0, 10, 0, 0) this.noMelee = true this.noUseGraphic = true this.magic = true this.channel = true this.glowMask = 47 return end if type == 2796 then this.useStyle = 5 this.useAnimation = 12 this.useTime = 12 this.width = 50 this.height = 18 this.shoot = 442 this.useAmmo = 771 this.glowMask = 36 this.UseSound = SoundID.Item92 this.damage = 40 this.shootSpeed = 12 this.noMelee = true this.value = Item.sellPrice(0, 10, 0, 0) this.ranged = true this.rare = 8 this.knockBack = 2 return end if type == 2797 then this.useStyle = 5 this.useAnimation = 21 this.useTime = 21 this.autoReuse = true this.width = 50 this.height = 18 this.shoot = 444 this.useAmmo = AmmoID.Bullet this.glowMask = 38 this.UseSound = SoundID.Item95 this.damage = 45 this.shootSpeed = 12 this.noMelee = true this.value = Item.sellPrice(0, 10, 0, 0) this.ranged = true this.rare = 8 this.knockBack = 3 return end if type == 2798 then this.useStyle = 5 this.useAnimation = 25 this.useTime = 6 this.shootSpeed = 36 this.knockBack = 4.75 this.width = 20 this.height = 12 this.damage = 35 this.pick = 230 this.shoot = 445 this.rare = 8 this.value = Item.sellPrice(0, 10, 0, 0) this.tileBoost = 11 this.noMelee = true this.noUseGraphic = true this.melee = true this.channel = true this.glowMask = 39 return end if type == 2799 then this.width = 10 this.height = 26 this.accessory = true this.value = Item.buyPrice(0, 1, 0, 0) this.rare = 1 return end if type == 2800 then this.noUseGraphic = true this.damage = 0 this.knockBack = 7 this.useStyle = 5 this.shootSpeed = 14 this.shoot = 446 this.width = 18 this.height = 28 this.UseSound = SoundID.Item1 this.useAnimation = 20 this.useTime = 20 this.rare = 7 this.noMelee = true this.value = Item.sellPrice(0, 2, 50, 0) return end if type == 2801 then this.width = 28 this.height = 20 this.headSlot = 172 this.rare = 1 this.vanity = true return end if type == 2802 then this.width = 28 this.height = 20 this.headSlot = 173 this.rare = 1 this.vanity = true return end if type == 2803 then this.width = 18 this.height = 18 this.headSlot = 174 this.vanity = true this.value = Item.sellPrice(0, 1, 0, 0) return end if type == 2804 then this.width = 18 this.height = 18 this.bodySlot = 178 this.vanity = true this.value = Item.sellPrice(0, 1, 0, 0) return end if type == 2805 then this.width = 18 this.height = 18 this.legSlot = 113 this.vanity = true this.value = Item.sellPrice(0, 1, 0, 0) return end if type == 2806 then this.width = 18 this.height = 18 this.headSlot = 175 this.vanity = true this.value = Item.sellPrice(0, 1, 0, 0) this.glowMask = 46 return end if type == 2807 then this.width = 18 this.height = 18 this.bodySlot = 179 this.vanity = true this.value = Item.sellPrice(0, 1, 0, 0) this.glowMask = 45 return end if type == 2808 then this.width = 18 this.height = 18 this.legSlot = 114 this.vanity = true this.value = Item.sellPrice(0, 1, 0, 0) return end if type == 2822 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 19 this.placeStyle = 26 this.width = 8 this.height = 10 return end if type == 2810 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 90 this.placeStyle = 27 this.width = 20 this.height = 20 this.value = 300 return end if type == 2811 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 99 this.consumable = true this.autoReuse = true this.createTile = 79 this.placeStyle = 27 this.width = 28 this.height = 20 this.value = 2000 return end if type == 2823 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 89 this.placeStyle = 29 this.width = 20 this.height = 20 this.value = 300 return end if type == 2825 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 100 this.placeStyle = 27 this.width = 20 this.height = 20 this.value = 1500 return end if type == 2818 then this.noWet = true this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 33 this.placeStyle = 26 this.width = 8 this.value = Item.sellPrice(0, 0, 0, 60) this.height = 18 return end if type == 2812 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 15 this.placeStyle = 32 this.width = 12 this.height = 30 this.value = 150 return end if type == 2813 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 34 this.placeStyle = 33 this.width = 26 this.height = 26 this.value = 3000 return end if type == 2814 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 21 this.placeStyle = 48 this.width = 26 this.height = 22 this.value = 500 return end if type == 2815 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 99 this.consumable = true this.createTile = 10 this.placeStyle = 32 this.width = 14 this.height = 28 this.value = 200 return end if type == 2816 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 88 this.placeStyle = 24 this.width = 20 this.height = 20 this.value = 300 return end if type == 2820 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 42 this.width = 12 this.height = 28 this.placeStyle = 33 this.value = 150 return end if type == 2821 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 87 this.placeStyle = 26 this.width = 20 this.height = 20 this.value = 300 return end if type == 2824 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 14 this.placeStyle = 31 this.width = 26 this.height = 20 this.value = 300 return end if type == 2819 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 93 this.placeStyle = 27 this.width = 10 this.height = 24 this.value = 500 return end if type == 2826 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 18 this.placeStyle = 27 this.width = 28 this.height = 14 this.value = 150 return end if type == 2817 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 101 this.width = 20 this.height = 20 this.value = 300 this.placeStyle = 28 return end if type == 2809 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 104 this.width = 20 this.height = 20 this.value = 300 this.placeStyle = 24 return end if type 2855 then if type == 2856 then this.width = 28 this.height = 20 this.headSlot = 176 this.rare = 1 this.vanity = true this.value = Item.buyPrice(0, 10, 0, 0) return end if type == 2857 then this.width = 28 this.height = 20 this.headSlot = 177 this.rare = 1 this.vanity = true this.value = Item.buyPrice(0, 10, 0, 0) return end if type == 2858 then this.width = 18 this.height = 14 this.bodySlot = 180 this.rare = 1 this.vanity = true this.value = Item.buyPrice(0, 10, 0, 0) return end if type == 2859 then this.width = 18 this.height = 14 this.bodySlot = 181 this.rare = 1 this.vanity = true this.value = Item.buyPrice(0, 10, 0, 0) return end if type == 2860 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.glowMask = 93 this.createTile = 350 this.width = 12 this.height = 12 return end if type == 2861 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 7 this.autoReuse = true this.maxStack = 999 this.consumable = true this.glowMask = 95 this.createWall = 176 this.width = 12 this.height = 12 return end if type == 2862 then this.width = 28 this.height = 12 this.headSlot = 178 this.rare = 3 this.value = Item.sellPrice(0, 1, 0, 0) this.vanity = true this.glowMask = 97 return end if type == 2863 then this.width = 20 this.height = 26 this.maxStack = 99 this.rare = 3 this.glowMask = 98 this.value = Item.buyPrice(0, 30, 0, 0) this.UseSound = SoundID.Item3 this.useStyle = 9 this.useTurn = true this.useAnimation = 17 this.useTime = 17 this.consumable = true return end if type == 2864 then this.glowMask = 99 this.width = 20 this.height = 20 this.maxStack = 99 this.value = Item.sellPrice(0, 1, 50, 0) this.rare = 3 return end if type == 2865 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 242 this.width = 30 this.height = 30 this.value = Item.buyPrice(0, 2, 0, 0) this.placeStyle = 27 return end if type == 2866 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 242 this.width = 30 this.height = 30 this.value = Item.buyPrice(0, 2, 0, 0) this.placeStyle = 28 return end if type == 2867 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 242 this.width = 30 this.height = 30 this.value = Item.buyPrice(0, 2, 0, 0) this.placeStyle = 29 return end if type == 2868 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 351 this.width = 12 this.height = 12 this.value = Item.buyPrice(0, 0, 1, 0) return end if type == 2869 then this.width = 20 this.height = 20 this.maxStack = 99 this.value = Item.sellPrice(0, 1, 50, 0) this.rare = 3 return end if type == 2870 then this.width = 20 this.height = 20 this.maxStack = 99 this.value = Item.sellPrice(0, 1, 50, 0) this.rare = 3 return end if type == 2871 then this.width = 20 this.height = 20 this.maxStack = 99 this.value = Item.sellPrice(0, 0, 75, 0) this.rare = 2 return end if type == 2872 then this.width = 20 this.height = 20 this.maxStack = 99 this.value = Item.sellPrice(0, 0, 75, 0) this.rare = 2 return end if type == 2873 then this.width = 20 this.height = 20 this.maxStack = 99 this.value = Item.sellPrice(0, 1, 50, 0) this.rare = 3 return end if type == 2874 then this.width = 20 this.height = 20 this.maxStack = 99 this.value = 10000 this.rare = 1 return end if type == 2875 then this.width = 20 this.height = 20 this.maxStack = 99 this.value = 10000 this.rare = 1 return end if type == 2876 then this.width = 20 this.height = 20 this.maxStack = 99 this.value = 10000 this.rare = 1 return end if type == 2877 then this.width = 20 this.height = 20 this.maxStack = 99 this.value = 10000 this.rare = 1 return end if type == 2878 then this.width = 20 this.height = 20 this.maxStack = 99 this.value = Item.sellPrice(0, 1, 50, 0) this.rare = 3 this.glowMask = 105 return end if type == 2879 then this.width = 20 this.height = 20 this.maxStack = 99 this.value = Item.sellPrice(0, 1, 50, 0) this.rare = 3 this.glowMask = 104 return end if type == 2880 then this.useStyle = 1 this.useAnimation = 20 this.useTime = 20 this.autoReuse = true this.shoot = 451 this.shootSpeed = 11 this.knockBack = 4.5 this.width = 40 this.height = 40 this.damage = 110 this.scale = 1.05 this.UseSound = SoundID.Item1 this.rare = 8 this.value = Item.sellPrice(0, 10, 0, 0) this.melee = true return end if type == 2882 then this.useStyle = 5 this.useAnimation = 20 this.useTime = 20 this.shootSpeed = 14 this.knockBack = 2 this.width = 16 this.height = 16 this.damage = 100 this.UseSound = SoundID.Item75 this.shoot = 460 this.mana = 14 this.rare = 8 this.value = Item.sellPrice(0, 10, 0, 0) this.noMelee = true this.noUseGraphic = true this.magic = true this.channel = true this.glowMask = 102 return end if type == 2883 then this.width = 20 this.height = 20 this.maxStack = 99 this.value = Item.sellPrice(0, 1, 50, 0) this.rare = 3 this.glowMask = 103 return end if type == 2885 then this.width = 20 this.height = 20 this.maxStack = 99 this.value = Item.sellPrice(0, 1, 50, 0) this.rare = 3 this.glowMask = 106 return end if type == 2884 then this.width = 20 this.height = 20 this.maxStack = 99 this.value = Item.sellPrice(0, 1, 50, 0) this.rare = 3 this.glowMask = 107 return end if type == 2887 then this.width = 16 this.height = 18 this.maxStack = 99 this.value = 50 return end if type == 2886 then this.damage = 0 this.useStyle = 1 this.shootSpeed = 4 this.shoot = 463 this.width = 16 this.height = 24 this.maxStack = 99 this.consumable = true this.UseSound = SoundID.Item1 this.useAnimation = 15 this.useTime = 15 this.noMelee = true this.value = 100 return end if type == 2888 then this.useStyle = 5 this.useAnimation = 24 this.useTime = 23 this.width = 12 this.height = 28 this.shoot = 469 this.useAmmo = AmmoID.Arrow this.UseSound = SoundID.Item97 this.damage = 23 this.shootSpeed = 8 this.knockBack = 3 this.rare = 3 this.noMelee = true this.value = this.queenBeePrice this.ranged = true return end if type 2895 then if type == 2896 then this.useStyle = 1 this.shootSpeed = 4 this.shoot = 470 this.width = 8 this.height = 28 this.maxStack = 99 this.consumable = true this.UseSound = SoundID.Item1 this.useAnimation = 40 this.useTime = 40 this.noUseGraphic = true this.noMelee = true this.value = Item.buyPrice(0, 0, 20, 0) this.rare = 1 return end if type >= 2897 and type <= 2994 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 91 this.placeStyle = 109 + type - 2897 this.width = 10 this.height = 24 this.value = 1000 this.rare = 1 return end if type == 2995 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 242 this.width = 30 this.height = 30 this.value = Item.sellPrice(0, 0, 10, 0) this.placeStyle = 30 return end if type == 2996 then this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 8 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 353 this.width = 12 this.height = 12 this.tileBoost = this.tileBoost + 3 return end if type == 2997 then this.maxStack = 30 this.consumable = true this.width = 14 this.height = 24 this.value = 1000 this.rare = 1 return end if type == 2998 then this.width = 24 this.height = 24 this.accessory = true this.value = 100000 this.rare = 4 return end if type == 2999 then this.rare = 1 this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 354 this.width = 12 this.height = 12 this.value = 100000 return end if type == 3000 then this.rare = 1 this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createTile = 355 this.width = 12 this.height = 12 this.value = 100000 end else this.useStyle = 1 this.autoReuse = true this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 999 this.consumable = true this.width = 12 this.height = 12 this.makeNPC = (442 + type - 2889) this.noUseGraphic = true this.value = Item.sellPrice(0, 10, 0, 0) this.rare = 3 if type == 2895 or type == 2893 or type == 2891 then this.bait = 50 return end end else this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 172 this.placeStyle = type - 2827 this.width = 20 this.height = 20 this.value = 300 if type == 2843 then this.value = Item.buyPrice(0, 10, 0, 0) return end end else this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 7 this.autoReuse = true this.maxStack = 999 this.consumable = true this.createWall = 146 + type - 2432 this.width = 12 this.height = 12 if type == 2434 then this.value = Item.buyPrice(0, 0, 0, 50) return end end else this.useStyle = 1 this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.autoReuse = true this.maxStack = 99 this.consumable = true this.createTile = 88 this.placeStyle = 5 + type - 2386 this.width = 20 this.height = 20 this.value = 300 if type == 2389 then this.value = Item.buyPrice(0, 10, 0, 0) return end end else this.maxStack = 999 this.width = 26 this.height = 26 this.value = Item.sellPrice(0, 0, 5, 0) if type == 2308 then this.value = Item.sellPrice(0, 10, 0, 0) this.rare = 4 end if type == 2312 then this.value = Item.sellPrice(0, 0, 50, 0) this.rare = 2 end if type == 2317 then this.value = Item.sellPrice(0, 3, 0, 0) this.rare = 4 end if type == 2310 then this.value = Item.sellPrice(0, 1, 0, 0) this.rare = 3 end if type == 2321 then this.value = Item.sellPrice(0, 0, 25, 0) this.rare = 1 end if type == 2315 then this.value = Item.sellPrice(0, 0, 15, 0) this.rare = 2 end if type == 2303 then this.value = Item.sellPrice(0, 0, 15, 0) this.rare = 1 end if type == 2304 then this.value = Item.sellPrice(0, 0, 30, 0) this.rare = 1 end if type == 2316 then this.value = Item.sellPrice(0, 0, 15, 0) end if type == 2311 then this.value = Item.sellPrice(0, 0, 15, 0) this.rare = 1 end if type == 2313 then this.value = Item.sellPrice(0, 0, 15, 0) this.rare = 1 end if type == 2306 then this.value = Item.sellPrice(0, 0, 15, 0) this.rare = 1 end if type == 2307 then this.value = Item.sellPrice(0, 0, 25, 0) this.rare = 2 end if type == 2319 then this.value = Item.sellPrice(0, 0, 15, 0) this.rare = 1 end if type == 2318 then this.value = Item.sellPrice(0, 0, 15, 0) this.rare = 1 end if type == 2298 then this.value = Item.sellPrice(0, 0, 7, 50) end if type == 2309 then this.value = Item.sellPrice(0, 0, 7, 50) this.rare = 1 end if type == 2300 then this.value = Item.sellPrice(0, 0, 7, 50) end if type == 2301 then this.value = Item.sellPrice(0, 0, 7, 50) end if type == 2302 then this.value = Item.sellPrice(0, 0, 15, 0) end if type == 2299 then this.value = Item.sellPrice(0, 0, 7, 50) end if type == 2305 then this.value = Item.sellPrice(0, 0, 7, 50) this.rare = 1 return end end end end end else this.useStyle = 1 this.autoReuse = true this.useTurn = true this.useAnimation = 15 this.useTime = 10 this.maxStack = 999 this.consumable = true this.width = 12 this.height = 12 this.noUseGraphic = true if type == 2015 then this.makeNPC = 74 end if type == 2016 then this.makeNPC = 297 end if type == 2017 then this.makeNPC = 298 end if type == 2018 then this.makeNPC = 299 end if type == 2019 then this.makeNPC = 46 return end end end

local SetDefaults, netDefaults netDefaults = function (type) if type == -1 then SetDefaults(3521) return end if type == -2 then SetDefaults(3520) return end if type == -3 then SetDefaults(3519) return end if type == -4 then SetDefaults(3518) return end if type == -5 then SetDefaults(3517) return end if type == -6 then SetDefaults(3516) return end if type == -7 then SetDefaults(3515) return end if type == -8 then SetDefaults(3514) return end if type == -9 then SetDefaults(3513) return end if type == -10 then SetDefaults(3512) return end if type == -11 then SetDefaults(3511) return end if type == -12 then SetDefaults(3510) return end if type == -13 then SetDefaults(3509) return end if type == -14 then SetDefaults(3508) return end if type == -15 then SetDefaults(3507) return end if type == -16 then SetDefaults(3506) return end if type == -17 then SetDefaults(3505) return end if type == -18 then SetDefaults(3504) return end if type == -19 then SetDefaults(3764) return end if type == -20 then SetDefaults(3765) return end if type == -21 then SetDefaults(3766) return end if type == -22 then SetDefaults(3767) return end if type == -23 then SetDefaults(3768) return end if type == -24 then SetDefaults(3769) return end if type == -25 then SetDefaults(3503) return end if type == -26 then SetDefaults(3502) return end if type == -27 then SetDefaults(3501) return end if type == -28 then SetDefaults(3500) return end if type == -29 then SetDefaults(3499) return end if type == -30 then SetDefaults(3498) return end if type == -31 then SetDefaults(3497) return end if type == -32 then SetDefaults(3496) return end if type == -33 then SetDefaults(3495) return end if type == -34 then SetDefaults(3494) return end if type == -35 then SetDefaults(3493) return end if type == -36 then SetDefaults(3492) return end if type == -37 then SetDefaults(3491) return end if type == -38 then SetDefaults(3490) return end if type == -39 then SetDefaults(3489) return end if type == -40 then SetDefaults(3488) return end if type == -41 then SetDefaults(3487) return end if type == -42 then SetDefaults(3486) return end if type == -43 then SetDefaults(3485) return end if type == -44 then SetDefaults(3484) return end if type == -45 then SetDefaults(3483) return end if type == -46 then SetDefaults(3482) return end if type == -47 then SetDefaults(3481) return end if type == -48 then SetDefaults(3480) return end end

SetDefaults = function (Type) if Type < 0 then netDefaults(Type) return end ResetStats(Type) if this.type >= 5088 then this.type = 0 end if this.type == 0 then this.netID = 0 this.stack = 0 elseif ItemIdSets('IsFood',this.type) then SetFoodDefaults(this.type) elseif this.type <= 1000 then SetDefaults1(this.type) elseif this.type <= 2001 then SetDefaults2(this.type) elseif this.type <= 3000 then SetDefaults3(this.type) elseif this.type > 3989 then SetDefaults5(this.type) else SetDefaults4(this.type) end -- // after setDefaultsX, all dyes will have non-zero value, 1 = basic dye; 2 = other dye. -- // the method below will give all dyes unique int values one by one, it is not necessary for determine "isDye" n	-- this.dye = (byte)GameShaders.Armor.GetShaderIdFromItemId(this.type) -- // Similarly, give all hair dyes unique int values. --if this.hairDye ~= 0 then --	this.hairDye = GameShaders.Hair.GetShaderIdFromItemId(this.type) --end if this.type == 2015 then this.value = Item.sellPrice(0, 0, 5, 0) end if this.type == 2016 then this.value = Item.sellPrice(0, 0, 7, 50) end if this.type == 2017 then this.value = Item.sellPrice(0, 0, 7, 50) end if this.type == 2019 then this.value = Item.sellPrice(0, 0, 5, 0) end if this.type == 2018 then this.value = Item.sellPrice(0, 0, 5, 0) end if this.type == 3563 then this.value = Item.sellPrice(0, 0, 5, 0) end if this.type == 261 then this.value = Item.sellPrice(0, 0, 7, 50) end if this.type == 2205 then this.value = Item.sellPrice(0, 0, 12, 50) end if this.type == 2123 then this.value = Item.sellPrice(0, 0, 7, 50) end if this.type == 2122 then this.value = Item.sellPrice(0, 0, 7, 50) end if this.type == 2003 then this.value = Item.sellPrice(0, 0, 10, 0) end if this.type == 2156 then this.value = Item.sellPrice(0, 0, 15, 0) end if this.type == 2157 then this.value = Item.sellPrice(0, 0, 15, 0) end if this.type == 2121 then this.value = Item.sellPrice(0, 0, 15, 0) end if this.type == 1992 then this.value = Item.sellPrice(0, 0, 3, 0) end if this.type == 2004 then this.value = Item.sellPrice(0, 0, 5, 0) end if this.type == 2002 then this.value = Item.sellPrice(0, 0, 5, 0) end if this.type == 2740 then this.value = Item.sellPrice(0, 0, 2, 50) end if this.type == 2006 then this.value = Item.sellPrice(0, 0, 10, 0) end if this.type == 3191 then this.value = Item.sellPrice(0, 0, 20, 0) end if this.type == 3192 then this.value = Item.sellPrice(0, 0, 2, 50) end if this.type == 3193 then this.value = Item.sellPrice(0, 0, 5, 0) end if this.type == 3194 then this.value = Item.sellPrice(0, 0, 10, 0) end if this.type == 2007 then this.value = Item.sellPrice(0, 0, 50, 0) end if this.type == 2673 then this.value = Item.sellPrice(0, 10, 0, 0) end if this.bait > 0 then if this.bait >= 50 then this.rare = 3 elseif this.bait >= 30 then this.rare = 2 elseif this.bait >= 15 then this.rare = 1 end end if this.type >= 1994 and this.type <= 2001 then local num = this.type - 1994 if num == 0 then this.value = Item.sellPrice(0, 0, 5, 0) end if num == 4 then this.value = Item.sellPrice(0, 0, 10, 0) end if num == 6 then this.value = Item.sellPrice(0, 0, 15, 0) end if num == 3 then this.value = Item.sellPrice(0, 0, 20, 0) end if num == 7 then this.value = Item.sellPrice(0, 0, 30, 0) end if num == 2 then this.value = Item.sellPrice(0, 0, 40, 0) end if num == 1 then this.value = Item.sellPrice(0, 0, 75, 0) end if num == 5 then this.value = Item.sellPrice(0, 1, 0, 0) end end if this.type == 2663 or this.type == 1720 or this.type == 2137 or this.type == 2155 or this.type == 2151 or this.type == 1704 or this.type == 2143 or this.type == 1710 or this.type == 2238 or this.type == 2133 or this.type == 2147 or this.type == 2405 or this.type == 1716 or this.type == 1705 then this.value = Item.sellPrice(0, 2, 0, 0) end if ProjectileInfo(this.shoot).aiStyle == 7 then --if Main.projHook[this.shoot] then this.useStyle = 0 this.useTime = 0 this.useAnimation = 0 end if ItemIdSets('IsDrill', this.type) or ItemIdSets('IsChainsaw', this.type) or this.type == 1262 then this.useTime = math.floor(this.useTime * 0.6) if this.useTime < 1 then this.useTime = 1 end this.useAnimation = math.floor(this.useAnimation * 0.6) if this.useAnimation < 1 then this.useAnimation = 1 end this.tileBoost = this.tileBoost - 1 end if ItemIdSets('IsFood', this.type) then this.holdStyle = 1 end if this.type >= 1803 and this.type <= 1807 then SetDefaults(1533 + this.type - 1803) end if this.dye > 0 then this.maxStack = 99 end if this.createTile == 19 then this.maxStack = 999 end this.netID = this.type -- this.material = ItemID.Sets.IsAMaterial[this.type] // use

--RebuildTooltip // use or 	if this.type > 0 and this.type < 5088 and ItemIdSets('Deprecated', this.type) then this.netID = 0 this.type = 0 this.stack = 0 end end

---

local function export(var) local t = mw.dumpObject(var) t = string.gsub(t, "table#1 ", "") t = string.gsub(t, "metatable = table#2", "") t = string.gsub(t, " +", "") t = string.gsub(t, "\n+", "\n") return t end

---

local p = { getInfo = function(itemid) SetDefaults(itemid) return this end, setDefaults3 = function(itemid) --for invokation from other datagen modules this = {} ResetStats(itemid) SetDefaults3(itemid) return this end, }

return p