Ir para conteúdo

gabrielzika

Membro
  • Registro em

  • Última visita

Tudo que gabrielzika postou

  1. function onUse(cid, item) if #getCreatureSummons(cid) >= 1 then doPlayerSendCancel(cid, "Volte seu pokémon!") else if #getPlayersInArea(torneio.area) > 1 then doPlayerSendTextMessage(cid, 20 ,"Só o ultimo que ficar na arena, poderá abrir está porta! ") return true end doTeleportThing(cid, torneio.playerTemple) doBroadcastMessage("Parabéns ao treinador "..getCreatureName(cid)..". Vencedor do Torneio!.") doPlayerAddSkill(cid, 7, 1) local item1 = doCreateItemEx(15448) local item2 = doCreateItemEx(15448) doItemSetAttribute(item1, "unique", getCreatureName(cid)) doItemSetAttribute(item2, "unique", getCreatureName(cid)) doPlayerAddItemEx(cid, item1) doPlayerAddItemEx(cid, item2) doPlayerSendTextMessage(cid,22,"You advanced in Torneios Vencidos.") return true end end @SrP1kachu
  2. see if you can local STORAGE = 4150 -- Storage necessária para viajar local smallcity = {x=107, y=200, z=7} local namekisland = {x=461, y=447, z=5} local bigcity = {x=117, y=102, z=7} local icecity = {x=315, y=179, z=7} local frozencity = {x=477, y=643, z=7} local westisland = {x=83, y=39, z=7} local eastisland = {x=111, y=39, z=7} local brokencity = {x=99, y=343, z=7} local assassintower = {x=254, y=393, z=7} 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 if msgcontains(msg, "small city") then if not isPlayerPzLocked(cid) then doSendMagicEffect(getThingPos(cid), 10) npcHandler:releaseFocus(cid) doTeleportThing(cid, smallcity) doSendMagicEffect(smallcity, 10) selfSay("Let's go!", cid) else selfSay("Voce deve estar sem pz locked!", cid) end talkState[talkUser] = 0 end if msgcontains(msg, "namek island") then if not isPlayerPzLocked(cid) then doSendMagicEffect(getThingPos(cid), 10) npcHandler:releaseFocus(cid) doTeleportThing(cid, namekisland) doSendMagicEffect(namekisland, 10) selfSay("Let's go!", cid) else selfSay("Voce deve estar sem pz locked!", cid) end talkState[talkUser] = 0 end if msgcontains(msg, "big city") then if not isPlayerPzLocked(cid) then doSendMagicEffect(getThingPos(cid), 10) npcHandler:releaseFocus(cid) doTeleportThing(cid, bigcity) doSendMagicEffect(bigcity, 10) selfSay("Let's go!", cid) else selfSay("Voce deve estar sem pz locked!", cid) end talkState[talkUser] = 0 end if msgcontains(msg, "ice city") then if not isPlayerPzLocked(cid) then doSendMagicEffect(getThingPos(cid), 10) npcHandler:releaseFocus(cid) doTeleportThing(cid, icecity) doSendMagicEffect(icecity, 10) selfSay("Let's go!", cid) else selfSay("Voce deve estar sem pz locked!", cid) end talkState[talkUser] = 0 end if msgcontains(msg, "frozen city") then if not isPlayerPzLocked(cid) then doSendMagicEffect(getThingPos(cid), 10) npcHandler:releaseFocus(cid) doTeleportThing(cid, frozencity) doSendMagicEffect(frozencity, 10) selfSay("Let's go!", cid) else selfSay("Voce deve estar sem pz locked!", cid) end talkState[talkUser] = 0 end if msgcontains(msg, "west island") then if not isPlayerPzLocked(cid) then doSendMagicEffect(getThingPos(cid), 10) npcHandler:releaseFocus(cid) doTeleportThing(cid, westisland) doSendMagicEffect(westisland, 10) selfSay("Let's go!", cid) else selfSay("Voce deve estar sem pz locked!", cid) end talkState[talkUser] = 0 end if msgcontains(msg, "east island") then if not isPlayerPzLocked(cid) then doSendMagicEffect(getThingPos(cid), 10) npcHandler:releaseFocus(cid) doTeleportThing(cid, eastisland) doSendMagicEffect(eastisland, 10) selfSay("Let's go!", cid) else selfSay("Voce deve estar sem pz locked!", cid) end talkState[talkUser] = 0 end if msgcontains(msg, "broken city") then if not isPlayerPzLocked(cid) then doSendMagicEffect(getThingPos(cid), 10) npcHandler:releaseFocus(cid) doTeleportThing(cid, brokencity) doSendMagicEffect(brokencity, 10) selfSay("Let's go!", cid) else selfSay("Voce deve estar sem pz locked!", cid) end talkState[talkUser] = 0 end if msgcontains(msg, "assassin tower") then if not isPlayerPzLocked(cid) then doSendMagicEffect(getThingPos(cid), 10) npcHandler:releaseFocus(cid) doTeleportThing(cid, assassintower) doSendMagicEffect(assassintower, 10) selfSay("Let's go!", cid) else selfSay("Voce deve estar sem pz locked!", cid) end talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  3. send the script that is in dederin.lua
  4. @xMateussVocê alterou as Posições??
  5. <?xml version="1.0" encoding="UTF-8"?> <npc name="Dederin" script="dederin.lua" walkinterval="0" floorchange="0" speed="0"> <health now="150" max="150"/> <look type="459" head="20" body="100" legs="50" feet="99" corpse="0"/> <parameters> <parameter key="message_greet" value="I can take you to {Small City}, {Namek Island}, {Big City}, {Ice City}, {Frozen City}, {West Island}, {East Island}, {Broken City}, {Assassin Tower} (100 zeni everywhere)"/> </parameters> </npc>
  6. @raynerjunior ve se funciona ( NÃO TESTEI ) local events = { 'KillingInTheNameOfKill', 'KillingInTheNameOfKillNecros', 'KillingInTheNameOfKillMinos' } local function onMovementRemoveProtection(cid, oldPosition, time) local player = Player(cid) if not player then return true end local playerPosition = player:getPosition() if (playerPosition.x ~= oldPosition.x or playerPosition.y ~= oldPosition.y or playerPosition.z ~= oldPosition.z) or player:getTarget() then player:setStorageValue(Storage.combatProtectionStorage, 0) return true end addEvent(onMovementRemoveProtection, 1000, cid, oldPosition, time - 1) end function onLogin(player) local loginStr = 'Welcome to ' .. configManager.getString(configKeys.SERVER_NAME) .. '!' if player:getLastLoginSaved() <= 0 then loginStr = loginStr .. ' Please choose your outfit.' player:setBankBalance(0) if player:getSex() == 1 then player:setOutfit({lookType = 128, lookHead = 78, lookBody = 106, lookLegs = 58, lookFeet = 76}) else player:setOutfit({lookType = 136, lookHead = 78, lookBody = 106, lookLegs = 58, lookFeet = 76}) end player:sendTutorial(1) else if loginStr ~= "" then player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr) end loginStr = string.format('Your last visit was on %s.', os.date('%a %b %d %X %Y', player:getLastLoginSaved())) end player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr) local playerId = player:getId() player:loadSpecialStorage() --[[-- Maintenance mode if (player:getGroup():getId() < 2) then return false else end--]] if (player:getGroup():getId() >= 4) then player:setGhostMode(true) end if player:getStorageValue(12130) < 1 and player:getStorageValue(12131) < 1 and player:getStorageValue(12132) < 1 and player:getStorageValue(12133) < 1 and player:getStorageValue(12134) < 1 and player:getStorageValue(12135) < 1 and player:getStorageValue(12136) < 1 and player:getStorageValue(12137) < 1 and player:getStorageValue(12138) < 1 and player:getStorageValue(12139) < 1 and player:getStorageValue(12140) < 1 and player:getStorageValue(12141) < 1 and player:getStorageValue(12142) < 1 and player:getStorageValue(12143) < 1 and player:getStorageValue(12144) < 1 and player:getStorageValue(12145) < 1 and player:getStorageValue(12146) < 1 and player:getStorageValue(12147) < 1 and player:getStorageValue(12148) < 1 and player:getStorageValue(12149) < 1 and player:getStorageValue(12150) < 1 then player:setStorageValue(12130, 1) player:setStorageValue(12131, 1) player:setStorageValue(12132, 1) player:setStorageValue(12133, 1) player:setStorageValue(12134, 1) player:setStorageValue(12135, 1) player:setStorageValue(12136, 1) player:setStorageValue(12137, 1) player:setStorageValue(12138, 1) player:setStorageValue(12139, 1) player:setStorageValue(12140, 1) player:setStorageValue(12141, 1) player:setStorageValue(12142, 1) player:setStorageValue(12143, 1) player:setStorageValue(12144, 1) player:setStorageValue(12145, 1) player:setStorageValue(12146, 1) player:setStorageValue(12147, 1) player:setStorageValue(12148, 1) player:setStorageValue(12149, 1) player:setStorageValue(12150, 1) end -- Stamina nextUseStaminaTime[playerId] = 1 -- EXP Stamina nextUseXpStamina[playerId] = 1 -- Prey Stamina nextUseStaminaPrey[playerId+1] = {Time = 1} nextUseStaminaPrey[playerId+2] = {Time = 1} nextUseStaminaPrey[playerId+3] = {Time = 1} -- Prey Data if (player:getVocation():getId() ~= 0) then local columnUnlocked = getUnlockedColumn(player) if (not columnUnlocked) then columnUnlocked = 0 end for i = 0, columnUnlocked do sendPreyData(player, i) end end if (player:getAccountType() == ACCOUNT_TYPE_TUTOR) then local msg = [[:: Regras Tutor :: 1*>3 Advertências você perde o cargo. 2*>Sem conversas paralelas com jogadores no Help, se o player começar a ofender, você simplesmente o mute. 3*>Seja educado com os player no Help e principalmente no Privado, tenta ajudar o máximo possível. 4*>Sempre logue no seu horário, caso não tiver uma justificativa você será removido da staff. 5*>Help é somente permitido realizar dúvidas relacionadas ao tibia. 6*>Não é Permitido divulgar time pra upar ou para ajudar em quest. 7*>Não é permitido venda de itens no Help. 8*>Caso o player encontre um bug, peça para ir ao site mandar um ticket e explicar em detalhes. 9*>Mantenha sempre o Chat dos Tutores aberto. (obrigatório). 10*>Você terminou de cumprir seu horário, viu que não tem nenhum tutor Online, você comunica com algum CM in-game ou ts e fica no help até alguém logar, se der. 11*>Mantenha sempre um ótimo português no Help, queremos tutores que dêem suporte, não que fiquem falando um ritual satânico. 12*>Se ver um tutor fazendo algo que infrinja as regras, tire uma print e envie aos superiores." -- Comandos -- Mutar Player: /mute nick,90. (90 segundos) Desmutar Player: /unmute nick. -- Comandos --]] player:popupFYI(msg) end -- OPEN CHANNERLS (ABRIR CHANNELS) if table.contains({"Rookgaard", "Dawnport"}, player:getTown():getName())then --player:openChannel(7) -- help channel player:openChannel(3) -- world chat player:openChannel(6) -- advertsing rook main else --player:openChannel(7) -- help channel player:openChannel(3) -- world chat player:openChannel(5) -- advertsing main end -- -- Rewards local rewards = #player:getRewardList() if(rewards > 0) then player:sendTextMessage(MESSAGE_EVENT_ADVANCE, string.format("You have %d %s in your reward chest.", rewards, rewards > 1 and "rewards" or "reward")) end -- Update player id local stats = player:inBossFight() if stats then stats.playerId = player:getId() end -- fury gates local messageType = nil if (player:getClient().os == 3 or player:getClient().os == 5) then messageType = MESSAGE_EVENT_ADVANCE end if Game.getStorageValue(9710) == 1 then player:sendTextMessage(messageType or MESSAGE_STATUS_CONSOLE_BLUE, 'Fury Gate is on Venore Today.') elseif Game.getStorageValue(9711) == 2 then player:sendTextMessage(messageType or MESSAGE_STATUS_CONSOLE_BLUE, 'Fury Gate is on Abdendriel Today.') elseif Game.getStorageValue(9712) == 3 then player:sendTextMessage(messageType or MESSAGE_STATUS_CONSOLE_BLUE, 'Fury Gate is on Thais Today.') elseif Game.getStorageValue(9713) == 4 then player:sendTextMessage(messageType or MESSAGE_STATUS_CONSOLE_BLUE, 'Fury Gate is on Carlin Today.') elseif Game.getStorageValue(9714) == 5 then player:sendTextMessage(messageType or MESSAGE_STATUS_CONSOLE_BLUE, 'Fury Gate is on Edron Today.') elseif Game.getStorageValue(9716) == 6 then player:sendTextMessage(messageType or MESSAGE_STATUS_CONSOLE_BLUE, 'Fury Gate is on Kazordoon Today.') end player:sendTextMessage(messageType or MESSAGE_STATUS_CONSOLE_ORANGE, '[BUGS?] Reporte em http://www.github.com/malucooo/otxserver-new/issues') -- Events for i = 1, #events do player:registerEvent(events[i]) end if player:getStorageValue(Storage.combatProtectionStorage) <= os.time() then player:setStorageValue(Storage.combatProtectionStorage, os.time() + 10) onMovementRemoveProtection(playerId, player:getPosition(), 10) end -- Exp stats local staminaMinutes = player:getStamina() local Boost = player:getExpBoostStamina() if staminaMinutes > 2400 and player:isPremium() and Boost > 0 then player:setBaseXpGain(200) -- 200 = 1.0x, 200 = 2.0x, ... premium account elseif staminaMinutes > 2400 and player:isPremium() and Boost <= 0 then player:setBaseXpGain(150) -- 150 = 1.0x, 150 = 1.5x, ... premium account elseif staminaMinutes <= 2400 and staminaMinutes > 840 and player:isPremium() and Boost > 0 then player:setBaseXpGain(150) -- 150 = 1.5x premium account elseif staminaMinutes > 840 and Boost > 0 then player:setBaseXpGain(150) -- 150 = 1.5x free account elseif staminaMinutes <= 840 and Boost > 0 then player:setBaseXpGain(100) -- 50 = 0.5x all players elseif staminaMinutes <= 840 then player:setBaseXpGain(50) -- 50 = 0.5x all players end return true end
  7. Manda seu Login.lua e as storages que quer adicionar...
  8. @xMateuss Cria um Arquivo em data/globalevents/scripts 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 item = 2160 -- item que sera criado local pos = {x= math.random(fromx, tox), y=math.random(fromy, toy), z=7} if doCreateItem(item, 1, pos) == TRUE then return true end return true end tag: <globalevent name="ItenRandom" type="start" event="script" value="NomeDoArquivo.lua"/>
  9. cara o object builder é um programa pra vc add outras sprites no seu client... dá uma pesquisada aqui no fórum que você acha alguns tutoriais
  10. Um Unico item ?? tem um sistema já por ai se não me engano no fórum de chuva de itens ve se não é ele que você quer
  11. function onUse(cid, item, fromPos, itemEx, toPos) local bauFechadoID = 1740 -- id do Bau Fechado local bauAbertoID = 12330 -- id do Bau Aberto local premioID = 2160 -- id do Premio local count = {5, 6, 7, 8, 9, 10} -- entre 5 a 10 itens o player recebera local sec = 180 -- qnt em segundos para o bau sumir apos clicar nele if getTileItemById(toPos, bauFechadoID).uid > 0 then local w = math.random (1,#count) doPlayerAddItem(cid, premioID, count[w]) doRemoveItem(item.uid, 1) doTransformItem(getTileItemById(toPos, bauFechadoID).uid, bauAbertoID) addEvent( function() doRemoveItem(getTileItemById(toPos, bauAbertoID).uid) end, sec * 1000) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Parábens...") return true end return true end return true @xMateuss Isso??
  12. Substitui o seu Arquivo Por este: evolution.lua
  13. ué ;-; aqui tá 100% tá aparecendo alguns códigos quando vc tá salvando ai... tá usando notepad++?
  14. Beleza, Substitui o seu Arquivo Por este. evolution.lua
  15. local special = specialevo --alterado v1.9 \/ peguem ele todo! local types = { [leaf] = {"Bulbasaur", "Ivysaur", "Oddish", "Gloom", "Bellsprout", "Weepinbell", "Exeggcute", "Chikorita", "Bayleef", "Hoppip", "Skiploom", "Sunkern"}, [water] = {"Squirtle", "Wartortle", "Horsea", "Goldeen", "Magikarp", "Psyduck", "Poliwag", "Poliwhirl", "Tentacool", "Krabby", "Staryu", "Omanyte", "Eevee", "Totodile", "Croconow", "Chinchou", "Marill", "Wooper", "Slowpoke", "Remoraid", "Seadra"}, [venom] = {"Zubat", "Ekans", "Nidoran male", "Nidoran female", "Nidorino", "Nidorina", "Gloom", "Venonat", "Tentacool", "Grimer", "Koffing", "Spinarak", "Golbat"}, [thunder] = {"Magnemite", "Pikachu", "Voltorb", "Eevee", "Chinchou", "Pichu", "Mareep", "Flaaffy", "Elekid"}, [rock] = {"Geodude", "Graveler", "Rhyhorn", "Kabuto", "Slugma", "Pupitar"}, [punch] = {"Machop", "Machoke", "Mankey", "Poliwhirl", "Tyrogue"}, [fire] = {"Charmander", "Charmeleon", "Vulpix", "Growlithe", "Ponyta", "Eevee", "Cyndaquil", "Quilava", "Slugma", "Houndour", "Magby"}, [coccon] = {"Caterpie", "Metapod", "Weedle", "Kakuna", "Paras", "Venonat", "Scyther", "Ledyba", "Spinarak", "Pineco"}, [crystal] = {"Dratini", "Dragonair", "Magikarp", "Omanyte", "Kabuto", "Seadra"}, [dark] = {"Gastly", "Haunter", "Eevee", "Houndour", "Pupitar"}, [earth] = {"Cubone", "Sandshrew", "Nidorino", "Nidorina", "Diglett", "Onix", "Rhyhorn", "Wooper", "Swinub", "Phanpy", "Larvitar"}, [enigma] = {"Abra", "Kadabra", "Psyduck", "Slowpoke", "Drowzee", "Eevee", "Natu", "Smoochum"}, [heart] = {"Rattata", "Pidgey", "Pidgeotto", "Spearow", "Clefairy", "Jigglypuff", "Meowth", "Doduo", "Porygon", "Chansey", "Sentret", "Hoothoot", "Cleffa", "Igglybuff", "Togepi", "Snubull", "Teddiursa"}, [ice] = {"Seel", "Shellder", "Smoochum", "Swinub"}, [king] = {"Slowpoke", "Poliwhirl"}, [metal] = {"Onix", "Scyther"}, [dragon] = {"Seadra"}, [upgrade] = {"Porygon"}, [sun] = {"Sunkern", "Gloom"}, [sfire] = {"Shiny Charmander", "Shiny Charmeleon", "Shiny Vulpix", "Shiny Growlithe", "Shiny Ponyta", "Shiny Eevee"}, [swater] = {"Shiny Squirtle", "Shiny Wartortle", "Shiny Horsea", "Shiny Goldeen", "Shiny Magikarp", "Shiny Psyduck", "Shiny Poliwag", "Shiny Poliwhirl", "Shiny Tentacool", "Shiny Krabby", "Shiny Staryu", "Shiny Omanyte", "Shiny Eevee"}, [sleaf] = {"Shiny Bulbasaur", "Shiny Ivysaur", "Shiny Oddish", "Shiny Gloom", "Shiny Bellsprout", "Shiny Weepinbell", "Shiny Exeggcute"}, [sheart] = {"Shiny Rattata", "Shiny Pidgey", "Shiny Pidgeotto", "Shiny Spearow", "Shiny Clefairy", "Shiny Jigglypuff", "Shiny Meowth", "Shiny Doduo", "Shiny Porygon", "Shiny Chansey"}, [senigma] = {"Shiny Abra", "Shiny Kadabra", "Shiny Psyduck", "Shiny Slowpoke", "Shiny Drowzee", "Shiny Eevee"}, [srock] = {"Shiny Geodude", "Shiny Graveler", "Shiny Rhyhorn", "Shiny Kabuto"}, [svenom] = {"Shiny Zubat", "Shiny Ekans", "Shiny Nidoran male", "Shiny Nidoran female", "Shiny Nidorino", "Shiny Nidorina", "Shiny Gloom", "Shiny Venonat", "Shiny Tentacool", "Shiny Grimer", "Shiny Koffing"}, [sice] = {"Shiny Seel", "Shiny Shellder"}, [sthunder] = {"Shiny Magnemite", "Shiny Pikachu", "Shiny Voltorb", "Shiny Eevee"}, [scrystal] = {"Shiny Dratini", "Shiny Dragonair", "Shiny Magikarp", "Shiny Omanyte", "Shiny Kabuto"}, [scoccon] = {"Shiny Caterpie", "Shiny Metapod", "Shiny Weedle", "Shiny Kakuna", "Shiny Paras", "Shiny Venonat", "Shiny Scyther"}, [sdarkness] = {"Shiny Gastly", "Shiny Haunter", "Shiny Eevee"}, [spunch] = {"Shiny Machop", "Shiny Machoke", "Shiny Mankey", "Shiny Poliwhirl"}, [searth] = {"Shiny Cubone", "Shiny Sandshrew", "Shiny Nidorino", "Shiny Nidorina", "Shiny Diglett", "Shiny Onix", "Shiny Rhyhorn"} } local specEvos = { --alterado v1.9 \/ ["Eevee"] = { [thunder] = "Jolteon", [water] = "Vaporeon", [fire] = "Flareon", [enigma] = "Espeon", [dark] = "Umbreon", [leaf] = "Leafeon", [ice] = "Glaceon", }, } function onUse(cid, item, frompos, item2, topos) local pokeball = getPlayerSlotItem(cid, 8) if not isMonster(item2.uid) or not isSummon(item2.uid) then return true end if #getCreatureSummons(cid) > 1 then return true --alterado v1.9 end if getCreatureCondition(item2.uid, CONDITION_INVISIBLE) then return true end local pevo = poevo[getCreatureName(item2.uid)] if not isInArray(specialevo, getCreatureName(item2.uid)) then if not pevo then doPlayerSendCancel(cid, "This pokemon can't evolve.") return true end if not isPlayer(getCreatureMaster(item2.uid)) or getCreatureMaster(item2.uid) ~= cid then doPlayerSendCancel(cid, "You can only use stones on pokemons you own.") return true end if pevo.stoneid ~= item.itemid and pevo.stoneid2 ~= item.itemid then doPlayerSendCancel(cid, "This isn't the needed stone to evolve this pokemon.") return true end end local minlevel = 0 if getPokemonName(item2.uid) == "Eevee" then local eevee = specEvos["Eevee"][item.itemid] if not eevee then doPlayerSendCancel(cid, "This isn't the required stone to evolve this pokemon.") return true end minlevel = pokes[eevee].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end doRemoveItem(item.uid, 1) doEvolvePokemon(cid, item2, eevee, 0, 0) return true end if isInArray(specialevo, getPokemonName(item2.uid)) then if getPokemonName(item2.uid) == "Poliwhirl" then local evolution = 0 local theevo = "" if item.itemid == water then if getPlayerItemCount(cid, king) >= 1 then evolution = king theevo = "Politoed" elseif getPlayerItemCount(cid, punch) >= 1 then evolution = punch theevo = "Poliwrath" else doPlayerSendCancel(cid, "You need a water stone and a punch stone (Poliwrath) or a King's Rock (Politoed) to evolve this pokemon.") return true end minlevel = pokes[theevo].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end if getPlayerItemCount(cid, punch) >= 1 and getPlayerItemCount(cid, king) >= 1 then doPlayerSendCancel(cid, "Please, use your Punch Stone to evolve this pokemon to a Poliwrath, or a King's Rock to a Politoed.") return true end doEvolvePokemon(cid, item2, theevo, evolution, water) elseif item.itemid == punch then minlevel = pokes["Poliwrath"].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end if getPlayerItemCount(cid, water) <= 0 then doPlayerSendCancel(cid, "You need at least one Punch Stone and one Water Stone to evolve this pokemon.") return true end local theevo = "Poliwrath" doEvolvePokemon(cid, item2, theevo, water, punch) elseif item.itemid == king then minlevel = pokes["Politoed"].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end if getPlayerItemCount(cid, water) <= 0 then doPlayerSendCancel(cid, "You need at least one Punch Stone and one King's Rock to evolve this pokemon.") return true end local theevo = "Politoed" doEvolvePokemon(cid, item2, theevo, water, king) end elseif getPokemonName(item2.uid) == "Gloom" then local theevo = "" local evolution = 0 if item.itemid == venom then minlevel = pokes["Vileplume"].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end doEvolvePokemon(cid, item2, "Vileplume", venom) elseif item.itemid == leaf then minlevel = pokes["Bellossom"].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end doEvolvePokemon(cid, item2, "Bellossom", leaf) end elseif getPokemonName(item2.uid) == "Burmy" then local theevo = "" local evolution = 0 if item.itemid == coccon then minlevel = pokes["Mothim"].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end doEvolvePokemon(cid, item2, "Mothim", coccon) elseif item.itemid == crystal then minlevel = pokes["Wormadam Steel"].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end doEvolvePokemon(cid, item2, "Wormadam Steel", crystal) elseif item.itemid == earth then minlevel = pokes["Wormadam Ground"].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end doEvolvePokemon(cid, item2, "Wormadam Ground", earth) elseif item.itemid == leaf then minlevel = pokes["Wormadam Grass"].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end doEvolvePokemon(cid, item2, "Wormadam Grass", leaf) end elseif getPokemonName(item2.uid) == "Slowpoke" then if item.itemid == enigma then minlevel = pokes["Slowbro"].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end doEvolvePokemon(cid, item2, "Slowbro", enigma, 0) elseif item.itemid == water then minlevel = pokes["Slowking"].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end doEvolvePokemon(cid, item2, "Slowking", water, 0) end elseif getPokemonName(item2.uid) == "Tyrogue" then local evolution = "" evolution = choose("Hitmonlee", "Hitmonchan", "Hitmontop") minlevel = pokes[evolution].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end doEvolvePokemon(cid, item2, evolution, punch, 0) end return true end local count = poevo[getPokemonName(item2.uid)].count local stnid = poevo[getPokemonName(item2.uid)].stoneid local stnid2 = poevo[getPokemonName(item2.uid)].stoneid2 local evo = poevo[getPokemonName(item2.uid)].evolution if stnid2 > 1 and (getPlayerItemCount(cid, stnid2) < count or getPlayerItemCount(cid, stnid) < count) then doPlayerSendCancel(cid, "You need at least one "..getItemNameById(stnid).." and one "..getItemNameById(stnid2).." to evolve this pokemon!") return true end if getPlayerItemCount(cid, stnid) < count then local str = "" if count >= 2 then str = "s" end return doPlayerSendCancel(cid, "You need at least "..count.." "..getItemNameById(stnid)..""..str.." to evolve this pokemon!") end minlevel = pokes[evo].level if getPlayerLevel(cid) < minlevel then doPlayerSendCancel(cid, "You don't have enough level to evolve this pokemon ("..minlevel..").") return true end if count >= 2 then stnid2 = stnid end doEvolvePokemon(cid, item2, evo, stnid, stnid2) return TRUE end Testa Ai @Darwiinxp
  16. Testa ai:
  17. Manda seu actions/scripts/evolution.lua
  18. @ThalesMesquita manda seu data/creaturescripts/scripts/login.lua [Warning - Houses::loadFromXml] House entry not set for: Forgotten headquarter esse erro é houses adicionadas de modo errada, esquecendo de add o lugar de exit da house. [Warning - IOMapSerialize::loadItems] NULL item at itens adicionados incorretamente no mapa... só seguir as cordenadas pelo remeres que você corrigi deboas!
  19. function onUse(cid, item, fromPos, itemEx, toPos) local bauFechadoID = 1740 -- id do Bau Fechado local bauAbertoID = 12330 -- id do Bau Aberto local premioID = 2160 -- id do Premio local count = 100 -- qnt de itens o player ira receber local sec = 180 -- qnt em segundos para o bau sumir apos clicar nele if getTileItemById(toPos, bauFechadoID).uid > 0 then doPlayerAddItem(cid, premioID, count) doRemoveItem(item.uid, 1) doTransformItem(getTileItemById(toPos, bauFechadoID).uid, bauAbertoID) addEvent( function() doRemoveItem(getTileItemById(toPos, bauAbertoID).uid) end, sec * 1000) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Parábens...") return true end return true end return true Funcionou? @xMateuss
  20. @xMateuss veja se é isso que você quer! function onUse(cid, item, fromPos, itemEx, toPos) local bauID = 1740 -- id do Bau local premioID = 2160 -- id do Premio local count = 100 -- qnt de itens o player ira receber local sec = 180 -- qnt em segundos para o bau sumir apos clicar nele if getTileItemById(toPos, bauID).uid > 0 then doPlayerAddItem(cid, premioID, count) doRemoveItem(item.uid, 1) addEvent( function() doRemoveItem(getTileItemById(toPos, bauID).uid) end, sec * 1000) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Parábens...") return true end return true end return true tag <action itemid="IDdaChave" event="script" value="NomeDoArquivo.lua" blockwalls="1"/>
  21. local storage = 98785 function onSay(cid, words, param) if getGlobalStorageValue(cid, storage) < 1 then doSendMagicEffect(getCreaturePosition(cid),13) doCreatureSay(cid, "Voce Ganhou Um Card Point. Parabens", TALKTYPE_ORANGE_1) doPlayerAddItem(cid, 9004, 1) setGlobalStorageValue(cid, storage, 1) else doCreatureSay(cid, "Codigo Expirado, Tente na Proxima.", TALKTYPE_ORANGE_1) doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) end end @Jinx Funcionou?
  22. Marca Como Melhor Resposta, para saberem que você já foi ajudado!

Informação Importante

Confirmação de Termo