Ir para conteúdo

Makhai Drakon

Membro
  • Registro em

  • Última visita

Tudo que Makhai Drakon postou

  1. @J.L Desculpe, daqui a pouco dou uma olhada melhor no script, o range que eu te passei ele funciona para ataques, tava na esperança de funcionar como range de use também, calma aí que Jajá resolvo
  2. @Phesados Fiquei com preguiça de pensar muito, ai nem li direito, mas tenta isso Se não der coloca isso: addPokeToPlayer(cid, pokemon, 5, 5, nil, 0, btype, true) No lugar disso: addPokeToPlayer(cid, pokemon, 1, nil, btype, true)
  3. @ceesar90 Vamos pensar o seguinte, o cliente usa c++ que oque faria sentido MinGW e como tu já e formado deve entender como usa né a mesma coisa no server, mas caso não saiba ainda, tenta achar um tutorial de dev c++ ai que tu deve conseguir
  4. @J.L Coloca essa tag no items.xml dentro do item <attribute key="range" value="1" />
  5. @DarkRed Não tenho, Só e explica oque tu quer, tu falou que só queria colocar a bike lá, agr tu veio com uns erro nada haver?
  6. @DarkRed Mano, me fala denovo oque tu quer, explica direito.
  7. @DarkRed Mano, não consegui entender oque tu quer, mas eu arrumei as propiedades da sua bike, agora tu precisa ir lá no item editor e arrumar as propiedades dela lá Baixa esse obd e substitui pelo seu. NÂO ESQUECE DE MUDAR AS PROPIEDADES NO ITEMEDITOR!!!!!!!!!!!!!!!!! MARCA PICKUPABLE SÓ E SE QUISER UNPASSABLE bike_12149.obd
  8. Ué, mas ela já está no slot ?
  9. @Juliotb Agora tu pega o items.xml e items.otb na pasta data/items e cola na pasta data/854 do seu RME
  10. @Juliotb Provavel que esse rme não tem opção de extendend compila sua spr e dat sem extended e sem transparencia e testa
  11. @Andreeyyy Eu tinha editado ele, você usou a mais recente ?
  12. @Andreeyyy function onSay(cid, words, param) local restricao = {"Demon","Fire Devil"} for r = 1, #restricao do if param == restricao[r]then player:sendCancelMessage("Você não pode usar isto diga /goto restricao") return true end if param == "restricao" then player:sendCancelMessage(restricao[r]) return true end local player = Player(cid) if getPlayerGroupId(cid) > 3 then local target = Creature(param) if target == nil then player:sendCancelMessage("Creature not found.") return false end player:teleportTo(target:getPosition()) return false end end end ---------------------------------------------------------------------------------------- function onSay(player, words, param) local restricao = {"Demon","Fire Devil"} for r = 1, #restricao do if param == restricao[r]then player:sendCancelMessage("Você não pode usar isto diga /c restricao") return true end if param == "restricao" then player:sendCancelMessage(restricao[r]) return true end if not player:getGroup():getAccess() then return true end local creature = Creature(param) if not creature then player:sendCancelMessage("A creature with that name could not be found.") return false end local oldPosition = creature:getPosition() local newPosition = creature:getClosestFreePosition(player:getPosition(), false) if newPosition.x == 0 then player:sendCancelMessage("You can not teleport " .. creature:getName() .. ".") return false elseif creature:teleportTo(newPosition) then if not creature:isInGhostMode() then oldPosition:sendMagicEffect(CONST_ME_POFF) newPosition:sendMagicEffect(CONST_ME_TELEPORT) end end return false end end
  13. @gabrielzika Porque ta randomizando se so tem uma frase?
  14. Makhai Drakon postou uma resposta no tópico em Suporte Tibia OTServer
    @ludgeromf1 Mano o vip vai de qualquer forma para todas os chars, o vip e adicionado a conta e não ai personagem, para isso vocês teria que refazer a database.
  15. Makhai Drakon postou uma resposta no tópico em Suporte Tibia OTServer
    @mostjf Entendi não
  16. @Andreeyyy function onSay(cid, words, param) local restricao = {"Demon","Fire Devil"} if param == "restricao" player:sendCancelMessage(restricao[r]) return true end for r = 1, #restricao do if param == restricao[r]then local player = Player(cid) if getPlayerGroupId(cid) > 3 then local target = Creature(param) if target == nil then player:sendCancelMessage("Creature not found.") return false end player:teleportTo(target:getPosition()) return false end end player:sendCancelMessage("Você não pode usar isto diga /goto restricao") end end ---------------------------------------------------------------------------------------- function onSay(player, words, param) local restricao = {"Demon","Fire Devil"} if param == "restricao" player:sendCancelMessage(restricao[r]) return true end for r = 1, #restricao do if param == restricao[r]then if not player:getGroup():getAccess() then return true end local creature = Creature(param) if not creature then player:sendCancelMessage("A creature with that name could not be found.") return false end local oldPosition = creature:getPosition() local newPosition = creature:getClosestFreePosition(player:getPosition(), false) if newPosition.x == 0 then player:sendCancelMessage("You can not teleport " .. creature:getName() .. ".") return false elseif creature:teleportTo(newPosition) then if not creature:isInGhostMode() then oldPosition:sendMagicEffect(CONST_ME_POFF) newPosition:sendMagicEffect(CONST_ME_TELEPORT) end end return false end player:sendCancelMessage("Você não pode usar isto diga /c restricao") end end
  17. @SouDeus Mano Se for dar umas respostas dessa e melhor ficar queto não acha ? @Andreeyyy Testei não mano adicionei a função de vem quais são as restrições Bom aproveito! /goto function onSay(cid, words, param) local restricao = {"Demon","Fire Devil"} if param == "restricao" doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, restricao[r]") return true end for r = 1, #restricao do if param == restricao[r]then local player = Player(cid) if getPlayerGroupId(cid) > 3 then local target = Creature(param) if target == nil then player:sendCancelMessage("Creature not found.") return false end player:teleportTo(target:getPosition()) return false end end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode usar isto diga /goto restricao") end end /c function onSay(player, words, param) local restricao = {"Demon","Fire Devil"} if param == "restricao" doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, restricao[r]") return true end for r = 1, #restricao do if param == restricao[r]then if not player:getGroup():getAccess() then return true end local creature = Creature(param) if not creature then player:sendCancelMessage("A creature with that name could not be found.") return false end local oldPosition = creature:getPosition() local newPosition = creature:getClosestFreePosition(player:getPosition(), false) if newPosition.x == 0 then player:sendCancelMessage("You can not teleport " .. creature:getName() .. ".") return false elseif creature:teleportTo(newPosition) then if not creature:isInGhostMode() then oldPosition:sendMagicEffect(CONST_ME_POFF) newPosition:sendMagicEffect(CONST_ME_TELEPORT) end end return false end doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você não pode usar isto diga /c restricao") end end
  18. @Fernandooww Mano em npc order coloca um numero a mais do que o npc anterior e em posquest coloca o lugar onde sera teleportado no 4 npc 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 local npcOrder = 1 -- edite a ordem do npc local posquest = {x = 1127, y = 1048, z = 10} --pos para ser teleportado local npctelep = 4 -- quando o npcorder for 4 o player sera teleportado local t = { [1] = {keyword = "kazordoon", text = "Bela cidade construída pelos seres mais fortes, os dwarfs."}, -- palavra-chave, texto [2] = {keyword = "mushroom", text = "Comida típica dos dwarfs. A propósito, você não teria algum para mim?"} } function creatureSayCallback(cid, type, msg) local talkUser, msg = NPCHANDLER_CONVbehavior == CONVERSATION_DEFAULT and 0 or cid, string.lower(msg) if(not npcHandler:isFocused(cid)) then if isInArray({"hi", "hello"}, msg) then if (getPlayerStorageValue(cid, 96772) == -1 and npcOrder == 1) or getPlayerStorageValue(cid, 96772) == npcOrder then npcHandler:addFocus(cid) npcHandler:say("Olá, "..getPlayerName(cid).."! Você tem algo a me dizer?", cid) talkState[talkUser] = 1 else npcHandler:addFocus(cid) npcHandler:say("Olá, "..getPlayerName(cid).."! Talvez possamos conversar outra hora...", cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) end else return false end elseif t[talkState[talkUser]] and msgcontains(msg, t[talkState[talkUser]].keyword) then npcHandler:say(t[talkState[talkUser]].text, cid) if talkState[talkUser] == #t then setPlayerStorageValue(cid, 96772, npcOrder + 1) talkState[talkUser] = 0 if getPlayerStorageValue(cid, 96772) == npctelep then doTeleportThing(cid, posquest) end else talkState[talkUser] = talkState[talkUser] + 1 end elseif msgcontains(msg, "bye") then npcHandler:say("Bye.", cid) talkState[talkUser] = 0 npcHandler:releaseFocus(cid) else npcHandler:say("WHAT?", cid) talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
  19. @Christinacsa local cfg = { need_item = {5785, 10, 2160, 10}, reward_item = {13506, 1, 2160, 1, 2161, 1, 2162, 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]) doPlayerAddItem(cid, cfg.reward_item[3], cfg.reward_item[4]) doPlayerAddItem(cid, cfg.reward_item[5], cfg.reward_item[6]) doPlayerAddItem(cid, cfg.reward_item[7], cfg.reward_item[8]) selfSay('You just swap '.. cfg.need_item[2] cfg.need_item[1] ..' and '.. cfg.need_item[4] cfg.need_item[3] ..'for a kefla set', 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())
  20. @Psgamerbr Você editou tudo corretamente ? apareceu algum erro no log?
  21. @leozincorsair Colocou em minusculas o script ? ["sakura"] = {outfit = 300, effect = 29, cd = 60, vocation = 1, vname = "Sakura", msg = "Você ganhou temporariamente um outfit da Sakura!"}, Na parte onde esta escritro ["sakura"] precisa ser tudo em minuscula! Adicionei a da vocaçã em vocation você coloca o id da vocação e em vname coloca o nome da vocação local a = { --[Talkaction] = {outfit = OutfitID, effect = EffectID, cd = Cooldown_em_minutos, msg = "Mensagem_enviada_ao_usar"}, ["sakura"] = {outfit = 300, effect = 29, cd = 60, vocation = 1, vname = "Sakura", msg = "Você ganhou temporariamente um outfit da Sakura!"}, ["sasuke"] = {outfit = 301, effect = 29, cd = 60, vocation = 2, vname = "Sasuke", msg = "Você ganhou temporariamente um outfit do Sasuke!"}, ["naruto"] = {outfit = 302, effect = 29, cd = 60, vocation = 3, vname = "Naruto", msg = "Você ganhou temporariamente um outfit do Naruto!"}, } function onSay(cid, words, param) local out = getCreatureOutfit(cid) local function ckfox() doCreatureChangeOutfit(cid, out) return true end local b = a[string.lower(param)] if getPlayerVocation(cid) == b.vocation then doCreatureChangeOutfit(cid, b.outfit) doSendMagicEffect(getThingPos(cid), b.effect) addEvent(ckfox, b.cd*60*1000) sendMsgToPlayer(cid, 27, b.msg) return true end sendMsgToPlayer(cid, 27, "Sua vocação é " .. getPlayerVocationName(cid) .." você precisa ser da vocação".. vname) return true end
  22. @Fernandooww Você quer que ele precise ter falado ou quer que ele fale as palavras ?
  23. @leozincorsair Testa ai em vez de perder outfit so quando deslogar, eu coloquei um tempo pra perder ela Pra usar e so falar /out sakura ou !out sakura ou /out sasukeou !out sasuke e assim vai... local a = { --[Talkaction] = {outfit = OutfitID, effect = EffectID, cd = Cooldown_em_minutos, msg = "Mensagem_enviada_ao_usar"}, ["Sakura"] = {outfit = 302, effect = 29, cd = 60, msg = "Você ganhou temporariamente um outfit da Sakura!"}, ["Sasuke"] = {outfit = 302, effect = 29, cd = 60, msg = "Você ganhou temporariamente um outfit do Sasuke!"}, ["Naruto"] = {outfit = 302, effect = 29, cd = 60, msg = "Você ganhou temporariamente um outfit do Naruto!"}, } function onSay(cid, words, param) local b = a[string.lower(param)] local out = getCreatureOutfit(cid) local function ckfox() doCreatureChangeOutfit(cid, out) return true end doCreatureChangeOutfit(cid, b.outfit) doSendMagicEffect(getThingPos(cid), b.effect) addEvent(ckfox, b.cd*60*1000) sendMsgToPlayer(cid, 27, b.msg) return true end <talkaction words="/out;!out" event="script" value="Nome_do_arquivo.lua"/>
  24. @Psgamerbr Testa ai em vez de perder outfit so quando deslogar, eu coloquei um tempo pra perder ela data/actions/scripts/outfit changer.lua local a = { --[ItemID] = {outfit = OutfitID, effect = EffectID, cd = Cooldown_em_minutos, msg = "Mensagem_enviada_ao_usar"}, [7070] = {outfit = 300, effect = 29, cd = 60, msg = "Você ganhou temporariamente um outfit de Grim Reaper!"}, [7071] = {outfit = 301, effect = 29, cd = 60, msg = "Você ganhou temporariamente um outfit de XXXX XXXXXX!"}, [7072] = {outfit = 302, effect = 29, cd = 60, msg = "Você ganhou temporariamente um outfit de XXXX XXXXXX!"}, } function onUse(cid, item, frompos, item3, topos) local b = a[item.itemid] local out = getCreatureOutfit(cid) local function ckfox() doCreatureChangeOutfit(cid, out) return true end doCreatureChangeOutfit(cid, b.outfit) doSendMagicEffect(getThingPos(cid), b.effect) addEvent(ckfox, b.cd*60*1000) sendMsgToPlayer(cid, 27, b.msg) return true end data/actions/actions.xml <action itemid="7070;7071;7072" event="script" value="outfit changer.lua"/>

Informação Importante

Confirmação de Termo