Solutions
-
gabrielzika's post in (Resolvido)Script de Anuncio was marked as the answer@Pifafa
Cria um arquivo chamado anuncio.lua em data/talkactions/scripts e cola isso dentro:
local config = { storage = 19400, -- storage em que será salvo o tempo cor = "green", -- de acordo com o constant.lua da lib tempo = 60, -- em segundos itemid = 2159, --item que sera removido price = 1, -- quantidade de item que sera removido level = 1000 -- level necessario para poder utilizar o comando. } function onSay(cid, words, param, channel) if(param == '') then doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command param required.") return true end if getPlayerLevel(cid) >= config.level then if getPlayerStorageValue(cid, config.storage) - os.time() <= 0 then if doPlayerRemoveItem(cid, config.itemid, config.price) then setPlayerStorageValue(cid, config.storage, os.time() + (config.tempo*1)) doBroadcastMessage(""..getCreatureName(cid).." [ANUNCIO]: "..param.."", config.cor) doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Vc Falo Com Sucesso " ..config.tempo.. " second(s) espere.") else doPlayerSendCancel(cid, "Você precisa " ..config.price.. " Scarab Coins para falar novamente no Anuncio.") return true end else doPlayerSendCancel(cid, "Você Falo no Anuncio " ..(getPlayerStorageValue(cid, config.storage) - os.time()).. " seconds Espere.") return true end else doPlayerSendCancel(cid, "You have to be level " ..config.level.. " or more in order to use broadcast.") end end
Tag:
<talkaction words="/anuncio" event="script" value="anuncio.lua"/>
Crédito pelo script: Kaleudd
-
gabrielzika's post in (Resolvido)Fischer sem outfits was marked as the answerlocal fishing = { ["Magikarp"] = {skill = 0, level = -2}, ["Horsea"] = {skill = 0, level = -8}, ["Poliwag"] = {skill = 0, level = -7}, ["Krabby"] = {skill = 0, level = -5}, ["Goldeen"] = {skill = 0, level = -3}, ["Squirtle"] = {skill = 0, level = -5}, ["Staryu"] = {skill = 0, level = -4}, ["Tentacool"] = {skill = 0, level = -7}, ["Slowpoke"] = {skill = 0, level = -3}, ["Shellder"] = {skill = 0, level = -10}, ["Sell"] = {skill = 0, level = -11}, ["Seaking"] = {skill = 0, level =-7}, ["Gyarados"] = {skill = 0, level = -80}, ["Staryu"] = {skill = 0, level = -8}, ["Omanyte"] = {skill = 0, level = -60}, ["Totodile"] = {skill = 0, level = -15}, ["Chinchou"] = {skill = 0, level = -11}, ["Marill"] = {skill = 0, level = -12}, ["Politoed"] = {skill = 0, level = -10}, ["wopper"] = {skill = 0, level = -12}, ["qwilfish"] = {skill = 0, level = -10}, ["corsola"] = {skill = 0, level = -12}, } local storage = 15458 local storageP = 154580 local bonus = 1 local limite = 80 local function doFish(cid, pos, ppos, chance, interval, number) if not isCreature(cid) then return false end if getThingPos(cid).x ~= ppos.x or getThingPos(cid).y ~= ppos.y then return false end if getPlayerStorageValue(cid, storage) ~= number then return false end doSendMagicEffect(pos, CONST_ME_LOSEENERGY) local peixe = 0 local playerpos = getClosestFreeTile(cid, getThingPos(cid)) local fishes = {} local randomfish = "" --alterado!! if getPlayerSkillLevel(cid, 6) < limite then doPlayerAddSkillTry(cid, 6, 20) end for a, b in pairs (fishing) do if getPlayerSkillLevel(cid, 6) >= b.skill then table.insert(fishes, a) end end if math.random(1, 100) <= chance then if getPlayerSkillLevel(cid, 6) < limite then doPlayerAddSkillTry(cid, 6, bonus) end randomfish = fishes[math.random(#fishes)] peixe = doSummonCreature(randomfish, playerpos) if not isCreature(peixe) then addEvent(doFish, interval, cid, pos, ppos, chance, interval, number) return true end doSetMonsterPassive(peixe) doWildAttackPlayer(peixe, cid) if #getCreatureSummons(cid) >= 1 then doSendMagicEffect(getThingPos(getCreatureSummons(cid)[1]), 173) doChallengeCreature(getCreatureSummons(cid)[1], peixe) else doSendMagicEffect(getThingPos(cid), 173) doChallengeCreature(cid, peixe) end setPlayerStorageValue(cid, storageP, -1) doCreatureSetNoMove(cid, false) doRemoveCondition(cid, CONDITION_OUTFIT) return true end addEvent(doFish, interval, cid, pos, ppos, chance, interval, number) setPlayerStorageValue(cid, storageP, 1) doCreatureSetNoMove(cid, true) return true end local waters = {4614, 4615, 4616, 4617, 4618, 4619, 4608, 4609, 4610, 4611, 4612, 4613, 7236, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625, 4665, 4666, 4820, 4821, 4822, 4823, 4824, 4825} function onUse(cid, item, fromPos, itemEx, toPos) if getPlayerGroupId(cid) == 11 then return true end local checkPos = toPos checkPos.stackpos = 0 if getTileThingByPos(checkPos).itemid <= 0 then doPlayerSendCancel(cid, '!') return true end if not isInArray(waters, getTileInfo(toPos).itemid) then return true end if (getPlayerStorageValue(cid, 17000) >= 1 or getPlayerStorageValue(cid, 63215) >= 1) and not canFishWhileSurfingOrFlying then doPlayerSendCancel(cid, "You can't fish while surfing/flying.") return true end if isInArray(waters, getTileInfo(getThingPos(cid)).itemid) then doPlayerSendCancel(cid, "You can\'t fish while surfing neither flying above water.") return true end if getTileInfo(getThingPos(getCreatureSummons(cid)[1] or cid)).protection then doPlayerSendCancel(cid, "You can't fish pokémons if you or your pokémon is in protection zone.") return true end if getPlayerStorageValue(cid, storageP) > 0 then doPlayerSendTextMessage(cid, 27, "You are already fishing.") return true end if not tonumber(getPlayerStorageValue(cid, storage)) then local test = io.open("data/sendtobrun123.txt", "a+") local read = "" if test then read = test:read("*all") test:close() end read = read.."\n[fishing.lua] "..getCreatureName(cid).." - "..getPlayerStorageValue(cid, storage).."" local reopen = io.open("data/sendtobrun123.txt", "w") reopen:write(read) reopen:close() setPlayerStorageValue(cid, storage, 1) end setPlayerStorageValue(cid, storage, getPlayerStorageValue(cid, storage) + 1) if getPlayerStorageValue(cid, storage) >= 800 then setPlayerStorageValue(cid, storage, 1) end local delay = 3500 - getPlayerSkillLevel(cid, 6) * 25 local chance = 10 + getPlayerSkillLevel(cid, 6) / 2.5 outfit = getCreatureOutfit(cid) if getPlayerSex(cid) == 0 then out = 1467 else out = 1468 end doSetCreatureOutfit(cid, {lookType = out, lookHead = outfit.lookHead, lookBody = outfit.lookBody, lookLegs = outfit.lookLegs, lookFeet = outfit.lookFeet}, -1) doFish(cid, toPos, getThingPos(cid), chance, delay, getPlayerStorageValue(cid, storage)) return true end @DarkRed Testa ai..
-
gabrielzika's post in (Resolvido)AJUDA ALGUNS PLAYERS SALVA OUTROS NAO was marked as the answer@Gnius tenta assim.. talvez essa storage sua ai esteja sendo usada em outra coisa..
function onSay(cid, words, param, channel) local exausted = 30 --Tempo em segundos. if exhaustion.check(cid, 928111) then return doPlayerSendCancel(cid, "Aguarde "..exhaustion.get(cid, 928111).." segundo(s) para salvar seu personagem novamente.") end doPlayerSave(cid) exhaustion.set(cid, 928111, exausted) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Seu personagem foi salvo com sucesso.") return true end
-
gabrielzika's post in (Resolvido)PEDIDO ACTION OU MOVEMENTS QUE REMOVE X LEVEL DE PLAYER was marked as the answer@Gnius
local pos = {x = 1037, y = 1036, z = 7} -- Onde sera teleportado local level = 300 -- level necessario local healthMax = getCreatureMaxHealth(cid) function onStepIn(cid, item, position, fromPosition) if not isPlayer(cid) then return true end if getPlayerLevel(cid) < level then return true end doPlayerAddLevel(cid, -30) doCreatureAddHealth(cid, -1800) setCreatureMaxHealth(cid, (getCreatureMaxHealth(cid)-1800)) doPlayerAddExperience(cid, -25650) doTeleportThing(cid, pos) return true end
-
gabrielzika's post in (Resolvido)GlobalSave 0.3.6 8.54 Error was marked as the answer@Brunds verifique se você deu permissão para o arquivo!
Para dar permissão.
cd /otserv/data/globalvents/scripts
chmod 777 -R globalsave
ou pelo próprio WinSCP ou algo do tipo
caso nem com permissão e nem do jeito que o amigo ai encima disse funcione. Tente esse.
local timetoss = 5 --minutes function onTimer () return prepareShutdown(math.abs(math.ceil(timetoss))) end function prepareShutdown(minutes) if(minutes <= 0) then addEvent(close, 1*1000) addEvent(global, 10*1000) return false end if(minutes == 1) then doBroadcastMessage("Server is going down in " .. minutes .. " minute, please log out now!") elseif(minutes <= 3) then doBroadcastMessage("Server is going down in " .. minutes .. " minutes, please log out.") else doBroadcastMessage("Server is going down in " .. minutes .. " minutes.") end shutdownEvent = addEvent(prepareShutdown, 60000, minutes - 1) return true end function close() doSetGameState(GAMESTATE_CLOSED) end function global() doSetGameState(GAMESTATE_SHUTDOWN) end
-
gabrielzika's post in (Resolvido)Comando ganhar outfit ! was marked as the answer@leozincorsair em vname = "Sasuke Akatsuki" você tem que colocar o nome certinho da vocação, caso contrário não vai ir.... aqui de todas a maneiras q mandei até agora, funcinou 100%
Tenta assim:
local vocs = { [1] = {outfit = 400, effect = 35, cd = 1, vname = "Sakura"}, [2] = {outfit = 93, effect = 14, cd = 1, vname = "Sasuke Akatsuki"}, [3] = {outfit = 402, effect = 35, cd = 1, vname = "Naruto"}, } local storage = 4444 -- storage para nao poder ficar usando toda hora.. function onSay(cid, words, param) if (param == '') then local str = "" str = str .. "Vocations:\n\n" for a = 1, #vocs do str = str..""..vocs[a].vname.."\n" end doShowTextDialog(cid, 7416, str) return true end if getPlayerStorageValue(cid, storage) >= 1 then doPlayerSendTextMessage(cid,25,"Você já está usando uma outfit.") return true end for x = 1, #vocs do if string.find(string.lower(vocs[x].vname), string.lower(param)) and getPlayerVocationName(cid) ~= vocs[x].vname then doPlayerSendTextMessage(cid,25,"Sua vocação é " .. getPlayerVocationName(cid) ..".") -- quando alguem tenta usar outfit q n é da sua vocação end end for x = 1, #vocs do if string.find(string.lower(vocs[x].vname), string.lower(param)) and getPlayerVocationName(cid) == vocs[x].vname then addEvent( function() doRemoveCondition(cid, CONDITION_OUTFIT) setPlayerStorageValue(cid, storage, -1) end, vocs[x].cd * 60 * 1000) -- tempo em minutos para a outfit sair doSendMagicEffect(getThingPos(cid), vocs[x].effect) -- efeito que sai quando usa o comando doSetCreatureOutfit(cid, {lookType = vocs[x].outfit, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet}, -1) setPlayerStorageValue(cid, storage, 1) doPlayerSendTextMessage(cid,25,"Você ganhou temporariamente um outfit de ".. vocs[x].vname .."!") end end return true end
-
gabrielzika's post in (Resolvido)Baú que precise de level. was marked as the answer@leozincorsair
local level = 200 local premio = 2160 local storage = 444445 function onUse(cid, item, frompos, item2, topos) if item.uid == 7181 then queststatus = getPlayerStorageValue(cid,storage) if queststatus == -1 then if getPlayerLevel(cid) >= level then doPlayerSendTextMessage(cid,25,"Parabens...") doPlayerAddItem(cid,premio,1) setPlayerStorageValue(cid,storage,1) else doPlayerSendTextMessage(cid,25,"Voce Precisa de LEVEL "..level..".") end else doPlayerSendTextMessage(cid, 22, "Vázio") end return 0 end return 1 end
<action uniqueid="7181" event="script" value="quests/NomeDoArquivo.lua"/>
-
gabrielzika's post in (Resolvido)[DUVIDA] Problema ao mudar IP do cliente was marked as the answer@leolovee69 veja ai onde você errou!
editei o client aqui e está funcionando.
Tibia.exe
-
gabrielzika's post in (Resolvido)NPC Que troca storage por itens was marked as the answer@amoxicilina
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 = 12400, item2 = 12400, item3 = 12400, item4 = 12400, count1 = 5, count2 = 5, count3 = 5, count4 = 10, level = 300, -- Level que precisara para viajar sto = 99952, -- Storage não mecher tempo = 172800, -- tempo que vai durar a storage quest = 444454, -- quest necessaria... } if msgcontains(msg, 'mission') then if (getPlayerStorageValue(cid, config.sto) <= os.time()) then if getPlayerStorageValue(cid, config.quest) >= 1 then if getPlayerItemCount(cid, config.item1) >= config.count1 and getPlayerItemCount(cid, config.item2) >= config.count2 and getPlayerItemCount(cid, config.item3) >= config.count3 and getPlayerItemCount(cid, config.item4) >= config.count4 then selfSay('Claro, você foi para a próxima missão. Boa sorte.', cid) setPlayerStorageValue(cid, config.sto, os.time()+config.tempo) doPlayerRemoveItem(cid, config.item1, config.count1) doPlayerRemoveItem(cid, config.item2, config.count2) doPlayerRemoveItem(cid, config.item3, config.count3) doPlayerRemoveItem(cid, config.item4, config.count4) else selfSay('Traga-me os 25 protective charm para poder treinar comigo por dois dias.', cid) end else selfSay("voce nao completou a quest do vilarejo dos orc ao south da cidade, complete-a e e mostre-me que voce e realmente um guerreiro promissor.", cid) end else selfSay('Você Ja fez essa missão!' , cid) return true end end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
xml
<?xml version="1.0" encoding="UTF-8"?> <npc name="NomeDoNpc" script="NomeDoArquivo.lua" walkinterval="0" floorchange="0"> <health now="150" max="150"/> <look type="589" head="20" body="100" legs="50" feet="99" corpse="2212"/>] <parameters> <parameter key="message_greet" value="Parabens, voce provou-me que e um guerreiro promissor. Se quiser continuar diga {mission}."/> </parameters> </npc>
-
gabrielzika's post in (Resolvido)[PEDIDO] Efeito no player ao morrer was marked as the answer@Christinacsa Bom, eu não conheço muito o sistema de bless mas ve se tá certo oque eu entendi...
data/globalevents
efeitobless.lua
function onThink(interval, lastExecution, thinkInterval) local list = {} for i, tid in ipairs(getPlayersOnline()) do list[i] = tid end for i = 1, #list do if not getPlayerBlessing(list[i], 1) and not getPlayerBlessing(list[i], 2) and not getPlayerBlessing(list[i], 3) and not getPlayerBlessing(list[i], 4) and not getPlayerBlessing(list[i], 5) then doSendMagicEffect(getThingPos(list[i]), 165) end end return true end
globalevents.xml
<globalevent name="bless" interval="2" event="script" value="efeitobless.lua"/>
-
gabrielzika's post in (Resolvido)[PEDIDO] Npc de Viajem was marked as the answer@bismarkzika
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 = { level = 300, -- Level que precisara para viajar sto = 44444, -- Storage não mecher pos = {x = 1037, y = 1036, z = 7}, -- Position para onde o player sera teleportado } if msgcontains(msg, 'yes') then if getPlayerStorageValue(cid, config.sto) < 1 then if getPlayerLevel(cid) >= config.level then selfSay('Parábens', cid) setPlayerStorageValue(cid, config.sto, 1) doTeleportThing(cid, config.pos) else selfSay('Você não tem o level necessário.', cid) end else selfSay('você já viajou comigo!' , cid) return true end end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
-
gabrielzika's post in (Resolvido)Mudar Elemento dá Wand por Item was marked as the answer@Gabrielk ai Mano
function onUse(cid, item, fromPos, itemEx, toPos) ItemFire = 13743 -- ID dos Itens que precisa pra cada efeito... by: garden ItemIce = 13744 ItemPoison = 13745 ItemDeath = 13746 ItemEnergy = 13747 ItemPhysical = 13748 ItemHoly = 13749 id = 7735 --- aqui vai o id da wand types = { [ItemFire] = {effect = 1, name = "fire"}, -- [ItemID] = {effect = Numero do Efeito, name = Nome do Efeito} [ItemIce] = {effect = 2, name = "ice"}, [ItemPoison] = {effect = 3, name = "poison"}, [ItemDeath] = {effect = 4, name = "death"}, [ItemEnergy] = {effect = 5, name = "energy"}, [ItemPhysical] = {effect = 6, name = "energy"}, [ItemHoly] = {effect = 7, name = "holy"} } local wand_left = getPlayerSlotItem(cid, CONST_SLOT_LEFT).itemid local wand_right = getPlayerSlotItem(cid, CONST_SLOT_RIGHT).itemid if wand_left ~= id and wand_right ~= id then doPlayerSendCancel(cid, "Voce deve estar equipado com uma ".. getItemNameById(id) .." para usar este efeito.") return true end status = getPlayerStorageValue(cid, 4561) if status == types[item.itemid].effect then doPlayerSendTextMessage(cid, 27, "Desculpe, mais você já está usando o efeito ".. types[item.itemid].name .. ".") return true end setPlayerStorageValue(cid, 4561, types[item.itemid].effect) doPlayerSendTextMessage(cid, 27 , "Você mudou o elemento da wand para ".. types[item.itemid].name .. ".") doRemoveItem(item.uid, 1) return true end
xml
<action itemid="13743;13744;13745;13746;13747;13748;13749" event="script" value="NomeDoArquivo.lua" blockwalls="1"/>
-
gabrielzika's post in (Resolvido)Adicionar level para falar com NPC was marked as the answerlocal PRESENT_STORAGE = 29885 -- Storage ID local gifts = { {10, 6531, 1}, -- 1% to get Santa Hat [10] {30, 6512, 1}, -- 3% to get Santa Doll [30] {40, 2112, 1}, -- 4% to get Teddy Bear [40] {100, 2160, 10}, -- 10% to get 10 Crystal Coins [100] {150, 2688, 10}, -- 15% to get 10 Candy Canes [150] {150, 2152, 100}, -- 15% to get 100 Platinum Coins [150] {200, 2111, 5}, -- 20% to get 10 Snowballs [200] {250, 2675, 10}, -- 25% to get 10 Orange [250] {350, 2674, 15}, -- 35% to get 10 Red Apples [350] {500, 2687, 10} -- 50% to get 10 Cookies [500] } local level = 300 local keywordHandler = KeywordHandler:new() local npcHandler = NpcHandler:new(keywordHandler) NpcSystem.parseParameters(npcHandler) 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 SantaNPC(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerLevel(cid) < level then selfSay("you do not have the level you need...", cid) return true end if (parameters.present == true) then if (getPlayerStorageValue(cid, PRESENT_STORAGE) == 1) then selfSay("Do not try to trick me! You have already recieved your present...", cid) return true end local item = {} local reward = 0 local count = "" for i = 1, #gifts do item = gifts[i] if (math.random(0,999) < item[1]) then reward = item[2] subType = item[3] if subType > 1 then count = subType .. " " end break end end doPlayerAddItem(cid, reward, subType) setPlayerStorageValue(cid, PRESENT_STORAGE, 1) npcHandler:say('HO-HO-HO! I have ' .. count .. getItemNameById(reward) .. ' for you.', cid) else npcHandler:say('Come back when you start behaving.', cid) end npcHandler:resetNpc() return true end npcHandler:setMessage(MESSAGE_GREET, "HO-HO-HO, Merry Christmas |PLAYERNAME|. I have presents for the good children.") local noNode = KeywordNode:new({'no'}, SantaNPC, {present = false}) local yesNode = KeywordNode:new({'yes'}, SantaNPC, {present = true}) local node = keywordHandler:addKeyword({'present'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Have you been well behaved and good this year?...'}) node:addChildKeywordNode(yesNode) node:addChildKeywordNode(noNode) npcHandler:addModule(FocusModule:new()) @Andreeyyy ve se funciona não testei
-
gabrielzika's post in (Resolvido)Ae galera, queria colocar uma lava no chão do meu templo, e que pudesse se andar sobre ela. Quem me ajudar, REP+ daqele jeito, obrigado. was marked as the answercara 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
-
gabrielzika's post in (Resolvido)Chest was marked as the answerfunction 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
-
gabrielzika's post in (Resolvido)[PEDIDO] Alguem tem script que não pode usar 2 pokemons iguais? was marked as the answer@Gnius actions/scripts
goback.lua
local balls = getPokeballsInContainer(getPlayerSlotItem(cid, 3).uid) --by garden if #balls >= 1 then for _, uid in ipairs(balls) do local igual = getItemAttribute(uid, "poke") local igual1 = getItemAttribute(item.uid, "poke") if igual == igual1 then doSendMagicEffect(getCreaturePosition(cid), 2) doPlayerSendCancel(cid, "Você não pode usar dois pokes iguais.") return true end end end
-
gabrielzika's post in (Resolvido)Atake dos pokemon por LVL do player was marked as the answermanda seu move1.lua em data/talkactions
-
gabrielzika's post in (Resolvido)Você já pegou seu pokémon! was marked as the answerSempre que for criar quests diferentes substitua:
local storage = 40009
Exemplo:
local storage = 40010
Se você repetir a storage não dará para um player abrir os dois Baús. Espero ter ajudado!
-
gabrielzika's post in (Resolvido)Como colocar Sistema de Matar Player em Poketibia was marked as the answerSe o Servidor For (PDA)
Tenta assim vai em data/lib/some functions.lua e procure por = function canAttackOther(cid, pid)
[+] La em baixo antes do > if ehMonstro(cid) and ehMonstro(pid) and not isSummon(cid) and not isSummon(pid) then
adiciona isso:
if getTileInfo(getThingPos(cid)).pvp then
return "Can"
end
[+] Caso nao funcione ainda voce deixa no Modo (PvP-Enforced) e teste-o Dnv
Creditos: Nextbr
-
gabrielzika's post in (Resolvido)[Ajuda] Erro No Move1.lua was marked as the answerDeixa Já Resolvi Era Dois Poderes Que Eu Tinha Adicionado de Forma Errada Só Os Concertei