Ir para conteúdo

PedroSTT

Banido
  • Registro em

  • Última visita

Tudo que PedroSTT postou

  1. È só refazer o client amigo
  2. function onUse(cid, item, frompos, item2, topos) local pos = {x=623, y=377, z=8} -- pos que precisara estar para ser teleportado local newpos = {x=623, y=377, z=8} -- pos que ira ser teleportado local effect = 10 -- efeito que ira sair ao ser teleportado local pid = getCreaturePosition(cid) local item1 = 2323 -- id do item 1 local item2 = 2327 -- id do item 2 local item3 = 2326 -- id do item 3 local item4 = 2325 -- id do item 4 local item5 = 2324 -- id do item 5 local qnt1 = 1 -- qnt do item1 necessaria local qnt2 = 1 -- qnt do item2 necessaria local qnt3 = 1 -- qnt do item3 necessaria local qnt4 = 1 -- qnt do item4 necessaria local qnt5 = 1 -- qnt do item5 necessaria if getCreaturePosition(cid) == pos then if getPlayerItemCount(cid, item1) >= qnt1 then if getPlayerItemCount(cid, item2) >= qnt2 then if getPlayerItemCount(cid, item3) >= qnt3 then if getPlayerItemCount(cid, item4) >= qnt4 then if getPlayerItemCount(cid, item5) >= qnt5 then doTeleportThing(cid, newpos) doSendMagicEffect(pid, effect) doPlayerSendTextMessage(cid, 24, "mensagem 1") doPlayerSendTextMessage(cid, 24, "mensagem 2") else doPlayerSendTextMessage(cid, 24, "voce nao tah na posicao certa") end else doPlayerSendTextMessage(cid, 24, "voce nao tem o item1 ou sua quantidade certa") end else doPlayerSendTextMessage(cid, 24, "voce nao tem o item2 ou sua quantidade certa") end else doPlayerSendTextMessage(cid, 24, "voce nao tem o item3 ou sua quantidade certa") end else doPlayerSendTextMessage(cid, 24, "voce nao tem o item4 ou sua quantidade certa") end else doPlayerSendTextMessage(cid, 24, "voce nao tem o item5 ou sua quantidade certa") end return true end
  3. O problema não é a script , no seu CLIENT o EFFECT 10 está vazio , lembre que se no Object builder estiver 11 , na script colocará 12 , sempre aumentando um numero.
  4. Fiz uma edição na script , tente novamente por favor.
  5. Poste a script do buff.
  6. PedroSTT postou uma resposta no tópico em Suporte Tibia OTServer
    Ok ... mudei de novo , veja se está funcionando.
  7. PedroSTT postou uma resposta no tópico em Suporte Tibia OTServer
    Fiz uma mudança na script la em cima , se não funcionar , me passe como vc esta configurando a script.
  8. PedroSTT postou uma resposta no tópico em Suporte Tibia OTServer
    Você configurou essa parte corretamente ? local item1 = 2323 -- id do item 1 local item2 = 2327 -- id do item 2 local item3 = 2326 -- id do item 3 local item4 = 2325 -- id do item 4 local item5 = 2324 -- id do item 5 local qnt1 = 1 -- qnt do item1 necessaria local qnt2 = 1 -- qnt do item2 necessaria local qnt3 = 1 -- qnt do item3 necessaria local qnt4 = 1 -- qnt do item4 necessaria local qnt5 = 1 -- qnt do item5 necessaria
  9. PedroSTT postou uma resposta no tópico em Suporte Tibia OTServer
    function onUse(cid, item, frompos, item2, topos) local item1 = 2323 -- id do item 1 local item2 = 2327 -- id do item 2 local item3 = 2326 -- id do item 3 local item4 = 2325 -- id do item 4 local item5 = 2324 -- id do item 5 local qnt1 = 1 -- qnt do item1 necessaria local qnt2 = 1 -- qnt do item2 necessaria local qnt3 = 1 -- qnt do item3 necessaria local qnt4 = 1 -- qnt do item4 necessaria local qnt5 = 1 -- qnt do item5 necessaria if getPlayerItemCount(cid , item1 ) >= qnt1 then if getPlayerItemCount(cid , item2 ) >= qnt2 then if getPlayerItemCount(cid , item3 ) >= qnt3 then if getPlayerItemCount(cid , item4 ) >= qnt4 then if getPlayerItemCount(cid , item5 ) >= qnt5 then doTeleportThing(cid, topos) doPlayerRemoveItem(cid, item1, qnt1) else doPlayerSendCancel(cid, "voce n tem o item") end else doPlayerSendCancel(cid, "voce n tem o item") end else doPlayerSendCancel(cid, "voce n tem o item") end else doPlayerSendCancel(cid, "voce n tem o item") end else doPlayerSendCancel(cid, "voce n tem o item ou sua quantidade certa") end return true end
  10. Creaturescripts.xml <event type="death" name="Boss1" script="boss1.lua"/> Script function onDeath(cid, corpse, deathList) local item = 1233 -- id do item que sera removido local pos = {x=623, y=377, z=8, stackpos=1} -- pos do item que sera removido local time = 5 -- minutos em que a passagem ficara aberta local rmv = getThingfromPos(pos) doRemoveItem(rmv.uid, 1) doBroadcastMessage("A passagem secreta foi aberta" , 20) addEvent(criar_item, 60000 * time) end function criar_item() local item = 1233 -- id do item que sera removido local pos = {x=623, y=377, z=8, stackpos=1} -- pos do item que sera removido doCreateItem(item, 1, pos) doBroadcastMessage("A passagem secreta foi aberta" , 20) end Registre a tag na XML do monstro <script> <event name="Boss1"/> </script>
  11. Se vc configurou certo , a mensagem irá aparecer
  12. PedroSTT postou uma resposta no tópico em Suporte Tibia OTServer
    function onStepIn(cid, item, position, fromPosition) local storage = 2310 -- Storage do reset local resets = 10 -- quantos resets precisa ter if getPlayerStorageValue(cid, storage) >= resets then doPlayerSendTextMessage(cid, 18, "voce passou") else doTeleportThing(cid, fromPosition) doPlayerSendTextMessage(cid, 18, "voce precisa ter no minímo ".. resets .." para passar aqui") end end
  13. Creaturescripts.xml <event type="death" name="Boss1" script="boss1.lua"/> Script function onDeath(cid, corpse, deathList) doBroadcastMessage("mensagem aqui", 20) return true end Registre a tag na XML do monstro <script> <event name="Boss1"/> </script>
  14. O Player não se transforma por que não tem a vocação certa para isso.
  15. Eu ja fiz a script , só procurar na aba scripts/mods e sistemas
  16. Creaturescripts.xml <event type="look" name="newLook" event="script" value="look.lua"/> Script function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) then doPlayerSetSpecialDescription(thing.uid, "\n "..(getPlayerSex(cid) == 0 and "Ela é uma" or "Ele é um").." ".. getPlayerVocation(thing.uid) .." \n Resets:[".. getPlayerStorageValue(thing.uid, reset)"] ") end return true end Registre a tag no login.lua registerCreatureEvent(cid, "newLook")
  17. Spell 01 local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -3.2, -0 , -2.2, -0) function onCastSpell(cid, var) local waittime = 0.5 -- Tempo de exhaustion local storage = 1000 local efeito = 3 -- efeito da spell if exhaustion.check(cid, storage) then doPlayerSendCancel(cid, "You are exhausted") return false end local position1 = {x=getThingPosition(getCreatureTarget(cid)).x, y=getThingPosition(getCreatureTarget(cid)).y, z=getThingPosition(getCreatureTarget(cid)).z} local target = {x=getThingPosition(getCreatureTarget(cid)).x, y=getThingPosition(getCreatureTarget(cid)).y, z=getThingPosition(getCreatureTarget(cid)).z} doSendMagicEffect(position1, efeito) doTeleportThing(cid, target) exhaustion.set(cid, storage, waittime) return doCombat(cid, combat, var) end Spell 02 -- crédito xWhiteWolf local function doPushCreature(target, cid) if target > 0 then if not isNpc(target) then local position = getThingPosition(cid) local fromPosition = getThingPosition(target) local x = ((fromPosition.x - position.x) < 0 and -1 or ((fromPosition.x - position.x) == 0 and 0 or 1)) local y = ((fromPosition.y - position.y) < 0 and -1 or ((fromPosition.y - position.y) == 0 and 0 or 1)) local toPosition = {x = fromPosition.x + x, y = fromPosition.y + y, z = fromPosition.z} if doTileQueryAdd(target, toPosition) == 1 and getTileInfo(toPosition).house == false then doTeleportThing(target, toPosition, true) end end end end local spell = {} spell.config = { [3] = { damageType = 1, areaEffect = 2, area = { {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0}, {0, 0, 1, 0, 0, 2, 0, 0, 1, 0, 0}, {0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, } }, [2] = { damageType = 1, areaEffect = 2, area = { {0, 0, 0, 0, 0, 0, 0}, {0, 0, 1, 1, 1, 0, 0}, {0, 1, 0, 0, 0, 1, 0}, {0, 1, 0, 2, 0, 1, 0}, {0, 1, 0, 0, 0, 1, 0}, {0, 0, 1, 1, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 0} } }, [1] = { damageType = 1, areaEffect = 2, area = { {0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0}, {0, 0, 1, 1, 1, 0, 0}, {0, 0, 1, 2, 1, 0, 0}, {0, 0, 1, 1, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0} } } } spell.combats = {} for _, config in ipairs(spell.config) do local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, config.damageType) setCombatParam(combat, COMBAT_PARAM_EFFECT, config.areaEffect) setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -4, 0, -4.7, 0) function onTargetCreature(cid, target) doPushCreature(target, cid) end setCombatCallback(combat, CALLBACK_PARAM_TARGETCREATURE, "onTargetCreature") setCombatArea(combat, createCombatArea(config.area)) table.insert(spell.combats, combat) end function onCastSpell(cid, var) for n = 1, #spell.combats do local alvo = {x=getThingPosition(getCreatureTarget(cid)).x, y=getThingPosition(getCreatureTarget(cid)).y, z=getThingPosition(getCreatureTarget(cid)).z} addEvent(doCombat, (n * 120), cid, spell.combats[n], var) addEvent(doTeleportThing, 3000, cid, alvo) end return true end Spell 03 Spell script Agora vá em creaturescripts Creaturescripts.xml e registre a tag <event type="think" name="Paralize" event="script" value="paralize.lua"/> Crie um arquivo.lua na pasta creaturescrips/scripts e cole isso dentro function onThink(cid, interval) local storage = 23432 -- deixe a mesma que na script da spell if getPlayerStorageValue(cid, storage) == 1 then doCreatureSetNoMove(cid, true) doPlayerSendTextMessage(cid, 22, "voce esta paralisado") return true end end Abra o login.lua na msm pasta e registre a tag. registerCreatureEvent(cid, "Paralize")
  18. PedroSTT postou uma resposta no tópico em Suporte Tibia OTServer
    O problema n é a script Enviado de meu SM-J120H usando Tapatalk
  19. PedroSTT postou uma resposta no tópico em Suporte Tibia OTServer
    Na frente de getCreatureMana coloque (cid) Enviado de meu SM-J120H usando Tapatalk
  20. PedroSTT postou uma resposta no tópico em Suporte Tibia OTServer
    Erro de configuracao seu. Enviado de meu SM-J120H usando Tapatalk
  21. PedroSTT postou uma resposta no tópico em Suporte Tibia OTServer
    function onSay(cid, words, param, channel) local reset = 2321 -- id da storage do reset local mining = 2113 -- id da storage do mining doPlayerSendTextMessage(cid, 23, " # Character Info # \n -Level: ".. getPlayerLevel(cid) .."\n -Resets: ".. getPlayerStorageValue(cid, reset) .."\n -Life: [".. getCreatureHealth(cid) .."/".. getCreatureMaxHealth(cid) .."]\n -Mana: [".. getCreatureMana "/".. getCreatureMaxMana(cid) .."]\n -Mining: ".. getPlayerStorageValue(cid, mining)"") return true end Imagino que seja uma talkaction que mostre essas informações do player.
  22. Exemplo , a function de pegar o level do player. Em tfs 0.x vai estar assim : getPlayerLevel(param) Já na 1.x vai estar assim : Player:getLevel(param)
  23. Script 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 storage = 3243 -- storage da quest if(msgcontains(msg, 'yes')) then if getPlayerStorageValue(cid, storage) == 1 then selfSay(cid, 'parabens') -- coloque entre ' ' oq o npc ira falar quando o player tiver a storage else selfSay(cid, 'volte qnd completa a quest') end return true end end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new()) XML <?xml version="1.0" encoding="UTF-8"?> <npc name="sensei" script="data/npc/scripts/npc.lua" walkinterval="2000" speed="0" floorchange="0"> <health now="100" max="100"/> <look type="45" head="19" body="113" legs="95" feet="115" addons="0"/> <parameters> <parameter key="message_greet" value="voce completou a quest ? {yes}" /> </parameters> </npc> Se ajudei deixe REP++ e marque como melhor resposta.

Informação Importante

Confirmação de Termo