filipeva87 0 Postado Setembro 8, 2011 Share Postado Setembro 8, 2011 Ae pessoal, so ta faltando isso pro meu ot fika 24h on :S to com um problema em que: Se um pokemon atacar diretamente o player o servidor da erro e fexa... ja mexi em tanta coisa tentando resolver e nda :s alguem poderia me ajudar? atenciosamente, obrigado! Link para o comentário Compartilhar em outros sites More sharing options...
Mulizeu 86 Postado Setembro 8, 2011 Share Postado Setembro 8, 2011 (editado) Tente isso vai na sua pasta data/lib e procura 000-constant coloque isso la NORTH = 0EAST = 1SOUTH = 2WEST = 3SOUTHWEST = 4SOUTHEAST = 5NORTHWEST = 6NORTHEAST = 7COMBAT_FORMULA_UNDEFINED = 0COMBAT_FORMULA_LEVELMAGIC = 1COMBAT_FORMULA_SKILL = 2COMBAT_FORMULA_DAMAGE = 3CONDITION_PARAM_OWNER = 1CONDITION_PARAM_TICKS = 2CONDITION_PARAM_OUTFIT = 3CONDITION_PARAM_HEALTHGAIN = 4CONDITION_PARAM_HEALTHTICKS = 5CONDITION_PARAM_MANAGAIN = 6CONDITION_PARAM_MANATICKS = 7CONDITION_PARAM_DELAYED = 8CONDITION_PARAM_SPEED = 9CONDITION_PARAM_LIGHT_LEVEL = 10CONDITION_PARAM_LIGHT_COLOR = 11CONDITION_PARAM_SOULGAIN = 12CONDITION_PARAM_SOULTICKS = 13CONDITION_PARAM_MINVALUE = 14CONDITION_PARAM_MAXVALUE = 15CONDITION_PARAM_STARTVALUE = 16CONDITION_PARAM_TICKINTERVAL = 17CONDITION_PARAM_FORCEUPDATE = 18CONDITION_PARAM_SKILL_MELEE = 19CONDITION_PARAM_SKILL_FIST = 20CONDITION_PARAM_SKILL_CLUB = 21CONDITION_PARAM_SKILL_SWORD = 22CONDITION_PARAM_SKILL_AXE = 23CONDITION_PARAM_SKILL_DISTANCE = 24CONDITION_PARAM_SKILL_SHIELD = 25CONDITION_PARAM_SKILL_FISHING = 26CONDITION_PARAM_STAT_MAXHEALTH = 27CONDITION_PARAM_STAT_MAXMANA = 28CONDITION_PARAM_STAT_SOUL = 29CONDITION_PARAM_STAT_MAGICLEVEL = 30CONDITION_PARAM_STAT_MAXHEALTHPERCENT = 31CONDITION_PARAM_STAT_MAXMANAPERCENT = 32CONDITION_PARAM_STAT_SOULPERCENT = 33CONDITION_PARAM_STAT_MAGICLEVELPERCENT = 34CONDITION_PARAM_SKILL_MELEEPERCENT = 35CONDITION_PARAM_SKILL_FISTPERCENT = 36CONDITION_PARAM_SKILL_CLUBPERCENT = 37CONDITION_PARAM_SKILL_SWORDPERCENT = 38CONDITION_PARAM_SKILL_AXEPERCENT = 39CONDITION_PARAM_SKILL_DISTANCEPERCENT = 40CONDITION_PARAM_SKILL_SHIELDPERCENT = 41CONDITION_PARAM_SKILL_FISHINGPERCENT = 42CONDITION_PARAM_PERIODICDAMAGE = 43CONDITION_PARAM_BUFF = 44CONDITION_PARAM_SUBID = 45COMBAT_PARAM_TYPE = 1COMBAT_PARAM_EFFECT = 2COMBAT_PARAM_DISTANCEEFFECT = 3COMBAT_PARAM_BLOCKSHIELD = 4COMBAT_PARAM_BLOCKARMOR = 5COMBAT_PARAM_TARGETCASTERORTOPMOST = 6COMBAT_PARAM_CREATEITEM = 7COMBAT_PARAM_AGGRESSIVE = 8COMBAT_PARAM_DISPEL = 9COMBAT_PARAM_USECHARGES = 10COMBAT_PARAM_TARGETPLAYERSORSUMMONS = 11COMBAT_PARAM_DIFFERENTAREADAMAGE = 12COMBAT_PARAM_HITEFFECT = 13COMBAT_PARAM_HITCOLOR = 14CALLBACK_PARAM_LEVELMAGICVALUE = 1CALLBACK_PARAM_SKILLVALUE = 2CALLBACK_PARAM_TARGETTILE = 3CALLBACK_PARAM_TARGETCREATURE = 4COMBAT_NONE = 0COMBAT_PHYSICALDAMAGE = 1PSYCHICDAMAGE = 2PSYDAMAGE = PSYCHICDAMAGEGRASSDAMAGE = 4FIREDAMAGE = 8COMBAT_UNDEFINEDDAMAGE = 16COMBAT_LIFEDRAIN = 32COMBAT_MANADRAIN = 64COMBAT_HEALING = 128WATERDAMAGE = 256ICEDAMAGE = 512NORMALDAMAGE = 1024GHOSTDAMAGE = 2048GROUNDDAMAGE = 3000ELECTRICDAMAGE = 3001ROCKDAMAGE = 3002FLYDAMAGE = 3003FLYINGDAMAGE = FLYDAMAGEBUGDAMAGE = 3004FIGHTINGDAMAGE = 3005FIGHTDAMAGE = FIGHTINGDAMAGEDRAGONDAMAGE = 3006POISONDAMAGE = 3007VENOMDAMAGE = POISONDAMAGECONDITION_NONE = 0CONDITION_POISON = 1CONDITION_FIRE = 2CONDITION_ENERGY = 4CONDITION_PHYSICAL = 8CONDITION_HASTE = 16CONDITION_PARALYZE = 32CONDITION_OUTFIT = 64CONDITION_INVISIBLE = 128CONDITION_LIGHT = 256CONDITION_MANASHIELD = 512CONDITION_INFIGHT = 1024CONDITION_DRUNK = 2048CONDITION_EXHAUST = 4096CONDITION_FOOD = 8192CONDITION_REGENERATION = 8192CONDITION_SOUL = 16384CONDITION_DROWN = 32768CONDITION_MUTED = 65536CONDITION_ATTRIBUTES = 131072CONDITION_FREEZING = 262144CONDITION_DAZZLED = 524288CONDITION_CURSED = 1048576CONDITION_PACIFIED = 2097152CONDITION_GAMEMASTER = 4194304CONDITION_HUNTING = 8388608CONDITION_TEST = 16777216CONDITION_ELECTRIC = 33554432CONDITION_ROCK = 67108864CONDITION_FLY = 134217728CONDITION_FLYING = CONDITION_FLYCONDITION_FIGHT = 268435456CONDITION_FIGHTING = CONDITION_FIGHTCONDITION_DRAGON = 536870912CONDITION_VENOM = 1073741824CONDITION_BUG = 2147483648EXHAUST_OTHER = 0EXHAUST_COMBAT = 1EXHAUST_HEALING = 2EXHAUST_WEAPON = 3MUTED_BUFFER = 0MUTED_YELL = 1MUTED_TRADE = 2MUTED_TRADE_ROOK = 3GAMEMASTER_INVISIBLE = 0GAMEMASTER_IGNORE = 1GAMEMASTER_TELEPORT = 2CONST_SLOT_FIRST = 1CONST_SLOT_HEAD = CONST_SLOT_FIRSTCONST_SLOT_NECKLACE = 2CONST_SLOT_BACKPACK = 3CONST_SLOT_ARMOR = 4CONST_SLOT_RIGHT = 5CONST_SLOT_LEFT = 6CONST_SLOT_LEGS = 7CONST_SLOT_FEET = 8CONST_SLOT_RING = 9CONST_SLOT_AMMO = 10CONST_SLOT_LAST = CONST_SLOT_AMMOCONST_ME_DRAWBLOOD = 0CONST_ME_LOSEENERGY = 1CONST_ME_POFF = 2CONST_ME_BLOCKHIT = 3CONST_ME_EXPLOSIONAREA = 4CONST_ME_EXPLOSIONHIT = 5CONST_ME_FIREAREA = 6CONST_ME_YELLOW_RINGS = 7CONST_ME_GREEN_RINGS = 8CONST_ME_HITAREA = 9CONST_ME_TELEPORT = 21CONST_ME_ENERGYHIT = 11CONST_ME_MAGIC_BLUE = 12CONST_ME_MAGIC_RED = 13CONST_ME_MAGIC_GREEN = 14CONST_ME_HITBYFIRE = 15CONST_ME_HITBYPOISON = 16CONST_ME_MORTAREA = 17CONST_ME_SOUND_GREEN = 18CONST_ME_SOUND_RED = 19CONST_ME_POISONAREA = 20CONST_ME_SOUND_YELLOW = 10CONST_ME_SOUND_PURPLE = 22CONST_ME_SOUND_BLUE = 23CONST_ME_SOUND_WHITE = 24CONST_ME_BUBBLES = 25CONST_ME_CRAPS = 26CONST_ME_GIFT_WRAPS = 27CONST_ME_FIREWORK_YELLOW = 28CONST_ME_FIREWORK_RED = 29CONST_ME_FIREWORK_BLUE = 30CONST_ME_STUN = 31CONST_ME_SLEEP = 32CONST_ME_WATERCREATURE = 33CONST_ME_GROUNDSHAKER = 34CONST_ME_HEARTS = 35CONST_ME_FIREATTACK = 36CONST_ME_ENERGYAREA = 37CONST_ME_SMALLCLOUDS = 38CONST_ME_HOLYDAMAGE = 39CONST_ME_BIGCLOUDS = 40CONST_ME_ICEAREA = 41CONST_ME_ICETORNADO = 42CONST_ME_ICEATTACK = 43CONST_ME_STONES = 44CONST_ME_SMALLPLANTS = 45CONST_ME_CARNIPHILA = 46CONST_ME_PURPLEENERGY = 47CONST_ME_YELLOWENERGY = 48CONST_ME_HOLYAREA = 49CONST_ME_BIGPLANTS = 50CONST_ME_CAKE = 51CONST_ME_GIANTICE = 52CONST_ME_WATERSPLASH = 53CONST_ME_PLANTATTACK = 54CONST_ME_TUTORIALARROW = 55CONST_ME_TUTORIALSQUARE = 56CONST_ME_MIRRORHORIZONTAL = 57CONST_ME_MIRRORVERTICAL = 58CONST_ME_SKULLHORIZONTAL = 59CONST_ME_SKULLVERTICAL = 60CONST_ME_ASSASSIN = 61CONST_ME_STEPSHORIZONTAL = 62CONST_ME_BLOODYSTEPS = 63CONST_ME_STEPSVERTICAL = 64CONST_ME_YALAHARIGHOST = 65CONST_ME_BATS = 66CONST_ME_SMOKE = 67CONST_ME_INSECTS = 68CONST_ME_INSECTS2a = 69CONST_ME_INSECTS3a = 70CONST_ME_INSECTS4a = 71CONST_ME_INSECTS4b = 72CONST_ME_INSECTS4c = 73CONST_ME_INSECTS4 = 74CONST_ME_INSECTS4d = 75CONST_ME_INSECTS4e = 76CONST_ME_INSECTS4f = 77CONST_ME_INSECTS4g = 78CONST_ME_INSECTS4h = 79CONST_ME_INSECTS4i = 80CONST_ME_INSECTS4j = 81CONST_ME_INSECTS4k = 82CONST_ME_INSECTS4l = 83CONST_ME_INSECTS4m = 84CONST_ME_INSECTS4n = 85CONST_ME_INSECTS4o = 86CONST_ME_INSECTS4p = 87CONST_ME_INSECTS4q = 88CONST_ME_INSECTS4r = 89CONST_ME_INSECTS4s = 90CONST_ME_INSECTS4t = 91CONST_ME_INSECTS4u = 92CONST_ME_INSECTS4v = 93CONST_ME_INSECTS4x = 94CONST_ME_INSECTS4w = 95CONST_ME_INSECTS4y = 96CONST_ME_INSECTS4z = 97CONST_ME_INSECTS41 = 98CONST_ME_INSECTS42 = 99CONST_ME_INSECTS43 = 100CONST_ME_INSECTS44 = 101CONST_ME_INSECTS45 = 102CONST_ME_INSECTS46 = 103CONST_ME_INSECTS47 = 104CONST_ME_INSECTS48 = 105CONST_ME_INSECTS49 = 106CONST_ME_INSECTS4a1 = 107CONST_ME_INSECTS4a2 = 108CONST_ME_INSECTS4a3 = 109CONST_ME_INSECTS4a4 = 110CONST_ME_INSECTS4a5 = 111CONST_ME_INSECTS4a6 = 112CONST_ME_INSECTS4a7 = 113CONST_ME_INSECTS4a8 = 114CONST_ME_INSECTS4a9 = 115CONST_ME_INSECTS4ab = 116CONST_ME_INSECTS4ac = 117CONST_ME_INSECTS4ad = 118CONST_ME_INSECTS4ae = 119CONST_ME_INSECTS4af = 120CONST_ME_INSECTS4ag = 121CONST_ME_INSECTS4ah = 122CONST_ME_INSECTS4ai = 123CONST_ME_INSECTS4aj = 124CONST_ME_INSECTS4ak = 125CONST_ME_INSECTS4al = 126CONST_ME_INSECTS4am = 127CONST_ME_INSECTS4an = 128CONST_ME_INSECTS4ao = 129CONST_ME_INSECTS4ap = 130CONST_ME_INSECTS4aq = 131CONST_ME_INSECTS4ar = 132CONST_ME_INSECTS4as = 133CONST_ME_INSECTS4at = 134CONST_ME_INSECTS4au = 135CONST_ME_INSECTS4av = 136CONST_ME_INSECTS4ax = 137CONST_ME_INSECTS4aw = 138CONST_ME_INSECTS4ay = 139CONST_ME_INSECTS4az = 140CONST_ME_INSECTS4ba = 141CONST_ME_INSECTS4bb = 142CONST_ME_INSECTS4bc = 143CONST_ME_INSECTS4bd = 144CONST_ME_INSECTS4be = 145CONST_ME_INSECTS4bf = 146CONST_ME_INSECTS4bg = 147CONST_ME_INSECTS4bh = 148CONST_ME_INSECTS4bi = 149CONST_ME_INSECTS4bj = 150CONST_ME_INSECTS4bk = 151CONST_ME_INSECTS4bl = 152CONST_ME_INSECTS4bm = 153CONST_ME_INSECTS4bn = 154CONST_ME_INSECTS4bo = 155CONST_ME_INSECTS4bp = 156CONST_ME_INSECTS4bq = 157CONST_ME_INSECTS4br = 158CONST_ME_INSECTS4bs = 159CONST_ME_INSECTS4bt = 160CONST_ME_INSECTS4bu = 161CONST_ME_INSECTS4bv = 162CONST_ME_INSECTS4bx = 163CONST_ME_INSECTS4bw = 164CONST_ME_INSECTS4by = 165CONST_ME_INSECTS4bz = 166CONST_ME_INSECTS4cac = 167CONST_ME_INSECTS4ca = 168CONST_ME_INSECTS4cb = 169CONST_ME_INSECTS4cc = 170CONST_ME_INSECTS4cd = 171CONST_ME_INSECTS4ce = 172CONST_ME_INSECTS4cf = 173CONST_ME_INSECTS4cg = 174CONST_ME_INSECTS4ch = 175CONST_ME_INSECTS4ci = 176CONST_ME_INSECTS4cj = 177CONST_ME_INSECTS4ck = 178CONST_ME_INSECTS4cl = 179CONST_ME_INSECTS4cm = 180CONST_ME_INSECTS4cn = 181CONST_ME_INSECTS4co = 182CONST_ME_INSECTS4cp = 183CONST_ME_INSECTS4cq = 184CONST_ME_INSECTS4cr = 185CONST_ME_INSECTS4cs = 186CONST_ME_INSECTS4ct = 187CONST_ME_INSECTS4cu = 188CONST_ME_INSECTS4cv = 189CONST_ME_INSECTSc4x = 190CONST_ME_INSECTSc4w = 191CONST_ME_INSECTSc4y = 192CONST_ME_INSECTS4cz = 193CONST_ME_INSECTS4da = 194CONST_ME_INSECTS4db = 195CONST_ME_INSECTS4dc = 196CONST_ME_INSECTS4dd = 197CONST_ME_INSECTS4de = 198CONST_ME_INSECTS4df = 199CONST_ME_INSECTS4dg = 201CONST_ME_INSECTS4dh = 202CONST_ME_INSECTS4di = 203CONST_ME_INSECTS4dj = 204CONST_ME_INSECTS4dk = 205CONST_ME_INSECTS4dl = 206CONST_ME_INSECTS4dm = 207CONST_ME_INSECTS4dn = 208CONST_ME_INSECTS4do = 209CONST_ME_INSECTS4dp = 210CONST_ME_INSECTS4dq = 211CONST_ME_INSECTS4dr = 212CONST_ME_INSECTS4ds = 213CONST_ME_INSECTS4dt = 214CONST_ME_INSECTS4du = 215CONST_ME_INSECTS4dv = 216CONST_ME_INSECTS4dx = 217CONST_ME_INSECTS4dw = 218CONST_ME_INSECTS4dy = 219CONST_ME_INSECTS4dz = 220CONST_ME_NONE = 255CONST_ME_LAST = CONST_ME_INSECTS4dzCONST_ANI_SPEAR = 0CONST_ANI_BOLT = 1CONST_ANI_ARROW = 2CONST_ANI_FIRE = 3CONST_ANI_ENERGY = 4CONST_ANI_POISONARROW = 5CONST_ANI_BURSTARROW = 6CONST_ANI_THROWINGSTAR = 7CONST_ANI_THROWINGKNIFE = 8CONST_ANI_SMALLSTONE = 9CONST_ANI_DEATH = 10CONST_ANI_LARGEROCK = 11CONST_ANI_SNOWBALL = 12CONST_ANI_POWERBOLT = 13CONST_ANI_POISON = 14CONST_ANI_INFERNALBOLT = 15CONST_ANI_HUNTINGSPEAR = 16CONST_ANI_ENCHANTEDSPEAR = 17CONST_ANI_REDSTAR = 18CONST_ANI_GREENSTAR = 19CONST_ANI_ROYALSPEAR = 20CONST_ANI_SNIPERARROW = 21CONST_ANI_ONYXARROW = 22CONST_ANI_PIERCINGBOLT = 23CONST_ANI_WHIRLWINDSWORD = 24CONST_ANI_WHIRLWINDAXE = 25CONST_ANI_WHIRLWINDCLUB = 26CONST_ANI_ETHEREALSPEAR = 27CONST_ANI_ICE = 28CONST_ANI_EARTH = 29CONST_ANI_HOLY = 30CONST_ANI_SUDDENDEATH = 31CONST_ANI_FLASHARROW = 32CONST_ANI_FLAMMINGARROW = 33CONST_ANI_SHIVERARROW = 34CONST_ANI_ENERGYBALL = 35CONST_ANI_SMALLICE = 36CONST_ANI_SMALLHOLY = 37CONST_ANI_SMALLEARTH = 38CONST_ANI_EARTHARROW = 39CONST_ANI_EXPLOSION = 40CONST_ANI_CAKE = 41CONST_ANI_WEAPONTYPE = 254CONST_ANI_NONE = 255CONST_ANI_LAST = CONST_ANI_CAKETALKTYPE_FIRST = 1TALKTYPE_SAY = TALKTYPE_FIRSTTALKTYPE_WHISPER = 2TALKTYPE_YELL = 3TALKTYPE_PRIVATE_PN = 4TALKTYPE_PRIVATE_NP = 5TALKTYPE_PRIVATE = 6TALKTYPE_CHANNEL_Y = 7TALKTYPE_CHANNEL_W = 8TALKTYPE_RVR_CHANNEL = 9TALKTYPE_RVR_ANSWER = 10TALKTYPE_RVR_CONTINUE = 11TALKTYPE_BROADCAST = 12TALKTYPE_CHANNEL_RN = 13TALKTYPE_PRIVATE_RED = 14TALKTYPE_CHANNEL_O = 15TALKTYPE_CHANNEL_RA = 17TALKTYPE_MONSTER = 19TALKTYPE_MONSTER_YELL = 20TALKTYPE_LAST = TALKTYPE_MONSTER_YELLTALKTYPE_TYPES = { ["say"] = TALKTYPE_SAY, ["whisper"] = TALKTYPE_WHISPER, ["yell"] = TALKTYPE_YELL, ["private-playernpc"] = TALKTYPE_PRIVATE_PN, ["private-npcplayer"] = TALKTYPE_PRIVATE_NP, ["private"] = TALKTYPE_PRIVATE, ["channel-yellow"] = TALKTYPE_CHANNEL_Y, ["channel-white"] = TALKTYPE_CHANNEL_W, ["rvr-channel"] = TALKTYPE_RVR_CHANNEL, ["rvr-answer"] = TALKTYPE_RVR_ANSWER, ["rvr-continue"] = TALKTYPE_RVR_CONTINUE, ["broadcast"] = TALKTYPE_BROADCAST, ["channel-red"] = TALKTYPE_CHANNEL_RN, ["channel-orange"] = TALKTYPE_CHANNEL_O, ["channel-redanonymous"] = TALKTYPE_CHANNEL_RA, ["monster"] = TALKTYPE_MONSTER, ["monster-yell"] = TALKTYPE_MONSTER_YELL}MESSAGE_FIRST = 18MESSAGE_STATUS_CONSOLE_RED = MESSAGE_FIRSTMESSAGE_EVENT_ORANGE = 19MESSAGE_STATUS_CONSOLE_ORANGE = 20MESSAGE_STATUS_WARNING = 21MESSAGE_EVENT_ADVANCE = 22MESSAGE_EVENT_DEFAULT = 23MESSAGE_STATUS_DEFAULT = 24MESSAGE_INFO_DESCR = 25MESSAGE_STATUS_SMALL = 26MESSAGE_STATUS_CONSOLE_BLUE = 27MESSAGE_LAST = MESSAGE_STATUS_CONSOLE_BLUEMESSAGE_TYPES = { ["advance"] = MESSAGE_EVENT_ADVANCE, ["event"] = MESSAGE_EVENT_DEFAULT, ["white"] = MESSAGE_EVENT_DEFAULT, ["orange"] = MESSAGE_STATUS_CONSOLE_ORANGE, ["info"] = MESSAGE_INFO_DESCR, ["green"] = MESSAGE_INFO_DESCR, ["small"] = MESSAGE_STATUS_SMALL, ["blue"] = MESSAGE_STATUS_CONSOLE_BLUE, ["red"] = MESSAGE_STATUS_CONSOLE_RED, ["warning"] = MESSAGE_STATUS_WARNING, ["status"] = MESSAGE_STATUS_DEFAULT}COLOR_BLACK = 0COLOR_BLUE = 5COLOR_GREEN = 18COLOR_TEAL = 35COLOR_LIGHTGREEN = 66COLOR_DARKBROWN = 78COLOR_LIGHTBLUE = 89COLOR_DARKPURPLE = 112COLOR_BROWN = 120COLOR_GREY = 129COLOR_DARKRED = 144COLOR_DARKPINK = 152COLOR_PURPLE = 154COLOR_DARKORANGE = 156COLOR_RED = 180COLOR_PINK = 190COLOR_ORANGE = 192COLOR_DARKYELLOW = 205COLOR_YELLOW = 210COLOR_WHITE = 215COLOR_WATER = 227COLOR_NORMAL = 128COLOR_FIRE2 = 192COLOR_FIGHTING = 156COLOR_FLYING = 173COLOR_GRASS = 25COLOR_POISON = 147COLOR_ELECTRIC = 210COLOR_GROUND = 78COLOR_PSYCHIC = 197COLOR_ROCK = 120COLOR_ICE = 35COLOR_BUG = 18COLOR_DRAGON = 220COLOR_GHOST = 215COLOR_NONE = 255MAPMARK_TICK = 0MAPMARK_QUESTION = 1MAPMARK_EXCLAMATION = 2MAPMARK_STAR = 3MAPMARK_CROSS = 4MAPMARK_TEMPLE = 5MAPMARK_KISS = 6MAPMARK_SHOVEL = 7MAPMARK_SWORD = 8MAPMARK_FLAG = 9MAPMARK_LOCK = 10MAPMARK_BAG = 11MAPMARK_SKULL = 12MAPMARK_DOLLAR = 13MAPMARK_REDNORTH = 14MAPMARK_REDSOUTH = 15MAPMARK_REDEAST = 16MAPMARK_REDWEST = 17MAPMARK_GREENNORTH = 18MAPMARK_GREENSOUTH = 19ITEM_TYPE_DEPOT = 1ITEM_TYPE_MAILBOX = 2ITEM_TYPE_TRASHHOLDER = 3ITEM_TYPE_CONTAINER = 4ITEM_TYPE_DOOR = 5ITEM_TYPE_MAGICFIELD = 6ITEM_TYPE_TELEPORT = 7ITEM_TYPE_BED = 8ITEM_TYPE_LEVELDOOR = 9CONST_PROP_BLOCKSOLID = 0CONST_PROP_HASHEIGHT = 1CONST_PROP_BLOCKPROJECTILE = 2CONST_PROP_BLOCKPATHFIND = 3CONST_PROP_ISVERTICAL = 4CONST_PROP_ISHORIZONTAL = 5CONST_PROP_MOVEABLE = 6CONST_PROP_BLOCKINGANDNOTMOVEABLE = 7CONST_PROP_SUPPORTHANGABLE = 8MANAGER_NONE = 0MANAGER_NEW = 1MANAGER_ACCOUNT = 2MANAGER_NAMELOCK = 3PLAYERSEX_FEMALE = 0PLAYERSEX_MALE = 1PLAYERSEX_GAMEMASTER = 2PLAYERLOSS_EXPERIENCE = 0PLAYERLOSS_MANA = 1PLAYERLOSS_SKILLS = 2PLAYERLOSS_CONTAINERS = 3PLAYERLOSS_ITEMS = 4STATSCHANGE_HEALTHGAIN = 0STATSCHANGE_HEALTHLOSS = 1STATSCHANGE_MANAGAIN = 2STATSCHANGE_MANALOSS = 3SKILL_FIST = 0SKILL_CLUB = 1SKILL_SWORD = 2SKILL_AXE = 3SKILL_DISTANCE = 4SKILL_SHIELD = 5SKILL_FISHING = 6SKILL__MAGLEVEL = 7SKILL__LEVEL = 8SKILL_NAMES = { [sKILL_FIST] = "fist fighting", [sKILL_CLUB] = "club fighting", [sKILL_SWORD] = "sword fighting", [sKILL_AXE] = "axe fighting", [sKILL_DISTANCE] = "distance fighting", [sKILL_SHIELD] = "shielding", [sKILL_FISHING] = "fishing", [sKILL__LEVEL] = "level", [sKILL__MAGLEVEL] = "magic level"}SKILL_IDS = { ["fist"] = SKILL_FIST, ["club"] = SKILL_CLUB, ["sword"] = SKILL_SWORD, ["axe"] = SKILL_AXE, ["distance"] = SKILL_DISTANCE, ["dist"] = SKILL_DISTANCE, ["shielding"] = SKILL_SHIELD, ["shield"] = SKILL_SHIELD, ["fishing"] = SKILL_FISHING, ["fish"] = SKILL_FISHING, ["level"] = SKILL__LEVEL, ["magic"] = SKILL__MAGLEVEL}GUILDLEVEL_MEMBER = 1GUILDLEVEL_VICE = 2GUILDLEVEL_LEADER = 3SKULL_NONE = 0SKULL_YELLOW = 1SKULL_GREEN = 2SKULL_WHITE = 3SKULL_RED = 4SKULL_BLACK = 5SKULL_LAST = SKULL_BLACKSHIELD_NONE = 0SHIELD_WHITEYELLOW = 1SHIELD_WHITEBLUE = 2SHIELD_BLUE = 3SHIELD_YELLOW = 4SHIELD_BLUE_SHAREDEXP = 5SHIELD_YELLOW_SHAREDEXP = 6SHIELD_BLUE_NOSHAREDEXP_BLINK = 7SHIELD_YELLOW_NOSHAREDEXP_BLINK = 8SHIELD_BLUE_NOSHAREDEXP = 9SHIELD_YELLOW_NOSHAREDEXP = 10SHIELD_LAST = SHIELD_YELLOW_NOSHAREDEXPWORLDTYPE_NO_PVP = 1WORLDTYPE_PVP = 2WORLDTYPE_PVP_ENFORCED = 3DATABASE_ENGINE_NONE = 0DATABASE_ENGINE_MYSQL = 1DATABASE_ENGINE_SQLITE = 2DATABASE_ENGINE_POSTGRESQL = 3DATABASE_ENGINE_ODBC = 4GAMESTATE_STARTUP = 1GAMESTATE_INIT = 2GAMESTATE_NORMAL = 3GAMESTATE_MAINTAIN = 4GAMESTATE_CLOSED = 5GAMESTATE_CLOSING = 6GAMESTATE_SHUTDOWN = 7RELOAD_ACTIONS = 1RELOAD_CHAT = 2RELOAD_CONFIG = 3RELOAD_CREATUREEVENTS = 4RELOAD_GAMESERVERS = 5RELOAD_GLOBALEVENTS = 6RELOAD_GROUPS = 7RELOAD_HIGHSCORES = 8RELOAD_HOUSEPRICES = 9RELOAD_ITEMS = 10RELOAD_MONSTERS = 11RELOAD_MOVEEVENTS = 12RELOAD_NPCS = 13RELOAD_OUTFITS = 14RELOAD_QUESTS = 15RELOAD_RAIDS = 16RELOAD_SPELLS = 17RELOAD_STAGES = 18RELOAD_TALKACTIONS = 19RELOAD_VOCATIONS = 20RELOAD_WEAPONS = 21RELOAD_MODS = 22RELOAD_ALL = 23BAN_NONE = 0BAN_IP = 1BAN_PLAYER = 2BAN_ACCOUNT = 3BAN_NOTATION = 4BAN_STATEMENT = 5PLAYERBAN_NONE = 0PLAYERBAN_REPORT = 1PLAYERBAN_LOCK = 2PLAYERBAN_BANISHMENT = 3CHANNEL_GUILD = 0CHANNEL_PARTY = 1CHANNEL_RVR = 3CHANNEL_HELP = 9CHANNEL_DEFAULT = 0xFFFECHANNEL_PRIVATE = 0xFFFFSTACKPOS_GROUND = 0STACKPOS_TOP_CREATURE = 253STACKPOS_TOP_FIELD = 254STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE = 255WEAPON_NONE = 0WEAPON_SWORD = 1WEAPON_CLUB = 2WEAPON_AXE = 3WEAPON_SHIELD = 4WEAPON_DIST = 5WEAPON_WAND = 6WEAPON_AMMO = 7WEAPON_FIST = 8ACTION_NOTATION = 0ACTION_NAMEREPORT = 1ACTION_BANISHMENT = 2ACTION_BANREPORT = 3ACTION_BANFINAL = 4ACTION_BANREPORTFINAL = 5ACTION_STATEMENT = 6ACTION_DELETION = 7ACTION_NAMELOCK = 8ACTION_BANLOCK = 9ACTION_BANLOCKFINAL = 10ACTION_PLACEHOLDER = 11ITEM_GOLD_COIN = 2148ITEM_PLATINUM_COIN = 2152ITEM_CRYSTAL_COIN = 2160ITEM_FISH = 2667ITEM_WORM = 3976ITEM_MECHANICAL_FISH = 10224ITEM_NAIL = 8309ITEM_MECHANICAL_FISHING_ROD = 10223ITEM_GREEN_PERCH = 7159ITEM_RAINBOW_TROUT = 7158ITEM_NORTHERN_PIKE = 2669ITEM_PARCEL = 2595ITEM_LABEL = 2599ITEM_GLOWING_SWITCH = 11060RETURNVALUE_DONTSHOWMESSAGE = 0RETURNVALUE_NOERROR = 1RETURNVALUE_NOTPOSSIBLE = 2RETURNVALUE_NOTENOUGHROOM = 3RETURNVALUE_PLAYERISPZLOCKED = 4RETURNVALUE_PLAYERISNOTINVITED = 5RETURNVALUE_CANNOTTHROW = 6RETURNVALUE_THEREISNOWAY = 7RETURNVALUE_DESTINATIONOUTOFREACH = 8RETURNVALUE_CREATUREBLOCK = 9RETURNVALUE_NOTMOVEABLE = 10RETURNVALUE_DROPTWOHANDEDITEM = 11RETURNVALUE_BOTHHANDSNEEDTOBEFREE = 12RETURNVALUE_CANONLYUSEONEWEAPON = 13RETURNVALUE_NEEDEXCHANGE = 14RETURNVALUE_CANNOTBEDRESSED = 15RETURNVALUE_PUTTHISOBJECTINYOURHAND = 16RETURNVALUE_PUTTHISOBJECTINBOTHHANDS = 17RETURNVALUE_TOOFARAWAY = 18RETURNVALUE_FIRSTGODOWNSTAIRS = 19RETURNVALUE_FIRSTGOUPSTAIRS = 20RETURNVALUE_CONTAINERNOTENOUGHROOM = 21RETURNVALUE_NOTENOUGHCAPACITY = 22RETURNVALUE_CANNOTPICKUP = 23RETURNVALUE_THISISIMPOSSIBLE = 24RETURNVALUE_DEPOTISFULL = 25RETURNVALUE_CREATUREDOESNOTEXIST = 26RETURNVALUE_CANNOTUSETHISOBJECT = 27RETURNVALUE_PLAYERWITHTHISNAMEISNOTONLINE = 28RETURNVALUE_NOTREQUIREDLEVELTOUSERUNE = 29RETURNVALUE_YOUAREALREADYTRADING = 30RETURNVALUE_THISPLAYERISALREADYTRADING = 31RETURNVALUE_YOUMAYNOTLOGOUTDURINGAFIGHT = 32RETURNVALUE_DIRECTPLAYERSHOOT = 33RETURNVALUE_NOTENOUGHLEVEL = 34RETURNVALUE_NOTENOUGHMAGICLEVEL = 35RETURNVALUE_NOTENOUGHMANA = 36RETURNVALUE_NOTENOUGHSOUL = 37RETURNVALUE_YOUAREEXHAUSTED = 38RETURNVALUE_PLAYERISNOTREACHABLE = 39RETURNVALUE_CANONLYUSETHISRUNEONCREATURES = 40RETURNVALUE_ACTIONNOTPERMITTEDINPROTECTIONZONE = 41RETURNVALUE_YOUMAYNOTATTACKTHISPLAYER = 42RETURNVALUE_YOUMAYNOTATTACKAPERSONINPROTECTIONZONE = 43RETURNVALUE_YOUMAYNOTATTACKAPERSONWHILEINPROTECTIONZONE = 44RETURNVALUE_YOUMAYNOTATTACKTHISCREATURE = 45RETURNVALUE_YOUCANONLYUSEITONCREATURES = 46RETURNVALUE_CREATUREISNOTREACHABLE = 47RETURNVALUE_TURNSECUREMODETOATTACKUNMARKEDPLAYERS = 48RETURNVALUE_YOUNEEDPREMIUMACCOUNT = 49RETURNVALUE_YOUNEEDTOLEARNTHISSPELL = 50RETURNVALUE_YOURVOCATIONCANNOTUSETHISSPELL = 51RETURNVALUE_YOUNEEDAWEAPONTOUSETHISSPELL = 52RETURNVALUE_PLAYERISPZLOCKEDLEAVEPVPZONE = 53RETURNVALUE_PLAYERISPZLOCKEDENTERPVPZONE = 54RETURNVALUE_ACTIONNOTPERMITTEDINANOPVPZONE = 55RETURNVALUE_YOUCANNOTLOGOUTHERE = 56RETURNVALUE_YOUNEEDAMAGICITEMTOCASTSPELL = 57RETURNVALUE_CANNOTCONJUREITEMHERE = 58RETURNVALUE_YOUNEEDTOSPLITYOURSPEARS = 59RETURNVALUE_NAMEISTOOAMBIGUOUS = 60RETURNVALUE_CANONLYUSEONESHIELD = 61RETURNVALUE_YOUARENOTTHEOWNER = 62RETURNVALUE_YOUMAYNOTCASTAREAONBLACKSKULL = 63RETURNVALUE_TILEISFULL = 64CONTAINER_POSITION = 0xFFFFEMPTY_STORAGE = -1EMPTY_RESULT = -1ITEMCOUNT_MAX = 100AUTOID_PLAYERS = 0x10000000AUTOID_MONSTERS = 0x40000000AUTOID_NPCS = 0x80000000PLAYERFLAG_CANNOTUSECOMBAT = 0PLAYERFLAG_CANNOTATTACKPLAYER = 1PLAYERFLAG_CANNOTATTACKMONSTER = 2PLAYERFLAG_CANNOTBEATTACKED = 3PLAYERFLAG_CANCONVINCEALL = 4PLAYERFLAG_CANSUMMONALL = 5PLAYERFLAG_CANILLUSIONALL = 6PLAYERFLAG_CANSENSEINVISIBILITY = 7PLAYERFLAG_IGNOREDBYMONSTERS = 8PLAYERFLAG_NOTGAININFIGHT = 9PLAYERFLAG_HASINFINITEMANA = 10PLAYERFLAG_HASINFINITESOUL = 11PLAYERFLAG_HASNOEXHAUSTION = 12PLAYERFLAG_CANNOTUSESPELLS = 13PLAYERFLAG_CANNOTPICKUPITEM = 14PLAYERFLAG_CANALWAYSLOGIN = 15PLAYERFLAG_CANBROADCAST = 16PLAYERFLAG_CANEDITHOUSES = 17PLAYERFLAG_CANNOTBEBANNED = 18PLAYERFLAG_CANNOTBEPUSHED = 19PLAYERFLAG_HASINFINITECAPACITY = 20PLAYERFLAG_CANPUSHALLCREATURES = 21PLAYERFLAG_CANTALKREDPRIVATE = 22PLAYERFLAG_CANTALKREDCHANNEL = 23PLAYERFLAG_TALKORANGEHELPCHANNEL = 24PLAYERFLAG_NOTGAINEXPERIENCE = 25PLAYERFLAG_NOTGAINMANA = 26PLAYERFLAG_NOTGAINHEALTH = 27PLAYERFLAG_NOTGAINSKILL = 28PLAYERFLAG_SETMAXSPEED = 29PLAYERFLAG_SPECIALVIP = 30PLAYERFLAG_NOTGENERATELOOT = 31PLAYERFLAG_CANTALKREDCHANNELANONYMOUS = 32PLAYERFLAG_IGNOREPROTECTIONZONE = 33PLAYERFLAG_IGNORESPELLCHECK = 34PLAYERFLAG_IGNOREWEAPONCHECK = 35PLAYERFLAG_CANNOTBEMUTED = 36PLAYERFLAG_ISALWAYSPREMIUM = 37PLAYERFLAG_CANANSWERRULEVIOLATIONS = 38PLAYERFLAG_39 = 39 -- ignorePLAYERFLAG_SHOWGROUPINSTEADOFVOCATION = 40PLAYERFLAG_HASINFINITESTAMINA = 41PLAYERFLAG_CANNOTMOVEITEMS = 42PLAYERFLAG_CANNOTMOVECREATURES = 43PLAYERFLAG_CANREPORTBUGS = 44PLAYERFLAG_45 = 45 -- ignorePLAYERFLAG_CANNOTBESEEN = 46PLAYERCUSTOMFLAG_ALLOWIDLE = 0PLAYERCUSTOMFLAG_CANSEEPOSITION = 1PLAYERCUSTOMFLAG_CANSEEITEMDETAILS = 2PLAYERCUSTOMFLAG_CANSEECREATUREDETAILS = 3PLAYERCUSTOMFLAG_NOTSEARCHABLE = 4PLAYERCUSTOMFLAG_GAMEMASTERPRIVILEGES = 5PLAYERCUSTOMFLAG_CANTHROWANYWHERE = 6PLAYERCUSTOMFLAG_CANPUSHALLITEMS = 7PLAYERCUSTOMFLAG_CANMOVEANYWHERE = 8PLAYERCUSTOMFLAG_CANMOVEFROMFAR = 9PLAYERCUSTOMFLAG_CANLOGINMULTIPLECHARACTERS = 10PLAYERCUSTOMFLAG_HASFULLLIGHT = 11PLAYERCUSTOMFLAG_CANLOGOUTANYTIME = 12PLAYERCUSTOMFLAG_HIDELEVEL = 13PLAYERCUSTOMFLAG_ISPROTECTED = 14PLAYERCUSTOMFLAG_ISIMMUNE = 15PLAYERCUSTOMFLAG_NOTGAINSKULL = 16PLAYERCUSTOMFLAG_NOTGAINUNJUSTIFIED = 17PLAYERCUSTOMFLAG_HIDELEVEL = 18PLAYERCUSTOMFLAG_IGNOREPACIFICATION = 19PLAYERCUSTOMFLAG_CANSTAIRHOP = 20PLAYERCUSTOMFLAG_CANTURNHOP = 21PLAYERCUSTOMFLAG_IGNOREHOUSERENT = 22PLAYERCUSTOMFLAG_CANWEARALLADDONS = 23maleOutfits = {159, 129, 130, 131, 132, 133, 134, 143, 144, 145, 146, 151, 152, 153, 154, 251, 268, 273, 278, 289, 325, 328, 335}femaleOutfits = {160, 137, 138, 139, 140, 141, 142, 147, 148, 149, 150, 155, 156, 157, 158, 252, 269, 270, 279, 288, 324, 329, 336}doors = {[1209] = 1211, [1210] = 1211, [1212] = 1214, [1213] = 1214, [1219] = 1220, [1221] = 1222, [1231] = 1233, [1232] = 1233, [1234] = 1236, [1235] = 1236, [1237] = 1238, [1239] = 1240, [1249] = 1251, [1250] = 1251, [1252] = 1254, [1253] = 1254, [1539] = 1540, [1541] = 1542, [3535] = 3537, [3536] = 3537, [3538] = 3539, [3544] = 3546, [3545] = 3546, [3547] = 3548, [4913] = 4915, [4914] = 4915, [4916] = 4918, [4917] = 4918, [5082] = 5083, [5084] = 5085, [5098] = 5100, [5099] = 5100, [5101] = 5102, [5107] = 5109, [5108] = 5109, [5110] = 5111, [5116] = 5118, [5117] = 5118, [5119] = 5120, [5125] = 5127, [5126] = 5127, [5128] = 5129, [5134] = 5136, [5135] = 5136, [5137] = 5139, [5138] = 5139, [5140] = 5142, [5141] = 5142, [5143] = 5145, [5144] = 5145, [5278] = 5280, [5279] = 5280, [5281] = 5283, [5282] = 5283, [5284] = 5285, [5286] = 5287, [5515] = 5516, [5517] = 5518, [5732] = 5734, [5733] = 5734, [5735] = 5737, [5736] = 5737, [6192] = 6194, [6193] = 6194, [6195] = 6197, [6196] = 6197, [6198] = 6199, [6200] = 6201, [6249] = 6251, [6250] = 6251, [6252] = 6254, [6253] = 6254, [6255] = 6256, [6257] = 6258, [6795] = 6796, [6797] = 6798, [6799] = 6800, [6801] = 6802, [6891] = 6893, [6892] = 6893, [6894] = 6895, [6900] = 6902, [6901] = 6902, [6903] = 6904, [7033] = 7035, [7034] = 7035, [7036] = 7037, [7042] = 7044, [7043] = 7044, [7045] = 7046, [7054] = 7055, [7056] = 7057, [8541] = 8543, [8542] = 8543, [8544] = 8546, [8545] = 8546, [8547] = 8548, [8549] = 8550, [9165] = 9167, [9166] = 9167, [9168] = 9170, [9169] = 9170, [9171] = 9172, [9173] = 9174, [9267] = 9269, [9268] = 9269, [9270] = 9272, [9271] = 9272, [9273] = 9274, [9275] = 9276, [10276] = 10277, [10274] = 10275, [10268] = 10270, [10269] = 10270, [10271] = 10273, [10272] = 10273, [10471] = 10472, [10480] = 10481, [10477] = 10479, [10478] = 10479, [10468] = 10470, [10469] = 10470, [10774] = 10776, [10775] = 10776, [10779] = 10780, [10781] = 10782, [10783] = 10785, [10784] = 10785, [10788] = 10789, [10790] = 10791}closingDoors = {1224, 1226, 1228, 1230, 1242, 1244, 1246, 1248, 1256, 1258, 1260, 1262, 3541, 3543, 3550, 3552, 5104, 5106, 5113, 5115, 5122, 5124, 5131, 5133, 5289, 5291, 5293, 5295, 6203, 6205, 6207, 6209, 6260, 6262, 6264, 6266, 6897, 6899, 6906, 6908, 7039, 7041, 7048, 7050, 8552, 8554, 8556, 8558, 9176, 9178, 9180, 9182, 9278, 9280, 9282, 9284, 10279, 10281, 10283, 10285, 10474, 10476, 10483, 10485, 10780, 10782, 10789, 10791}verticalOpenDoors = {1211, 1220, 1224, 1228, 1233, 1238, 1242, 1246, 1251, 1256, 1260, 1540, 3546, 3548, 3550, 3552, 4915, 5083, 5109, 5111, 5113, 5115, 5127, 5129, 5131, 5133, 5142, 5145, 5283, 5285, 5289, 5293, 5516, 5737, 5749, 6194, 6199, 6203, 6207, 6251, 6256, 6260, 6264, 6798, 6802, 6902, 6904, 6906, 6908, 7044, 7046, 7048, 7050, 7055, 8543, 8548, 8552, 8556, 9167, 9172, 9269, 9274, 9278, 9282, 10270, 10275, 10279, 10283, 10479, 10481, 10483, 10485, 10789, 10791}horizontalOpenDoors = {1214, 1222, 1226, 1230, 1236, 1240, 1244, 1248, 1254, 1258, 1262, 1542, 3537, 3539, 3541, 3543, 4918, 5085, 5100, 5102, 5104, 5106, 5118, 5120, 5122, 5124, 5136, 5139, 5280, 5287, 5291, 5295, 5518, 5734, 5746, 6197, 6201, 6205, 6209, 6254, 6258, 6262, 6266, 6796, 6800, 6893, 6895, 6897, 6899, 7035, 7037, 7039, 7041, 7057, 8546, 8550, 8554, 8558, 9170, 9174, 9272, 9276, 9280, 9284, 10273, 10277, 10281, 10285, 10470, 10472, 10474, 10476, 10780, 10782}specialDoors = {1223, 1225, 1241, 1243, 1255, 1257, 3542, 3551, 5105, 5114, 5123, 5132, 5288, 5290, 5745, 5748, 6202, 6204, 6259, 6261, 6898, 6907, 7040, 7049, 8551, 8553, 9175, 9177, 9277, 9279, 10278, 10280, 10475, 10484, 10781, 10790}keys = {2086, 2087, 2088, 2089, 2090, 2091, 2092, 10032, 10091}enchantableGems = {2147, 2146, 2149, 2150}enchantableItems = {2383, 7383, 7384, 7406, 7402, 2429, 2430, 7389, 7380, 2454, 2423, 2445, 7415, 7392, 2391, 2544, 8905}enchantingAltars = { {7504, 7505, 7506, 7507}, {7508, 7509, 7510, 7511}, {7516, 7517, 7518, 7519}, {7512, 7513, 7514, 7515}}enchantedGems = {7760, 7759, 7761, 7762}enchantedItems = { [2383] = {7744, 7763, 7854, 7869}, [7383] = {7745, 7764, 7855, 7870}, [7384] = {7746, 7765, 7856, 7871}, [7406] = {7747, 7766, 7857, 7872}, [7402] = {7748, 7767, 7858, 7873}, [2429] = {7749, 7768, 7859, 7874}, [2430] = {7750, 7769, 7860, 7875}, [7389] = {7751, 7770, 7861, 7876}, [7380] = {7752, 7771, 7862, 7877}, [2454] = {7753, 7772, 7863, 7878}, [2423] = {7754, 7773, 7864, 7879}, [2445] = {7755, 7774, 7865, 7880}, [7415] = {7756, 7775, 7866, 7881}, [7392] = {7757, 7776, 7867, 7882}, [2391] = {7758, 7777, 7868, 7883}, [2544] = {7840, 7839, 7850, 7838}, [8905] = {8906, 8907, 8909, 8908}} agr na sua data/creaturescript exp.lua coloque isso! local expcond = createConditionObject(CONDITION_INFIGHT) setConditionParam(expcond, CONDITION_PARAM_TICKS, 4500) local efeitos = {[COMBAT_PHYSICALDAMAGE] = 3,[ELECTRICDAMAGE] = 3,[WATERDAMAGE] = 3,[FIREDAMAGE] = 3,[GRASSDAMAGE] = 3,[iCEDAMAGE] = 3,[ROCKDAMAGE] = 3,[FLYDAMAGE] = 3,[FIGHTDAMAGE] = 3,[POISONDAMAGE] = 3,[DRAGONDAMAGE] = 3,[bUGDAMAGE] = 3,[NORMALDAMAGE] = 3,[GHOSTDAMAGE] = 3,[GROUNDDAMAGE] = 3,[PSYCHICDAMAGE] = 3,}function onStatsChange(cid, attacker, enps, combatee, value)if combatee == PSYCHICDAMAGE thencor = COLOR_PSYCHICelseif combatee == GRASSDAMAGE thencor = COLOR_GRASSelseif combatee == FIREDAMAGE thencor = COLOR_FIRE2elseif combatee == WATERDAMAGE thencor = COLOR_WATERelseif combatee == ICEDAMAGE thencor = COLOR_ICEelseif combatee == NORMALDAMAGE thencor = COLOR_NORMALelseif combatee == FLYDAMAGE thencor = COLOR_FLYINGelseif combatee == GHOSTDAMAGE thencor = COLOR_GHOSTelseif combatee == GROUNDDAMAGE thencor = COLOR_GROUNDelseif combatee == ELECTRICDAMAGE thencor = COLOR_ELECTRICelseif combatee == ROCKDAMAGE thencor = COLOR_ROCKelseif combatee == BUGDAMAGE thencor = COLOR_BUGelseif combatee == FIGHTDAMAGE thencor = COLOR_FIGHTINGelseif combatee == DRAGONDAMAGE thencor = COLOR_DRAGONelseif combatee == POISONDAMAGE thencor = COLOR_POISONelseif getCreatureName(cid) == "Kakuna" or getCreatureName(cid) == "Metapod" thencor = COLOR_BUGelseif getCreatureName(cid) == "Golem" or getCreatureName(cid) == "Graveler" or getCreatureName(cid) == "Geodude" thencor = COLOR_ROCKelsecor = NONEendlocal cores = corif getPlayerStorageValue(cid, 33) >= 1 then -- funcionamento do self destructionif isCreature(attacker) thenreturn falseendreturn trueendif getPlayerStorageValue(cid, 34) >= 1 then -- REFLECTif combatee ~= COMBAT_PHYSICALDAMAGE thenif isCreature(attacker) thendoSendMagicEffect(getThingPos(cid), 135)doSendMagicEffect(getThingPos(attacker), 3)doSendAnimatedText(getThingPos(cid), "REFLECT", 215)doCreatureAddHealth(attacker, -value, 3, 191) -- 3 = efeito do reflectsetPlayerStorageValue(cid, 34, 0)return falseendendendif getPlayerStorageValue(cid, 35) >= 1 then -- MAGIAS DE MISS, STRING SHOT, MUD SHOT ETCif combatee ~= COMBAT_PHYSICALDAMAGE thenif isCreature(attacker) thendoSendAnimatedText(getThingPos(cid), "MISS", 215)setPlayerStorageValue(cid, 35, 0)return falseendendendif not isCreature(attacker) thenreturn trueendif isPlayer(attacker) thenreturn trueendif enps == STATSCHANGE_HEALTHGAIN thenreturn trueendif enps == STATSCHANGE_HEALTHLOSS thenif getCreatureHealth(cid) <= value thenif isPlayer(cid) thenif #getCreatureSummons(cid) == 0 thendoCreatureAddHealth(cid, -getCreatureHealth(cid), 3, 180) -- 3 é o efeito que aparece no player quando ele é atacado e vai morrerreturn falseendreturn falseendif isPlayer(getCreatureMaster(attacker)) thendoTargetCombatHealth(getCreatureMaster(attacker), cid, combatee, -(getCreatureHealth(cid)), -(getCreatureHealth(cid)), efeitos[combatee])if isInArray({GROUNDDAMAGE, ELECTRICDAMAGE, ROCKDAMAGE, FLYDAMAGE, BUGDAMAGE, FIGHTINGDAMAGE, DRAGONDAMAGE, POISONDAMAGE}, combatee) thendoSendAnimatedText(getThingPos(cid), value, cores)endreturn falseendreturn trueendif isPlayer(cid) thenif #getCreatureSummons(cid) >= 1 thenreturn falseenddoCreatureAddHealth(cid, -value, 3, 180) -- 3 é o efeito que aparece no player quando é atacadoreturn falseendif isPlayer(getCreatureMaster(cid)) thendoAddCondition(getCreatureMaster(cid), expcond)endif combatee == ELECTRICDAMAGE thenif isInArray(electric2, getCreatureName(cid)) thenx = 2elseif isInArray(electric1, getCreatureName(cid)) thenx = 0.5elseif isInArray(electric0, getCreatureName(cid)) thenx = 0elsex = 1endelseif combatee == WATERDAMAGE thenif isInArray(water2, getCreatureName(cid)) thenx = 2elseif isInArray(water1, getCreatureName(cid)) thenx = 0.5elseif isInArray(water0, getCreatureName(cid)) thenx = 0elsex = 1endelseif combatee == GRASSDAMAGE thenif isInArray(grass2, getCreatureName(cid)) thenx = 2elseif isInArray(grass1, getCreatureName(cid)) thenx = 0.5elseif isInArray(grass0, getCreatureName(cid)) thenx = 0elsex = 1endelseif combatee == FLYDAMAGE thenif isInArray(flying2, getCreatureName(cid)) thenx = 2elseif isInArray(flying1, getCreatureName(cid)) thenx = 0.5elseif isInArray(flying0, getCreatureName(cid)) thenx = 0elsex = 1endelseif combatee == FIREDAMAGE thenif isInArray(fire2, getCreatureName(cid)) thenx = 2elseif isInArray(fire1, getCreatureName(cid)) thenx = 0.5elseif isInArray(fire0, getCreatureName(cid)) thenx = 0elsex = 1endelseif combatee == ROCKDAMAGE thenif isInArray(rock2, getCreatureName(cid)) thenx = 2elseif isInArray(rock1, getCreatureName(cid)) thenx = 0.5elseif isInArray(rock0, getCreatureName(cid)) thenx = 0elsex = 1endelseif combatee == GROUNDDAMAGE thenif isInArray(ground2, getCreatureName(cid)) thenx = 2elseif isInArray(ground1, getCreatureName(cid)) thenx = 0.5elseif isInArray(ground0, getCreatureName(cid)) thenx = 0elsex = 1endelseif combatee == GHOSTDAMAGE thenif isInArray(ghost2, getCreatureName(cid)) thenx = 2elseif isInArray(ghost1, getCreatureName(cid)) thenx = 0.5elseif isInArray(ghost0, getCreatureName(cid)) thenx = 0elsex = 1endelseif combatee == BUGDAMAGE thenif isInArray(bug2, getCreatureName(cid)) thenx = 2elseif isInArray(bug1, getCreatureName(cid)) thenx = 0.5elseif isInArray(bug0, getCreatureName(cid)) thenx = 0elsex = 1endelseif combatee == NORMALDAMAGE thenif isInArray(normal2, getCreatureName(cid)) thenx = 2elseif isInArray(normal1, getCreatureName(cid)) thenx = 0.5elseif isInArray(normal0, getCreatureName(cid)) thenx = 0elsex = 1endelseif combatee == FIGHTDAMAGE thenif isInArray(fighting2, getCreatureName(cid)) thenx = 2elseif isInArray(fighting1, getCreatureName(cid)) thenx = 0.5elseif isInArray(fighting0, getCreatureName(cid)) thenx = 0elsex = 1endelseif combatee == POISONDAMAGE thenif isInArray(poison2, getCreatureName(cid)) thenx = 2elseif isInArray(poison1, getCreatureName(cid)) thenx = 0.5elseif isInArray(poison0, getCreatureName(cid)) thenx = 0elsex = 1endelseif combatee == PSYCHICDAMAGE thenif isInArray(psychic2, getCreatureName(cid)) thenx = 2elseif isInArray(psychic1, getCreatureName(cid)) thenx = 0.5elseif isInArray(psychic0, getCreatureName(cid)) thenx = 0elsex = 1endelseif combatee == ICEDAMAGE thenif isInArray(ice2, getCreatureName(cid)) thenx = 2elseif isInArray(ice1, getCreatureName(cid)) thenx = 0.5elseif isInArray(ice0, getCreatureName(cid)) thenx = 0elsex = 1endelseif combatee == DRAGONDAMAGE thenif isInArray(dragon2, getCreatureName(cid)) thenx = 2elseif isInArray(dragon1, getCreatureName(cid)) thenx = 0.5elseif isInArray(dragon0, getCreatureName(cid)) thenx = 0elsex = 1endelsex = 1endlocal xx = xif not isSummon(attacker) thenif not isPlayer(cid) and not isPlayer(getCreatureMaster(cid)) thenreturn falseendif isSummon(cid) and getCreatureHealth(cid) <= (getCreatureMaxHealth(cid)*0.15) and not exhaustion.get(getCreatureMaster(cid), 88726) thenexhaustion.set(getCreatureMaster(cid), 88726, 6)doSendMagicEffect(getThingPos(cid), 178)endif getPlayerStorageValue(cid, 4) >= 1 thenlocal damage = valuedoCreatureAddHealth(cid, -((math.ceil(damage/2))*xx), 2, cores) -- 2 é o efeito que aparece no pokemon quando tem harden e é atacadoelselocal damage = valueif cor == NONE thenreturn trueenddoCreatureAddHealth(cid, -((math.ceil(damage/1))*xx), efeitos[combatee], cores)return falseendreturn falseendif isSummon(attacker) thenif isSummon(cid) thenif isInParty(getCreatureMaster(cid)) and isInParty(getCreatureMaster(attacker)) and getPlayerParty(getCreatureMaster(cid)) == getPlayerParty(getCreatureMaster(attacker)) thenelsereturn falseendendlocal combatx = combateelocal valor = valueif getPlayerStorageValue(cid, 4) >= 1 thendoTargetCombatHealth(getCreatureMaster(attacker), cid, combatx, -((valor / 2)*x), -(((valor / 2)+10)*x), 255)elsedoTargetCombatHealth(getCreatureMaster(attacker), cid, combatx, -((valor)*x), -((valor+10)*x), 255)endif isInArray({GROUNDDAMAGE, ELECTRICDAMAGE, ROCKDAMAGE, FLYDAMAGE, BUGDAMAGE, FIGHTINGDAMAGE, DRAGONDAMAGE, POISONDAMAGE}, combatee) thendoSendAnimatedText(getThingPos(cid), value*xx, cores)endendendend Editado Setembro 8, 2011 por mulizeu Link para o comentário Compartilhar em outros sites More sharing options...
filipeva87 0 Postado Setembro 8, 2011 Autor Share Postado Setembro 8, 2011 cara, PERFEITO. Muito obrigado pela atenção. rep + Link para o comentário Compartilhar em outros sites More sharing options...
Posts Recomendados