Ir para conteúdo

Mulizeu

Barão
  • Total de itens

    218
  • Registro em

  • Última visita

  • Dias Ganhos

    4

Tudo que Mulizeu postou

  1. Vlw digao pela força eu tava com essa duvida e vc me esclareceu rep+ pra tu
  2. Mulizeu

    Duvida De Script

    Exemplo eu fasso um script de seila.. adiciona mana ao player, porem como eu fasso para a mana ser adicionana a cada exemplo: 2 segundos?? aqui vai um exemplo: function onUse(cid, item, position) if doPlayerAddMana(cid, 500) == TRUE then doPlayerSendTextMessage(cid, 22, "Sua mana subirá a cada 2 segundos") end return false end como fasso pro script acima adc mana a cada 2 segundos?? Lembrando apenas uma exemplo! vlw
  3. Ve esse se tiver mto foda fala! Edita tbm Experiencia eu deixei 0000 <?xml version="1.0" encoding="UTF-8"?> <monster name="Dementador" nameDescription="Dementador" race="blood" experience="000" speed="700" manacost="390"> <health now="150000" max="150000"/> <look type="12" head="114" body="114" legs="114" feet="114" corpse="5995"/> <targetchange interval="5000" chance="20"/> <strategy attack="65" defense="5"/> <flags> <flag summonable="0"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="0"/> <flag convinceable="0"/> <flag pushable="0"/> <flag canpushitems="1"/> <flag canpushcreatures="1"/> <flag targetdistance="1"/> <flag staticattack="90"/> <flag runonhealth="0"/> </flags> <attacks> <attack name="throwing knife" interval="3000" chance="100" min="-1000" max="-2800"/> <attack name="Groundshaker" interval="5000" min="-1600" max="-2500"/> <attack name="Frozen Wave" interval="7000" min="-1000" max="-2200"/> <attack name="Berserk" interval="9000" min="-600" max="-1500"/> <attack name="Thunderstorm" interval="1100" min="-1000" max="-2400"/> <attack name="Hells Core" interval="6500" min="-900" max="-1800"/> </attacks> <defenses armor="280" defense="250"/> <immunities> <immunity physical="0"/> <immunity energy="0"/> <immunity fire="0"/> <immunity poison="0"/> <immunity lifedrain="0"/> <immunity paralyze="0"/> <immunity outfit="0"/> <immunity drunk="0"/> <immunity invisible="1"/> </immunities> <voices interval="500" chance="500"> <voice sentence="SOU O DEMENTADOR VO MATAR VOCES!"/> <voice sentence="VIM DO INFERNO PARA TE ANIQUILAR!"/> </voices> <loot> <item id="2160" countmax="60" chance1="100000" chancemax="0"/> <item id="2160" chance="5000"/> <item id="2160" chance="2500"/> <item id="2160" chance="3000"/> <item id="2160" chance="20000"/> <item id="2160" countmax="40" chance1="100000" chancemax="0"/> <item id="2160" chance="100000"> <inside> <item id="2160" chance="5000"/> <item id="2160" chance="5000"/> <item id="2160" chance="3333"/> <item id="2160" countmax="2" chance1="20000" chancemax="0"/> <item id="2160" countmax="2" chance1="3333" chancemax="0"/> <item id="2160" chance="20000"/> </inside> </item> </loot> </monster>
  4. Olha o erro esta sendo ocasionado na sua lib/032 como esta disendo o erro pesso que formate melhor seu topico para melhorar a visualidade do mesmo! [10/09/2011 19:22:37] [Error - CreatureScript Interface] [10/09/2011 19:22:37] data/creaturescripts/scripts/zombie.lua:onStatsChange [10/09/2011 19:22:37] Description: [10/09/2011 19:22:37] data/lib/032-position.lua:2: attempt to index global 'position' (a nil value) [10/09/2011 19:22:37] stack traceback: [10/09/2011 19:22:37] data/lib/032-position.lua:2: in function 'isInArea' [10/09/2011 19:22:37] data/creaturescripts/scripts/zombie.lua:17: in function <data/creaturescripts/scripts/zombie.lua:15>
  5. Mulizeu

    Slot

    Vlw amigo mais este topico aki ja e antigo, eu fiz as alteraçoes que eu desejava vlw por tentar ajudar!
  6. sim mais qual seria a funçao da pedra a penas verificar se tem lvl 8...naos entendi mto bem??? explique novamente com um pouco mais de clareza!!
  7. Xotservx tpw eu fasso 1 script e uso ele em 1 helmet para adc 200 de mana...mais eu qro adc 200 de mana a cada 5 segundos que funçao uso??
  8. Somente ira addicionar lvl ao player essa quest ---By Mulizeu---- function onUse(cid, item, fromposition, toposition) if doPlayerAddLevel(cid, 10) == TRUE then doPlayerSendTextMessage(cid,22,"Congratulation you received 10 Lvl" ) else doPlayerSendTextMessage(cid,22,"no have more exp" ) end return false end Vlw xotservx pela dica! rep+ pra tu
  9. Tente essa! function onUse (cid,item,frompos,item2,topos) pos = {x=1125, y=1017, z=4} ---- posiçao onde o player sera teleporta a pos fazer quest UID_DO_BAU = 1007 ----esses com numeros iguais sao storage que o player vai recebe STORAGE_VALUE = 1007 ---- ID_DO_PREMIO = x --- id do premio ID_DO_PREMIO2 = x --- mais 1 se quizer que receba 2 item se nao apague isso e o debaxo if getPlayerLevel(cid) >= x then -- lvl do player if item.uid == UID_DO_BAU then queststatus = getPlayerStorageValue(cid,STORAGE_VALUE) if queststatus == -1 then doTeleportThing(cid,pos) doPlayerSendTextMessage(cid,22,"Parabens! Você Completou a Quest!") -- Msg que ira aparecer doPlayerAddItem(cid,ID_DO_PREMIO,1) -- onde esta 1 e quantidade mude se quizer doPlayerAddItem(cid,ID_DO_PREMIO2,1) ---msm coisa que em cima setPlayerStorageValue(cid,STORAGE_VALUE,1) doSendMagicEffect(pos, CONST_ME_TELEPORT) else doPlayerSendTextMessage(cid,22,"Você ja pegou os itens.") end end else doPlayerSendCancel(cid,'Somente Players com Level x+ conseguem abrir este bau.') end return 1 end
  10. Oia ai cara nao sei se e possivel pq cada stage tem um determinado tando de exp....entao nao sei se e possivel, mais se quizer uma que da 10 lvl para lvl 200 eu posso ate fazer blz flw
  11. Tente isso! function onUse(cid, item, frompos, item2, topos) position = getPlayerPosition(cid) if getPlayerLevel(cid) >= x then ---level que o player precisa doPlayerRemoveItem(cid, ID ITEM,1) ---id do item usado para summonar doConvinceCreature(cid, doCreateMonster("Hydra", position, false)) ----nome da criature Exemplo (hydra) doSendMagicEffect(getPlayerPosition(cid),16) doCreatureSay(cid,"Saia Hydra!!!", TALKTYPE_ORANGE_1) ---- MSG doPlayerSendCancel(cid,"Você precisa ser nivel x ou mais para invocar um hydra") ---MSG end return TRUE end
  12. va na sua pasta mods/firstitem (se seu serv for pokemon) e adc isso: <?xml version="1.0" encoding="UTF-8"?> <mod name="First Items" version="1.0" author="The Forgotten Server" contact="otland.net" enabled="yes"> <config name="firstitems_config"> <![CDATA[ config = { storage = 30001, items = {2120, 1987, 1988, 2376, 2580, 2564, 2529} } ]]> </config> <event type="login" name="FirstItems" event="script"> <![CDATA[ domodlib('firstitems_config') function onLogin(cid) if(getPlayerStorageValue(cid, config.storage) > 0) then return true end for _, id in ipairs(config.items) do doPlayerAddItem(cid, 7884, 1) end if(getPlayerSex(cid) == PLAYERSEX_FEMALE) then doPlayerAddItem(cid, 2550, 1) else doPlayerAddItem(cid, 2550, 1) end setPlayerStorageValue(cid, config.storage, 1) return true end ]]></event> </mod>
  13. Mulizeu

    Help Plx

    Tente isso function onUse(cid, item, fromposition, itemEx, toposition) if doPlayerAddOutfit(cid,looktype) == TRUE then doPlayerSendTextMessage(cid,22,"Voce Recebeu um novo outfit" ) else doPlayerSendTextMessage(cid,22,"Vc nao tem o item necessario" ) end return false end onde esta looktype e o numero do looktype do determinado outfit do seu OT
  14. <?xml version="1.0" encoding="UTF-8"?> <monster name="Entei" nameDescription="a Entei" race="fire" experience="17500" speed="270" manacost="0"> <health now="15000" max="15000"/> <look type="ID DO LOOKTYPE" head="20" body="30" legs="40" feet="50" corpse="ID DO CORPO"/> <targetchange interval="10000" chance="10"/> <strategy attack="100" defense="0"/> <flags> <flag summonable="1"/> <flag attackable="1"/> <flag hostile="1"/> <flag illusionable="1"/> <flag convinceable="1"/> <flag pushable="0"/> <flag canpushitems="1"/> <flag canpushcreatures="0"/> <flag targetdistance="1"/> <flag staticattack="90"/> <flag runonhealth="0"/> </flags> <attacks> <attack name="peck" interval="1000" chance="50" min="-300" max="-350"> </attack> <attack name="fire fang" interval="1000" chance="50" min="-300" max="-350"> </attack> <attack name="fire blast" interval="4500" chance="90" min="-700" max="-1500"> </attack> <attack name="magma storm" interval="5000" chance="90" min="-1000" max="-3500"> </attack> <attack name="ember" interval="3500" chance="90" min="-350" max="-700"> </attack> <attack name="flamethrower" interval="7000" chance="90" min="-1900" max="-2500"> </attack> <attack name="twister" interval="6000" chance="90" min="-300" max="-600"> </attack> </attacks> <defenses armor="1" defense="1"> <defense name="Intense Healing" interval="5000" chance="100" min="1000" max="1000"> </defense> </defenses> <voices interval="5000" chance="10"> <voice sentence="Entei!"/> </voices> <loot> <item id="2283" countmax="1" chance="6500"/> -- fire stone </loot> <script> <event name="Exp"/> </script> </monster> Basta Vc por o id do corpo dele de acordo com o seu OT e o lookytype tbm. Se quizer aumente a força dos attacks dele, e acerte de acordo com as spells do seu OT
  15. Melhor esclarecimento function onUse(cid, item, fromposition, itemEx, toposition) if item.itemid == ID and item.type == Quantidade then doPlayerRemoveItem(cid,item.itemid,item.type) doPlayerAddItem(cid,ID2,1) else doPlayerSendCancel(uid,22,"Voce nao tem dinheiro suficiente") end return TRUE end id e o id do primeiro dinheiro quantidade e quanto desse dinheiro precisa para virar o outro id2 e o id do novo dinheiro tem esse outro geito tbm function onUse(cid, item, fromposition, itemEx, toposition) if doPlayerRemoveItem(cid,id,quantidade) == TRUE then doPlayerRemoveItem(cid,id2,1) doPlayerSendTextMessage(cid,22,"Voce Tem Recebeu seu novo dinheiro" ) else doPlayerSendTextMessage(cid,22,"Voce nao tem dinheiro suficiente para converte-lo" ) end return false end
  16. Bom este script e em action....coloque o nome que vc quizer! depois vc adc a tag com o nome que vc deu ao arquivo!
  17. ve esse ----BY MULIZEU------ function onSay(cid, words, param) if getPlayerStorageValue(cid,valueid) == TRUE then doPlayerRemoveItem(cid,item.uid) end return false end ou assim function onSay(cid, words, param) if words == "/removestorage" then if name then if storge then local acc = getPlayerStorageValue(cid,valueid) if acc ~= 0 then doRemoveStorageValue(acc, valueid) end end end end end
  18. 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
  19. Ve se deu! function onUse(cid, item, frompos, item2, topos) local rat = {x=850,y=1077,z=5} local cat = {x=852,y=1077,z=5} local wee = {x=854,y=1077,z=5} local pox = getPlayerPosition(cid) if getPlayerStorageValue(cid, 54842) ~= 1 then local health = 350 local maxhealth = 350 local description = "Contains a Rattata." local poke1 = "This is Rattata's pokeball. HP = ["..health.."/"..maxhealth.."]" item = doCreateItemEx(2219) doItemSetAttribute(item, "poke", poke1) doItemSetAttribute(item, "nome", "Rattata") doItemSetAttribute(item, "description", description) doPlayerAddItemEx(cid, item, true) doTransformItem(item, 2222) doPlayerSendTextMessage(cid, 27, "Voce pegou um pokemon.") doPlayerAddItem(cid, 2147,10) doPlayerAddItem(cid, 2273,2) setPlayerStorageValue(cid, 54842, 1) doPlayerAddExp(cid,10000) else doPlayerSendTextMessage(cid, 27, "Voce ja pegou seu pokemon.") end return TRUE end
  20. Ve esse ake..=] function loseOnZombieArena(cid) kickPlayerFromZombiesArea(cid) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "BOOM! You are dead.") local players = getZombiesEventPlayers() if(#players <= 1) then local winner = players[1] if(winner) then doPlayerAddItem(winner, 2157, 5, true) doPlayerAddItem(winner, 6119, 1, true) doPlayerSendTextMessage(winner, MESSAGE_STATUS_CONSOLE_BLUE, "You won zombies arena event.") doBroadcastMessage("After " .. os.time() - getPlayerZombiesEventStatus(winner) .. " seconds of fight " .. getCreatureName(winner) .. " won Zombie Arena Event in game versus " .. getStorage(ZE_ZOMBIES_SPAWNED) .. " zombies!") kickPlayerFromZombiesArea(winner) kickSummonFromZombiesArea(winner) else doBroadcastMessage("Zombie arena event finished! No one win?!?!?! WTF!") end doSetStorage(ZE_STATUS, 0) doSetStorage(ZE_PLAYERS_NUMBER, ZE_DEFAULT_NUMBER_OF_PLAYERS) doSetStorage(ZE_ZOMBIES_TO_SPAWN, 0) doSetStorage(ZE_ZOMBIES_SPAWNED, 0) local width = (math.max(ZE_spawnFromPosition.x, ZE_spawnToPosition.x) - math.min(ZE_spawnFromPosition.x, ZE_spawnToPosition.x)) / 2 + 1 local height = (math.max(ZE_spawnFromPosition.y, ZE_spawnToPosition.y) - math.min(ZE_spawnFromPosition.y, ZE_spawnToPosition.y)) / 2 + 1 local centerPos = {x=math.min(ZE_spawnFromPosition.x, ZE_spawnToPosition.x)+width,y=math.min(ZE_spawnFromPosition.y, ZE_spawnToPosition.y)+height,z=ZE_spawnFromPosition.z} for z = math.min(ZE_spawnFromPosition.z, ZE_spawnToPosition.z), math.max(ZE_spawnFromPosition.z, ZE_spawnToPosition.z) do centerPos.z = z for i, uid in pairs(getSpectators(centerPos, width, height, false)) do if(isMonster(uid)) then doRemoveCreature(uid) end end end end end function onStatsChange(target, cid, changetype, combat, value) if((cid and isMonster(cid) and getCreatureName(cid) == "Zombie Event") or (isInRange(getThingPosition(target), ZE_spawnFromPosition, ZE_spawnToPosition) and changetype == STATSCHANGE_HEALTHLOSS and math.abs(value) >= getCreatureHealth(target))) then doCreatureAddHealth(target, getCreatureMaxHealth(target)) loseOnZombieArena(target) return false end return true end
  21. Mulizeu

    Servidor Pokemon!

    Olá a tds, Gostaria De dizer que com mto empenho vamos começar a trabalhar em um servidor pokemon, tentando inovar e agradar a jogabilidade de todos. estamos começando praticamente de 20% de coisas que aproveitamos! estamos em busca de uma equipe seria e dedicada No momento a equipe se compoem de 2 pessoas e pretendemos evuiluir-mos! Admin [Eu] [Pinpao] [Vago] Script.lua [Eu] [pinpao] [vago] Mapper [vago] [vago] [vago] Programador c++ [Pinpao] Spriter [vago] Desculpe Se tiver erros de portugues! Quem Quizer entra na Equipe Deixe! Nick: Idade: Cargo: Experiencia: Disponibilidade:
  22. Procura isso no seu config.lua levelToBuyHouse = 1 --onde esta 1 e lvl do player
  23. Ixe cara to cançado agr amanha eu vejo blz.
  24. Ouxe!skasako Tenta assim entaum function loseOnZombieArena(cid) kickPlayerFromZombiesArea(cid) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "BOOM! You are dead.") local players = getZombiesEventPlayers() if(#players <= 1) then local winner = players[1] if(winner) then doPlayerAddItem(winner, 2157, 5, true) doPlayerAddItem(winner, 6119, 1, true) doPlayerSendTextMessage(winner, MESSAGE_STATUS_CONSOLE_BLUE, "You won zombies arena event.") doBroadcastMessage("After " .. os.time() - getPlayerZombiesEventStatus(winner) .. " seconds of fight " .. getCreatureName(winner) .. " won Zombie Arena Event in game versus " .. getStorage(ZE_ZOMBIES_SPAWNED) .. " zombies!") kickPlayerFromZombiesArea(winner) elseif getSummonZombiesEventStatus(winner) == TRUE then kickSummonFromZombiesArea(winner) else doBroadcastMessage("Zombie arena event finished! No one win?!?!?! WTF!") end doSetStorage(ZE_STATUS, 0) doSetStorage(ZE_PLAYERS_NUMBER, ZE_DEFAULT_NUMBER_OF_PLAYERS) doSetStorage(ZE_ZOMBIES_TO_SPAWN, 0) doSetStorage(ZE_ZOMBIES_SPAWNED, 0) local width = (math.max(ZE_spawnFromPosition.x, ZE_spawnToPosition.x) - math.min(ZE_spawnFromPosition.x, ZE_spawnToPosition.x)) / 2 + 1 local height = (math.max(ZE_spawnFromPosition.y, ZE_spawnToPosition.y) - math.min(ZE_spawnFromPosition.y, ZE_spawnToPosition.y)) / 2 + 1 local centerPos = {x=math.min(ZE_spawnFromPosition.x, ZE_spawnToPosition.x)+width,y=math.min(ZE_spawnFromPosition.y, ZE_spawnToPosition.y)+height,z=ZE_spawnFromPosition.z} for z = math.min(ZE_spawnFromPosition.z, ZE_spawnToPosition.z), math.max(ZE_spawnFromPosition.z, ZE_spawnToPosition.z) do centerPos.z = z for i, uid in pairs(getSpectators(centerPos, width, height, false)) do if(isMonster(uid)) then doRemoveCreature(uid) end end end end end function onStatsChange(target, cid, changetype, combat, value) if((cid and isMonster(cid) and getCreatureName(cid) == "Zombie Event") or (isInRange(getThingPosition(target), ZE_spawnFromPosition, ZE_spawnToPosition) and changetype == STATSCHANGE_HEALTHLOSS and math.abs(value) >= getCreatureHealth(target))) then doCreatureAddHealth(target, getCreatureMaxHealth(target)) loseOnZombieArena(target) return false end return true end[code] [/code]
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...