Ir para conteúdo

Makhai Drakon

Membro
  • Registro em

  • Última visita

Tudo que Makhai Drakon postou

  1. @Christinacsa local cfg = { need_item = {5785, 10, 2160, 10}, reward_item = {13506, 1}, storage = 40531, } local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid local msg = msg:lower() if msgcontains(msg, 'kefla') then if getPlayerStorageValue(cid, cfg.storage) < 1 then if doPlayerRemoveItem(cid, cfg.need_item[1], cfg.need_item[2]) and doPlayerRemoveItem(cid, cfg.need_item[3], cfg.need_item[4])then doPlayerAddItem(cid, cfg.reward_item[1], cfg.reward_item[2]) selfSay('You just swap '.. cfg.need_item[2] ..' '.. getItemNameById(cfg.need_item[1]) ..' for '.. cfg.reward_item[2] ..' '.. getItemNameById(cfg.reward_item[1]) ..'.', cid) setPlayerStorageValue(cid, cfg.storage, 1) else selfSay('You need '.. cfg.need_item[2] ..' '.. getItemNameById(cfg.need_item[1]) ..'.', cid) end else selfSay('You already did this exchange!', cid) end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  2. @leozincorsair Testa ai local condition = createConditionObject(CONDITION_PARALYZE) setConditionParam(condition, CONDITION_PARAM_TICKS, 5000) setConditionParam(condition, CONDITION_PARAM_SPEED, -5000) function onCastSpell(cid, var) local effect = 14 -- Efeito que aparecera no player local cd = 8 -- cooldown para usa a magia novamente if isPlayer(cid) and exhaustion.check(cid, 12000) == TRUE then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Aguarde " .. exhaustion.get(cid, 12000) .. " segundos para usar novamente.") return FALSE end exhaustion.set(cid, 12000, cd) doCreatureSetNoMove(cid, 0) doRemoveCondition(cid, CONDITION_PARALYZE) doSendMagicEffect(getCreaturePosition(cid), effect) return TRUE end
  3. @leozincorsair Me mande uma spell que causa paralyze
  4. @gcmcorrea Testa pra min fazendo favor local config = { loginMessage = getConfigValue('loginMessage'), useFragHandler = getBooleanFromString(getConfigValue('useFragHandler')) } local function effectAnel(cid) if isPlayer(cid) then if getPlayerSlotItem(cid,9) and getPlayerSlotItem(cid,9).uid > 0 and getPlayerSlotItem(cid,9).itemid == 7697 then doSendMagicEffect(getThingPos(cid), 36) end addEvent(effectAnel, 3000, cid) end end function onLogin(cid) if getCreatureOutfit(cid).lookType == 306 and getPlayerStorageValue(cid, 121219) ~= 1 then doCreatureChangeOutfit(cid, getPlayerSex(cid) == 0 and {lookType = 136} or {lookType = 128}) end if(getBooleanFromString(getConfigValue('accountManager')) == false) then if (getCreatureName(cid) == "Account Manager") then return doRemoveCreature(cid, true) end end if getPlayerSlotItem(cid,9) and getPlayerSlotItem(cid,9).uid > 0 and getPlayerSlotItem(cid,9).itemid == 7697 then effectAnel(cid) end local loss = getConfigValue('deathLostPercent') if(loss ~= nil) then doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10) end local accountManager = getPlayerAccountManager(cid) if(accountManager == MANAGER_NONE) then local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage if(lastLogin > 0) then doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "." else str = str .. " Please choose your outfit." doPlayerSendOutfitWindow(cid) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str) elseif(accountManager == MANAGER_NAMELOCK) then addEvent(valid(doCreatureSay), 500, cid, "Hello, it appears that your character has been locked for name violating rules, what new name would you like to have?", TALKTYPE_PRIVATE_NP, true, cid) elseif(accountManager == MANAGER_ACCOUNT) then addEvent(valid(doCreatureSay), 500, cid, "Hello, type {account} to manage your account. If you would like to start over, type {cancel} anywhere.", TALKTYPE_PRIVATE_NP, true, cid) else addEvent(valid(doCreatureSay), 500, cid, "Hello, type {account} to create an account or {recover} to recover an account.", TALKTYPE_PRIVATE_NP, true, cid) end if(not isPlayerGhost(cid)) then doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end if getPlayerStorageValue(cid, 54304) > 0 then doPlayerSetStorageValue(cid, 54304, 0) end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, "Bem Vindo!") addEvent(valid(doCreatureSay), 500, cid, "[DOUBLE PONTOS]: Double Pontos acima de R$25,00 - Triple acima de R$100,00!", TALKTYPE_PRIVATE, false, cid) --edited ckfox if getPlayerLevel(cid) < 717217 then registerCreatureEvent(cid, "AdvanceTeleport") end registerCreatureEvent(cid, "DesertDeath") registerCreatureEvent(cid, "antimb") registerCreatureEvent(cid, "DesertCombat") registerCreatureEvent(cid, "BattleDeath") registerCreatureEvent(cid, "BattleCombat") registerCreatureEvent(cid, "FireStorm") registerCreatureEvent(cid, "ctf") registerCreatureEvent(cid, "anumorte") registerCreatureEvent(cid, "Auto Loot") registerCreatureEvent(cid, "autoloot") registerCreatureEvent(cid, "zombieevent") registerCreatureEvent(cid, "Idle") registerCreatureEvent(cid, "tpquest") registerCreatureEvent(cid, "CombatDodge") registerCreatureEvent(cid, "recompensa") registerCreatureEvent(cid, "SkullAmulet") registerCreatureEvent(cid, "BountyHunter") registerCreatureEvent(cid, "PlayerDeath") registerCreatureEvent(cid, "otlist") registerCreatureEvent(cid, "rewardpoints") registerCreatureEvent(cid, "ArmyKill") registerCreatureEvent(cid, "fraglook") registerCreatureEvent(cid, "fraglook_register") if (InitArenaScript ~= 0) then InitArenaScript = 1 -- make arena rooms free for i = 42300, 42309 do setGlobalStorageValue(i, 0) setGlobalStorageValue(i+100, 0) end end registerCreatureEvent(cid, "Mail") if(getPlayerOperatingSystem(cid) >= CLIENTOS_OTCLIENT_LINUX) then registerCreatureEvent(cid, "ExtendedOpcode") end registerCreatureEvent(cid, "ReportBug") if(config.useFragHandler) then registerCreatureEvent(cid, "SkullCheck") end registerCreatureEvent(cid, "GuildEvents") registerCreatureEvent(cid, "critical") registerCreatureEvent(cid, "anumorte") registerCreatureEvent(cid, "BroadDeath") registerCreatureEvent(cid, "AdvanceSave") registerCreatureEvent(cid, "GuildMotd") registerCreatureEvent(cid, "fraglook") registerCreatureEvent(cid, "blesscheck") registerCreatureEvent(cid, "DeathBroadcast") registerCreatureEvent(cid, "addons") registerCreatureEvent(cid, "onPrepareDeath") registerCreatureEvent(cid, "Fraglook") registerCreatureEvent(cid, "antimb") registerCreatureEvent(cid, "antimagebomb") registerCreatureEvent(cid, "FimVip") registerCreatureEvent(cid, "ExpVip") registerCreatureEvent(cid, "VipReceive") registerCreatureEvent(cid, "redSkullAmulet") registerCreatureEvent(cid, "autoloot") registerCreatureEvent(cid, "FullHpMana") registerCreatureEvent(cid, "killitem") registerCreatureEvent(cid, "huntdeath") registerCreatureEvent(cid, "loguthunt") registerCreatureEvent(cid, "ReportBug") registerCreatureEvent(cid, "CastleExp") registerCreatureEvent(cid, "entrosaLogout") registerCreatureEvent(cid, "AdvEffect") registerCreatureEvent(cid, "dodge") registerCreatureEvent(cid, "recompensaLvl") if getPlayerStorageValue(cid, 48902) == -1 then setPlayerStorageValue(cid, 48902, 0) end registerCreatureEvent(cid, "critical") if getPlayerName(cid) == "Account Manager" and #getPlayersByIp(getPlayerIp(cid)) > 10 then return false end if getPlayerSlotItem(cid, 2).itemid == 7889 then doPlayerAddBlessing(cid, 1) doPlayerAddBlessing(cid, 2) doPlayerAddBlessing(cid, 3) doPlayerAddBlessing(cid, 4) doPlayerAddBlessing(cid, 5) doSendMagicEffect(getPlayerPosition(cid), 49) else doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT) end if getPlayerStorageValue(cid, 48903) == -1 and getPlayerStorageValue(cid, 48902) == -1 then setPlayerStorageValue(cid, 48903, 0) setPlayerStorageValue(cid, 48902, 0) end local temporary_level = getPlayerStorageValue(cid, ARMY_LEVEL) local temporary_exp = getPlayerStorageValue(cid, ARMY_EXPERIENCE) if (temporary_level < #ARMY) then if (tonumber(temporary_exp) == -1) or (tonumber(temporary_level) == -1) then setPlayerStorageValue(cid, ARMY_LEVEL, 1) setPlayerStorageValue(cid, ARMY_EXPERIENCE, 0) end end return true end
  5. @gcmcorrea me manda seu login.lua
  6. @gabrielzika Não li a parte do tempo, obrigado pela contribuição
  7. @Bohr Mano e so desmarcar o stackable no item editor, e pra garantir tirar do .spr e do .dat tbm
  8. @1xeuzinho1 Coloca isso em algum lugar do seu data/items/items.xml <item id="AAAAA" article="a" name="BBBBB"> <attribute key="containerSize" value="8" /> <attribute key="decayTo" value="0" /> <attribute key="duration" value="55" /> </item> Em: AAAAA - Coloca o ID do corpse do monstro BBBBB - Coloca fainted (e o nome do monstro. Ficando assim: <item id="8937" article="a" name="fainted Demonn"> <attribute key="containerSize" value="8" /> <attribute key="decayTo" value="0" /> <attribute key="duration" value="55" /> </item>
  9. @Christinacsa Lembra de colocar a codificação ANSI no notpad pra não bugar os acêntos local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) local talkState = {} function onCreatureAppear(cid) npcHandler:onCreatureAppear(cid) end function onCreatureDisappear(cid) npcHandler:onCreatureDisappear(cid) end function onCreatureSay(cid, type, msg) npcHandler:onCreatureSay(cid, type, msg) end function onThink() npcHandler:onThink() end function creatureSayCallback(cid, type, msg) if(not npcHandler:isFocused(cid)) then return false end local talkUser = NPCHANDLER_CONVBEHAVIOR == CONVERSATION_DEFAULT and 0 or cid local config = { item1 = 13507, -- ID DO Item que precisara para trocar qt1 = 1000, -- Quantidade do item1 que precisa sto = 166666, -- Storage não mecher } if(msgcontains(msg, 'yes' )) then if getPlayerStorageValue(cid, config.sto) == -1 then if getPlayerItemCount(cid, config.item1) >= config.qt1 then selfSay('Você pagou a entrada oara a {PERFECT NAVE}', cid) setPlayerStorageValue(cid, config.sto, 1) doRemoveItem(cid, config.item1, config.qnt1) else selfSay('Você não tem o item necessario {Furie Coins}', cid) end else selfSay(' voce ja fez' , cid) return true end end end
  10. @Toulouse Mano, primeiramente não aconselho comprar nada. Poderia mandar algum tutorial que tu usou para dar uma analisada ?
  11. Mano, não seja ignorante, ele não deu nenhuma referencia de qual base ele usa, so se tiver ele tiver passado por fora, caso tenha alguma coisa exclusiva no order dele, hora ou outra vai dar erro.
  12. @Wellingtondadis Não aconselho fazer isso não, talvez o order dele seja diferente, apenas fale oque você adicionou.
  13. Makhai Drakon postou uma resposta no tópico em Suporte Tibia OTServer
    @blastoiseib Se você mostrar qual e o shop facilita né mano.
  14. @xMateuss 1000000000000000002 0000000000000000000 0000000000000000000 0000000000000000000 0000000000000000000 0000000000000000000 3000000000000000004 Faz de conta que isso e a parte do mapa em que você quer que apareça o item 1 = fromx 2 = tox 3 = fromy 4 = toy Meche só nisso
  15. @gabrielzika Creio que se a posição escolhida tiver uma parede por exemplo, ira bugar não acha ? E caso não seja isso que mesmo o script funcionando, se aparecer em um lugar no meio de uma montanhã? Coloca aquele if pra fazer uma outra função. Ex function onStartup() local fromx = 2795 -- posiçao x superior a esquerda da area que sera analisada local tox = 2799 -- posiçao x inferior a direita da area que sera analisada local fromy = 879 -- posiçao y superior a esquerda da area que sera analisada local toy = 886 -- posiçao y inferior a direita da area que sera analisada local floor = 7 -- posição z referece ao andar que criara o item local item = 2160 -- item que sera criado local pos = {x= math.random(fromx, tox), y=math.random(fromy, toy), z=floor} local function ckfox() local pos = {x= math.random(fromx, tox), y=math.random(fromy, toy), z=floor} if doCreateItem(item, 1, pos) == TRUE then return true end addEvent(ckfox, 100) end if doCreateItem(item, 1, pos) == TRUE then else addEvent(ckfox, 100) return true end return true end OBS: não testei nada, isso e so um exemplo Deixei so mais um pouquinho mais editavel tbm!
  16. @rizen -- Script Editado por Ckfox local config = { --XXX Quest-- [40000] = { -- ActionID que ficara no objeto da quest (EX:Alavanca) posis = { {'play1', {x=223, y=405, z=7}}, -- Posição de onde o player deve ficar {'play2', {x=223, y=407, z=7}}, -- Posição de onde o player deve ficar {'play3', {x=223, y=409, z=7}}, -- Posição de onde o player deve ficar {'play4', {x=225, y=410, z=7}}, -- Posição de onde o player deve ficar }, toPosi = {x=225, y=407, z=8}, -- Posição de onde o player será teleportado lvl = 150, -- Level necessario para fazer a quest item = {2160, 1}, -- Item necessario para entrar area1 = {x = 483, y = 1132, z = 8}, -- Essa parta e a area que os players estarão area2 = {x = 560, y = 1208, z = 8}, -- Essa parta e a area que os players estarão }, } function onUse(cid, item, frompos, item2, topos) local area1 = config[item.actionid].area1 local area2 = config[item.actionid].area2 if #getPlayerInArea(area1, area2) > 0 then doPlayerSendTextMessage(cid, 20, "Tem um player na quest, espere sua vez!") return true end local posis = config[item.actionid].posis local toPosi = config[item.actionid].toPosi local lvl = config[item.actionid].lvl local itens = config[item.actionid].item for _, array in ipairs(posis) do local p = getRecorderPlayer(array[2]) if not isPlayer(p) ~= array[1] and getPlayerLevel(cid) <= lvl then doPlayerSendTextMessage(cid, 27, "Alguém está fora do lugar ou não tem level suficiente para entrar!") return true end if not doPlayerRemoveItem(p, itens[1], itens[2]) then doPlayerSendTextMessage(cid, 27, "Você precisa de "..itens[2]..""..itens[1].."para entrar!") return true end end for _, array in ipairs(posis) do local p = getRecorderPlayer(array[2]) if isPlayer(p) then doTeleportThing(p, toPosi) doSendMagicEffect(getThingPos(p), 21) end end return true end
  17. @kmus1344 Fiquei uns dias sem internet, vou ver aqui pra você @kmus1344 Mano sinceramente não sei porque está dando erro no meu server funcionou normalmente mas testa esse aqui. Quero que me fale as seguintes coisas!!! 1- Se apareceu a mensagem de quando começou o Draw 2- Se apareceu a mensagem de quando acabou o Draw 3- Se o Draw começou e não parou 4- Se não começou local condition = createConditionObject(CONDITION_DROWN) setConditionParam(condition, CONDITION_PARAM_PERIODICDAMAGE, -20) setConditionParam(condition, CONDITION_PARAM_TICKS, -1) setConditionParam(condition, CONDITION_PARAM_TICKINTERVAL, 2000) function onStepIn(cid, item, position, fromPosition) if(isPlayer(cid)) then doAddCondition(cid, condition) doPlayerSendTextMessage(cid, 27, "Inicio Teste DRAW") end return true end local function StopDraw() doRemoveCondition(cid, CONDITION_DROWN) doPlayerSendTextMessage(cid, 27, "Final Teste DRAW") end function onStepOut(cid, item, position, fromPosition) if(isPlayer(cid)) then addEvent(StopDraw, 120000) end return true end Caso não remova o draw mas mande a mensagem usa este aqui. local condition = createConditionObject(CONDITION_DROWN) setConditionParam(condition, CONDITION_PARAM_PERIODICDAMAGE, -20) setConditionParam(condition, CONDITION_PARAM_TICKS, -1) setConditionParam(condition, CONDITION_PARAM_TICKINTERVAL, 2000) function onStepIn(cid, item, position, fromPosition) if(isPlayer(cid)) then doAddCondition(cid, condition) doPlayerSendTextMessage(cid, 27, "Inicio Teste DRAW") end return true end local function StopDraw() doRemoveCondition(cid, condition) doPlayerSendTextMessage(cid, 27, "Final Teste DRAW") end function onStepOut(cid, item, position, fromPosition) if(isPlayer(cid)) then addEvent(StopDraw, 120000) end return true end
  18. @kmus1344 Me mande o .lua dessas aqui <globalevent name="ServerSave" time="04:55:00" script="serversave.lua" /> <globalevent interval="3600000" name="AutoSave" script="autosave.lua"/>
  19. @kmus1344 Seu server tem global save por globalevents ? ou algum evento que tem mensagem de inicio e de fim ?
  20. @Gnius Testa elseif spell == "Healarea" then local min = (getCreatureMaxHealth(cid) * 50) / 100 local max = (getCreatureMaxHealth(cid) * 60) / 100 local function doHealArea(cid, min, max) local amount = math.random(min, max) if (getCreatureHealth(cid) + amount) >= getCreatureMaxHealth(cid) then amount = -(getCreatureHealth(cid)-getCreatureMaxHealth(cid)) end if getCreatureHealth(cid) ~= getCreatureMaxHealth(cid) then doCreatureAddHealth(cid, amount) doSendAnimatedText(getThingPosWithDebug(cid), "+"..amount.."", 65) end end local pos = getPosfromArea(cid, heal) local n = 0 doHealArea(cid, min, max) while n < #pos do n = n+1 thing = {x=pos[n].x,y=pos[n].y,z=pos[n].z,stackpos=253} local pid = getThingFromPosWithProtect(thing) doSendMagicEffect(pos[n], 12) if isCreature(pid) then if isSummon(cid) and (isSummon(pid) or isPlayer(pid)) then doHealArea(pid, min, max) elseif ehMonstro(cid) and ehMonstro(pid) then doHealArea(pid, min, max) end end end
  21. @esnio12 Me mande o seu sistema de trade pfv Qual seu tfs? E a versão do server ?
  22. @Luis077 Poderia me informr de onde pegou esse addon system ? @Luis077 function onUse(cid, item, fromPosition, itemEx, toPosition) local addons = { [13089] = {pokemon= "Shiny Alakazam", looktype = 2013, nome = "Adventurer addon", fly = 0, ride = 0, surf = 0}, [13091] = {pokemon= "Shiny Alakazam", looktype = 2014, nome = "Grey hat addon", fly = 0, ride = 0, surf = 0}, [13092] = {pokemon= "Shiny Alakazam", looktype = 2016, nome = "Red hat addon", fly = 0, ride = 0, surf = 0}, [13090] = {pokemon= "Shiny Alakazam", looktype = 2015, nome = "Purple hat addon", fly = 0, ride = 0, surf = 0}, [13093] = {pokemon= "Alakazam", looktype = 2009, nome = "Adventurer addon", fly = 0, ride = 0, surf = 0}, [13095] = {pokemon= "Alakazam", looktype = 2010, nome = "Grey hat addon", fly = 0, ride = 0, surf = 0}, [13096] = {pokemon= "Alakazam", looktype = 2012, nome = "Red hat addon", fly = 0, ride = 0, surf = 0}, [13094] = {pokemon= "Alakazam", looktype = 2011, nome = "Purple hat addon", fly = 0, ride = 0, surf = 0}, [13101] = {pokemon= "Shiny Tropius", looktype = 2019, nome = "Sorcerer addon", fly = 2065, ride = 0, surf = 0}, [13106] = {pokemon= "Shiny Tropius", looktype = 2069, nome = "Desert flower addon", fly = 2070, ride = 0, surf = 0}, [13098] = {pokemon= "Shiny Metagross", looktype = 2021, nome = "King's crown addon", fly = 0, ride = 2064, surf = 0}, [13099] = {pokemon= "Shiny Metagross", looktype = 2020, nome = "Queen's crown addon", fly = 0, ride = 2067, surf = 0}, [13097] = {pokemon= "Shiny Clefable", looktype = 2068, nome = "Angel addon", fly = 0, ride = 0, surf = 0}, [13102] = {pokemon= "Clefable", looktype = 2025, nome = "Angel addon", fly = 0, ride = 0, surf = 0}, [13394] = {pokemon= "Togekiss", looktype = 2508, nome = "Champion addon", fly = 2507, ride = 0, surf = 0}, [13100] = {pokemon= "Shiny Jynx", looktype = 2023, nome = "Witch addon", fly = 0, ride = 0, surf = 0}, [2207] = {pokemon= "Charmander", looktype = 2198, nome = "Ninja mask addon", fly = 0, ride = 0, surf = 0}, [2208] = {pokemon= "Charizard", looktype = 2451, nome = "Traveler bag addon", fly = 2452, ride = 0, surf = 0}, [17142] = {pokemon= "Metagross", looktype = 2222, nome = "King's crown addon", fly = 0, ride = 356, surf = 0}, [13104] = {pokemon= "Metagross", looktype = 2017, nome = "Queen's crown addon", fly = 0, ride = 2066, surf = 0}, [13105] = {pokemon= "Elder Charizard", looktype = 2074, nome = "Halloween addon", fly = 2072, ride = 0, surf = 0}, [13107] = {pokemon= "Charizard", looktype = 2073, nome = "Halloween addon", fly = 2071, ride = 0, surf = 0}, [2456] = {pokemon= "Abra", looktype = 2190, nome = "Magic kit addon", fly = 0, ride = 0, surf = 0}, [2421] = {pokemon= "Shiny Dragonite", looktype = 2402, nome = "Gray postman bag addon", fly = 2396, ride = 0, surf = 0}, [2422] = {pokemon= "Shiny Dragonite", looktype = 2406, nome = "Blue postman bag addon", fly = 2399, ride = 0, surf = 0}, [2423] = {pokemon= "Shiny Dragonite", looktype = 2407, nome = "Red postman bag addon", fly = 2401, ride = 0, surf = 0}, [2428] = {pokemon= "Electabuzz", looktype = 2424, nome = "Bandit mask addon", fly = 0, ride = 0, surf = 0}, [2429] = {pokemon= "Electabuzz", looktype = 2425, nome = "Metal pack addon", fly = 0, ride = 0, surf = 0}, [2430] = {pokemon= "Electabuzz", looktype = 2426, nome = "Raiden hat addon", fly = 0, ride = 0, surf = 0}, [2431] = {pokemon= "Scyther", looktype = 2340, nome = "Monk cape addon", fly = 0, ride = 0, surf = 0}, [2432] = {pokemon= "Scyther", looktype = 2341, nome = "Black cape addon", fly = 0, ride = 0, surf = 0}, [2433] = {pokemon= "Scyther", looktype = 2342, nome = "Namekian cape addon", fly = 0, ride = 0, surf = 0}, [2434] = {pokemon= "Tyranitar", looktype = 2369, nome = "Gentleman hat addon", fly = 0, ride = 0, surf = 0}, [2435] = {pokemon= "Tangela", looktype = 2330, nome = "Ghost costume addon", fly = 0, ride = 0, surf = 0}, [2436] = {pokemon= "Tangela", looktype = 2331, nome = "Jester hat addon", fly = 0, ride = 0, surf = 0}, [2437] = {pokemon= "Tangela", looktype = 2332, nome = "Fake fork addon", fly = 0, ride = 0, surf = 0}, [2438] = {pokemon= "Shiny Tangela", looktype = 2333, nome = "Ghost costume addon", fly = 0, ride = 0, surf = 0}, [2439] = {pokemon= "Shiny Tangela", looktype = 2334, nome = "Jester hat addon", fly = 0, ride = 0, surf = 0}, [2440] = {pokemon= "Shiny Tangela", looktype = 2335, nome = "Fake fork addon", fly = 0, ride = 0, surf = 0}, [2441] = {pokemon= "Shiny Tangrowth", looktype = 2336, nome = "Jester hat addon", fly = 0, ride = 0, surf = 0}, [2442] = {pokemon= "Shiny Tangrowth", looktype = 2337, nome = "Fake fork addon", fly = 0, ride = 0, surf = 0}, [2445] = {pokemon= "Marowak", looktype = 2203, nome = "Reaper costume addon", fly = 0, ride = 0, surf = 0}, [2446] = {pokemon= "Muk", looktype = 2350, nome = "Dj cap addon", fly = 0, ride = 0, surf = 0}, [2447] = {pokemon= "Ponyta", looktype = 2201, nome = "Pony saddle addon", fly = 0, ride = 2202, surf = 0}, [2448] = {pokemon= "Golem", looktype = 2351, nome = "Steel helmet addon", fly = 0, ride = 0, surf = 0}, [2449] = {pokemon= "Golem", looktype = 2352, nome = "Suicide costume addon", fly = 0, ride = 0, surf = 0}, [2450] = {pokemon= "Geodude", looktype = 2349, nome = "Kid cap addon", fly = 0, ride = 0, surf = 0}, [2451] = {pokemon= "Tentacruel", looktype = 2343, nome = "Water brain cap addon", fly = 0, ride = 0, surf = 0}, [2452] = {pokemon= "Tentacruel", looktype = 2344, nome = "Bloody brain cap addon", fly = 0, ride = 0, surf = 0}, [2453] = {pokemon= "Tentacruel", looktype = 2345, nome = "Slime brain cap addon", fly = 0, ride = 0, surf = 0}, [2455] = {pokemon= "Machamp", looktype = 2456, nome = "Dragon tattoo addon", fly = 0, ride = 0, surf = 0}, [2458] = {pokemon= "Dugtrio", looktype = 2356, nome = "Squad costume addon", fly = 0, ride = 0, surf = 0}, [2459] = {pokemon= "Diglett", looktype = 2355, nome = "Viking helmet addon", fly = 0, ride = 0, surf = 0}, [2460] = {pokemon= "Diglett", looktype = 2353, nome = "Ninja mask addon", fly = 0, ride = 0, surf = 0}, [2461] = {pokemon= "Diglett", looktype = 2354, nome = "Cowboy hat addon", fly = 0, ride = 0, surf = 0}, [2487] = {pokemon= "Huntail", looktype = 2378, nome = "Angel halo addon", fly = 0, ride = 0, surf = 2379}, [2481] = {pokemon= "Venusaur", looktype = 2453, nome = "Beautiful flower addon", fly = 0, ride = 2454, surf = 0}, [2482] = {pokemon= "Charizard", looktype = 2449, nome = "Beautiful flower addon", fly = 2450, ride = 0, surf = 0}, [2485] = {pokemon= "Sceptile", looktype = 2373, nome = "Beautiful flower addon", fly = 0, ride = 0, surf = 0}, [2486] = {pokemon= "Charmander", looktype = 2199, nome = "Mummy pack addon", fly = 0, ride = 0, surf = 0}, [2498] = {pokemon= "Salamance", looktype = 2374, nome = "Traveler bag addon", fly = 2375, ride = 0, surf = 0}, [2502] = {pokemon= "Meowth", looktype = 2329, nome = "Cowboy hat addon", fly = 0, ride = 0, surf = 0}, [2477] = {pokemon= "Squirtle", looktype = 2445, nome = "Purple ninja pack addon", fly = 0, ride = 0, surf = 2446}, [2478] = {pokemon= "Squirtle", looktype = 2448, nome = "Orange ninja pack addon", fly = 0, ride = 0, surf = 2447}, [2479] = {pokemon= "Squirtle", looktype = 2443, nome = "Red ninja pack addon", fly = 0, ride = 0, surf = 2444}, [2480] = {pokemon= "Squirtle", looktype = 2441, nome = "Blue ninja pack addon", fly = 0, ride = 0, surf = 2442}, [2472] = {pokemon= "Pidgeotto", looktype = 2200, nome = "Flying glasses addon", fly = 0, ride = 0, surf = 0}, [2473] = {pokemon= "Pidgey", looktype = 2362, nome = "Zombie cap addon", fly = 0, ride = 0, surf = 0}, [2474] = {pokemon= "Pidgey", looktype = 2360, nome = "Bone cap addon", fly = 0, ride = 0, surf = 0}, [2476] = {pokemon= "Butterfree", looktype = 2360, nome = "Captain hat addon", fly = 0, ride = 0, surf = 0}, [13108] = {pokemon= "Shiny Blastoise", looktype = 2078, nome = "Purple ninja pack addon", fly = 0, ride = 0, surf = 2083}, [13109] = {pokemon= "Shiny Blastoise", looktype = 2076, nome = "Orange ninja pack addon", fly = 0, ride = 0, surf = 2088}, [13110] = {pokemon= "Shiny Blastoise", looktype = 2075, nome = "Red ninja pack addon", fly = 0, ride = 0, surf = 2090}, [13111] = {pokemon= "Shiny Blastoise", looktype = 2077, nome = "Blue ninja pack addon", fly = 0, ride = 0, surf = 2086}, [13112] = {pokemon= "Blastoise", looktype = 2082, nome = "Purple ninja pack addon", fly = 0, ride = 0, surf = 2083}, [13113] = {pokemon= "Blastoise", looktype = 2080, nome = "Orange ninja pack addon", fly = 0, ride = 0, surf = 2087}, [13114] = {pokemon= "Blastoise", looktype = 2079, nome = "Red ninja pack addon", fly = 0, ride = 0, surf = 2089}, [13115] = {pokemon= "Blastoise", looktype = 2081, nome = "Blue ninja pack addon", fly = 0, ride = 0, surf = 2085}, } if #getCreatureSummons(cid) > 0 then doPlayerSendCancel(cid, "Por favor volte seu pokémon.") return false end local addon = addons[item.itemid].looktype local fly = addons[item.itemid].fly local ride = addons[item.itemid].ride local surf = addons[item.itemid].surf local addonlook = addons[item.itemid].nome local pb = getPlayerSlotItem(cid, 8).uid local pk = addons[item.itemid].pokemon if getItemAttribute(pb,"poke") ~= pk then doPlayerSendCancel(cid, "Desculpa, você não pode usar esse addon nesse pokémon.") return false end if getItemAttribute(pb, "pokeballusada") == 0 then doRemoveItem(item.uid, 1) doSendMagicEffect(fromPosition, 180) doSetItemAttribute(pb,"addon",addon) doSetItemAttribute(pb,"addonfly",fly) doSetItemAttribute(pb,"addonride",ride) doSetItemAttribute(pb,"addonsurf",surf) doSetItemAttribute(pb,"addonlook",addonlook) return true end end
  23. @kmus1344 Mas e a doPlayerSendTextMessage ta funcionando ?
  24. @kmus1344 TFS 1.2 E qual a versão do server ? @kmus1344 Da algum erro na distro ? se sim me mande ele @kmus1344 Testa ele assim: OBS: coloquei pro player fala Teste DRAW quando o draw acabar para você saber o time local condition = createConditionObject(CONDITION_DROWN) setConditionParam(condition, CONDITION_PARAM_PERIODICDAMAGE, -20) setConditionParam(condition, CONDITION_PARAM_TICKS, -1) setConditionParam(condition, CONDITION_PARAM_TICKINTERVAL, 2000) function onStepIn(cid, item, position, fromPosition) if(isPlayer(cid)) then doAddCondition(cid, condition) doPlayerSendTextMessage(cid, 27, "Inicio Teste DRAW") end return true end local function StopDraw() doRemoveCondition(cid, CONDITION_DROWN) doPlayerSendTextMessage(cid, 27, "Final Teste DRAW") end function onStepOut(cid, item, position, fromPosition) if(isPlayer(cid)) then addEvent(StopDraw, 2*60*1000) end return true end Caso FUNCIONE troque por este para retirar as mensagens dos players local condition = createConditionObject(CONDITION_DROWN) setConditionParam(condition, CONDITION_PARAM_PERIODICDAMAGE, -20) setConditionParam(condition, CONDITION_PARAM_TICKS, -1) setConditionParam(condition, CONDITION_PARAM_TICKINTERVAL, 2000) function onStepIn(cid, item, position, fromPosition) if(isPlayer(cid)) then doAddCondition(cid, condition) end return true end local function StopDraw() doRemoveCondition(cid, CONDITION_DROWN) end function onStepOut(cid, item, position, fromPosition) if(isPlayer(cid)) then addEvent(StopDraw, 2*60*1000) end return true end

Informação Importante

Confirmação de Termo