Ir para conteúdo

bpm91

Membro
  • Registro em

  • Última visita

Tudo que bpm91 postou

  1. @iHolloway sim olha como eu fiz.
  2. @iHolloway dai vou colocar o npc da bless assim local storages = 8888888 function bless(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerStorageValue(cid,storages) == 1 then npcHandler:say('So receive the blessing of the life-giving earth, pilgrim!', cid) doSendMagicEffect(getCreaturePos(cid), 12) setPlayerStorageValue(cid,storages, 0) end if getPlayerStorageValue(cid,storages) >= 2 then npcHandler:say('You already have this blessing.', cid) end end keywordHandler:addKeyword({'bless'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Here you may receive the blessing {Spark of The Phoenix}'}) local node1 = keywordHandler:addKeyword({'phoenix'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'The Spark of the Phoenix is given by name and by the great pyromancer in the nearby fire temple. Do you wish to receive my part of the Spark if the Phoenix for 10000 gold?'}) node1:addChildKeyword({'yes'}, StdModule.bless, {npcHandler = npcHandler, number = 2, premium = true, baseCost = 10000, levelCost = 0, startLevel = 10, endLevel = 120}) node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Oh. You do not have enough money.'}) npcHandler:addModule(FocusModule:new()) porém o q ta acontecendo é, q eu n to conseguindo remover o storage sacas vou testar aki
  3. @iHolloway mas ai ficou if getPlayerStorageValue(cid,storages) == 0 then npcHandler:say('So receive the blessing of the life-giving earth, pilgrim!', cid) doSendMagicEffect(getCreaturePos(cid), 12) setPlayerStorageValue(cid,storages, 0) se o storage é 0 o pydar nao vai vender bless porque ele só responde se vc tiver o storage. correto?
  4. @iHolloway eu consegui arrumar o segundo npc q é o pydar, mas o kawil q é o q da storage nao funciona mais ficou assim NPC PYDAR (funcionando certo e dando a bless) 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 local storages = 8888888 function bless(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerStorageValue(cid,storages) == 2 then npcHandler:say('So receive the blessing of the life-giving earth, pilgrim!', cid) doSendMagicEffect(getCreaturePos(cid), 12) setPlayerStorageValue(cid,storages, 0) end if getPlayerStorageValue(cid,storages) >= 2 then npcHandler:say('You already have this blessing.', cid) end end keywordHandler:addKeyword({'bless'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Here you may receive the blessing {Spark of The Phoenix}'}) local node1 = keywordHandler:addKeyword({'phoenix'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'The Spark of the Phoenix is given by name and by the great pyromancer in the nearby fire temple. Do you wish to receive my part of the Spark if the Phoenix for 10000 gold?'}) node1:addChildKeyword({'yes'}, StdModule.bless, {npcHandler = npcHandler, number = 2, premium = true, baseCost = 10000, levelCost = 0, startLevel = 10, endLevel = 120}) node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, reset = true, text = 'Oh. You do not have enough money.'}) npcHandler:addModule(FocusModule:new()) npcHandler:addModule(FocusModule:new()) o problema está em o pydar remover a storage ao dar a bless, pra poder o kawil ( o primeiro npc) dar a storage novamente. 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 local storages = 8888888 function phoenix(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerStorageValue(cid,storages) == 0 then npcHandler:say('So receive the blessing of the life-giving earth, pilgrim!', cid) doSendMagicEffect(getCreaturePos(cid), 12) setPlayerStorageValue(cid,storages, 2) end if getPlayerStorageValue(cid,storages) >= 1 then npcHandler:say('You already have this blessing.', cid) end end keywordHandler:addKeyword({'bless'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Here you may receive the blessing {Spark of The Phoenix}'}) local node1 = keywordHandler:addKeyword({'phoenix'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'The Spark of the Phoenix is given by name and by the great pyromancer in the nearby fire temple. Do you wish to receive my part of the Spark if the Phoenix?'}) node1:addChildKeyword({'yes'}, phoenix, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then.', reset = true}) npcHandler:addModule(FocusModule:new())
  5. bpm91 postou uma resposta no tópico em Suporte Tibia OTServer
    @Bolletox esse script remove a velocidade da areia, eu preciso que apenas se ao usar o item. o erro está no <movevent type="StepIn" itemid="231;104" event="script" value="botaAreia.lua"/> <movevent type="StepOut" itemid="231;104" event="script" value="botaAreia.lua"/> pq ele altera a areia pra nao ter velociadade. neste caso teria q mudar o itemid ali pra outra coisa, ou o script desse jeito nao da erro na distro, nao altera a velocidade da areia, pois tambem nao funciona a bota ele deve andar normal na areia, apenas quando equipada aumente sua velocidade.
  6. bpm91 postou uma resposta no tópico em Suporte Tibia OTServer
    Alguem poderia mudar essa funçao pra mim? ela está em tfs 1.2 preciso dela pra 0.4 function onCastSpell(cid, var, isHotkey) if Tile(var:getPosition()):getTopCreature() then return doCombat(cid, combat, var) end end
  7. @Platinun creio q a opção de ficar na backpack e n ser movivel seria no item editor. mas pra ele ficar na bag e dar magic level seria aqui <movevent type="Equip" itemid="2641" slot="backpack" event="function" value="onEquipItem"/> <movevent type="DeEquip" itemid="2641" slot="backpack" event="function" value="onDeEquipItem"/> </item> <item id="2641" name="Item do outfit"> <attribute key="weight" value="50" /> <attribute key="magiclevelpoints" value="2" /> <attribute key="slotType" value="backpack" /> </item> agora pra o item dar o addon, ja teria q ser um script em action.
  8. Bom galera eu consegui criar os 2 npcs da bless de kazordoon, porém estou com algumas duvidas o primeiro npc q da o storage é esse 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 phoenix(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end if getPlayerStorageValue(cid,8888888) <= -1 then npcHandler:say('So receive the blessing of the life-giving earth, pilgrim.!', cid) doSendMagicEffect(getCreaturePos(cid), 12) setPlayerStorageValue(cid,8888888, 1) end end keywordHandler:addKeyword({'bless'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Here you may receive the blessing {Spark of The Phoenix}'}) local node1 = keywordHandler:addKeyword({'phoenix'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'The Spark of the Phoenix is given by name and by the great pyromancer in the nearby fire temple. Do you wish to receive my part of the Spark if the Phoenix? '}) node1:addChildKeyword({'yes'}, phoenix, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then.', reset = true}) npcHandler:addModule(FocusModule:new()) o segundo npc q verifica o storage e dá a blessing é esse 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 phoenix(cid, message, keywords, parameters, node) if(not npcHandler:isFocused(cid)) then return false end local player_gold = getPlayerItemCount(cid,2148) local player_plat = getPlayerItemCount(cid,2152)*100 local player_crys = getPlayerItemCount(cid,2160)*10000 local player_money = player_gold + player_plat + player_crys if player_money >= 10000 then if doPlayerRemoveMoney(cid,10000) and getPlayerStorageValue(cid,8888888) <= 1 and getPlayerBlessing(cid, 5) then npcHandler:say('Here is your blessing!', cid) setPlayerStorageValue(cid,8888888,-1) doSendMagicEffect(getCreaturePos(cid), 12) doPlayerAddBlessing(cid, 5) end else npcHandler:say('Alright then.', cid) end if getPlayerBlessing(cid,5) == -1 then npcHandler:say('You have already blessed you with this blessing.', cid) end end local node1 = keywordHandler:addKeyword({'phoenix'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Here you may receive the blessing {Spark of Phoenix}. But we must ask of you to sacrifice 10000 gold coins. Are you still interested?.'}) node1:addChildKeyword({'yes'}, phoenix, {npcHandler = npcHandler, onlyFocus = true, reset = true}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then.', reset = true}) npcHandler:addModule(FocusModule:new()) Eu preciso que o segundo npc venda apenas se eu NAO tiver o storage e a blessing. ( obs ele ta vendendo se eu falar toda hora) "então ele come todo o gold" preciso que ele verifique se tem os 2 e fale "voce já possui a bless tal" e se caso nao tenha nem storage nem a bless ele fale "voce deve falar com o Kawill. eu montei o script mas n consegui resolver essas 3 questoes
  9. @Master68 tenta if isPlayer @Master68 parece q sua source nao reconhece a função.
  10. bpm91 postou uma resposta no tópico em Suporte Tibia OTServer
    alguem poderia me ajudar com essa função? como adicionar? eu uso tfs 0.4
  11. alguem?
  12. @Celulose como?
  13. Alguem sabe o que é isso?
  14. @bibioliveira entao troca de source
  15. alguem pode dar um help?
  16. @bibioliveira veja seu spells xml, seu vocations, mas eu eu creio q os exausteds estão todos iguais exemplo 2 segundos. tem q ter um 1.8 e o outro 2.0
  17. @Jhonjhon775 cara eu n entendo dessebug, mas eu creio que o nome da guild é grande, comparado ao que é registrado o tamanho total permitido, ou uso de assentos. tem q ver isso ai. no config luga.
  18. fala gente, eu to com um problema no meu server, as runas saem mas o melee atack nao. alguem poderia me dar uma ajuda? eu preciso q os 2 saiam juntos e nao só 1 ou o outro .resolvido
  19. bpm91 postou uma resposta no tópico em Suporte Tibia OTServer
    @Icaro Simoes vc pode usar qualquer imagem no programa, se passa o 32x32 ele trava, e tem q estar em png pra fazer o bang
  20. bom galera, estou precisando dos 2 npcs de kazordoon,. tentei fazer o script mas n deu muito certo, como funciona, o player precisa ir em 1 npc, pedir um storage pra ele pra poder o segundo npc da bless verificar, vender a bless e remover o storage. se nao ele falará "vc precisa ir no primeiro npc" se alguem tiver o script pronto puder compartilhar agradeço, o meu tfs é 0.4
  21. também estou com esse problema. será que alguem sabe?
  22. @Gui Lima tu reviveu um post de 4 anos atrás '-'
  23. fala galera, criei uma key nova, porém ela nao abre a porta mesmo com o idaction setado nela. alguem poderia me dar um help? <item id="13487" article="a" name="kesabel key"> <attribute key="type" value="key" /> <attribute key="weight" value="200" /> </item> teria mais algum lugar pra registrar o id novo da key nova? em alguma action ou pasta?
  24. bpm91 postou uma resposta no tópico em Suporte Tibia OTServer
    no caso? local config = { str = 123123123, -- Global storage tempo = 10, -- Tempo para criar os monstros novamente itemID = 2159, -- ID do item a ser movido tileAID = 1231, -- Actionid do tile em que o item está monster = {"Demon", "Dragon"} -- Monstros } function Item(moveItem, fromPosition, position, cid) <<< essa parte ficaria item? if (moveItem.itemid == config.itemID and getTileInfo(fromPosition).actionid == config.tileAID and getGlobalStorageValue(config.str) < os.time()) then for _, i in ipairs(config.monster) do doCreateMonster(i, fromPosition) end setGlobalStorageValue(config.str, os.time() + 30) end return true end

Informação Importante

Confirmação de Termo