Ir para conteúdo

Baalszor

Membro
  • Registro em

  • Última visita

Tudo que Baalszor postou

  1. Baalszor postou uma resposta no tópico em Suporte Tibia OTServer
    @Darwiinxp Amigo, as lib dos seus npcs devem estar erradas, podem não conter as funções necessárias, acabei de testar no meu server e funcionou normalmente.
  2. Baalszor postou uma resposta no tópico em Suporte Tibia OTServer
    @Darwiinxp 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 price = 60000 -------- precio if msgcontains(msg, 'bless') then ----------------Z lo que hay que decirle if isPremium(cid) == TRUE then if getPlayerMoney(cid) <= price then selfSay('I will give to you all blessings, but you will have to make a sacrifice. Are you prepared to pay '.. price ..' gold for the blessings?', cid) talkState[talkUser] = 1 else selfSay('Oh. You do not have enough money.', cid) talkState[talkUser] = 0 end else selfSay('Oh. Only premium players can buy blessings.', cid) talkState[talkUser] = 0 end elseif msgcontains(msg, 'yes') and talkState[talkUser] == 1 then if getPlayerBlessing(cid, 1) or getPlayerBlessing(cid, 2) or getPlayerBlessing(cid, 3) or getPlayerBlessing(cid, 4) or getPlayerBlessing(cid, 5) then selfSay('Sorry, but you already have one of the blessing.', cid) talkState[talkUser] = 0 else if doPlayerRemoveMoney(cid, price) == TRUE then doPlayerAddBlessing(cid, 1) doPlayerAddBlessing(cid, 2) doPlayerAddBlessing(cid, 3) doPlayerAddBlessing(cid, 4) doPlayerAddBlessing(cid, 5) selfSay('Now the Gods blessed you.', cid) else selfSay('Oh. You do not have enough money.', cid) end end elseif msgcontains(msg, 'no') and (talkState[talkUser] == 1) then selfSay('Ok, Good Bye Adventurer.', cid) talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  3. Baalszor postou uma resposta no tópico em Suporte Tibia OTServer
    @Darwiinxp 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 price = 60000 -------- precio if msgcontains(msg, 'bless') then ----------------Z lo que hay que decirle if isPremium(cid) == TRUE then if getPlayerMoney(cid) <= price then selfSay('I will give to you all blessings, but you will have to make a sacrifice. Are you prepared to pay '.. price ..' gold for the blessings?', cid) talkState[talkUser] = 1 else selfSay('Oh. You do not have enough money.', cid) talkState[talkUser] = 0 end else selfSay('Oh. Only premium players can buy blessings.', cid) talkState[talkUser] = 0 end elseif msgcontains(msg, 'yes') and talkState[talkUser] == 1 then if getPlayerBlessing(cid) < 0 then selfSay('Sorry, but you already have one of the blessing.', cid) talkState[talkUser] = 0 else if doPlayerRemoveMoney(cid, price) == TRUE then for i = 1, 5 then doPlayerAddBlessing(cid, i) selfSay('Now the Gods blessed you.', cid) else selfSay('Oh. You do not have enough money.', cid) end end elseif msgcontains(msg, 'no') and (talkState[talkUser] == 1) then selfSay('Ok, Good Bye Adventurer.', cid) talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  4. Baalszor postou uma resposta no tópico em Suporte Tibia OTServer
    @Darwiinxp tenta assim o npc de bless: 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 price = 60000 -------- precio if msgcontains(msg, 'bless') then ----------------Z lo que hay que decirle if isPremium(cid) == TRUE then if getPlayerMoney(cid) <= price then selfSay('I will give to you all blessings, but you will have to make a sacrifice. Are you prepared to pay '.. price ..' gold for the blessings?', cid) talkState[talkUser] = 1 else selfSay('Oh. You do not have enough money.', cid) talkState[talkUser] = 0 end else selfSay('Oh. Only premium players can buy blessings.', cid) talkState[talkUser] = 0 end elseif msgcontains(msg, 'yes') and talkState[talkUser] == 1 then if getPlayerBlessing(cid) < 0 then selfSay('Sorry, but you already have one of the blessing.', cid) talkState[talkUser] = 0 else if doPlayerRemoveMoney(cid, price) == TRUE then doPlayerAddBlessing(cid, 1) doPlayerAddBlessing(cid, 2) doPlayerAddBlessing(cid, 3) doPlayerAddBlessing(cid, 4) doPlayerAddBlessing(cid, 5) selfSay('Now the Gods blessed you.', cid) else selfSay('Oh. You do not have enough money.', cid) end end elseif msgcontains(msg, 'no') and (talkState[talkUser] == 1) then selfSay('Ok, Good Bye Adventurer.', cid) talkState[talkUser] = 0 end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  5. Sem querer desmerecer o Vitor Subhi, mas a versão dele nem se compara com essa do Woox. @WooX já tinha visto antes mas não deixa de me impressionar, muito foda.
  6. @WooX Parabéns pelo sistema, realmente bem desenvolvido e pensado em tudo.
  7. Baalszor postou uma resposta no tópico em Websites
    @WooX Parabéns pelo tópico Woox, como de costume REP+ por disponibilizar esse tipo de conteúdo.
  8. @WooX muito boa iniciativa de sua parte Leo, mas o administrador do servidor colocava os Mcs online para lotar o servidor, mas tá de parabéns.
  9. @Jonathan005 amigo é só você registrar a função do actionid no actions.xml <action actionid="2424" event="script" value="questlevel.lua"/> <action uniqueid="2424" event="script" value="questlevel.lua"/>
  10. @Jonathan005 opa, claro amigo, use como exemplo, se quiser usar este script já que está todo configurado só mudar o id do item : // se tiver alguma dúvida pergunte. function onUse(cid, item, frompos, item2, topos) -- script anexado por Henrique Baiak storage = 490 item = 2160 quantidade = 1 level = 8 if getPlayerLevel(cid) >= level and getPlayerStorageValue(cid,storage) == -1 then doPlayerSendTextMessage(cid,25,"Você recebeu seu item!") doPlayerAddItem(cid, item, quantidade) setPlayerStorageValue(cid,storage,1) elseif getPlayerLevel(cid) <= level then doPlayerSendTextMessage(cid,25,"Você precisa ser level 8 ou mais.") elseif getPlayerStorageValue(cid,storage) >= 1 then doPlayerSendTextMessage(cid,25,"Você já fez está quest") end return true end
  11. @Freitas Epilef creio que não coloque o ID da soft usada ai fica mais fácil para identificar.
  12. @Pifafa acho que o tutorial ideal para você é este:
  13. @Freitas Epilef adicione no item desejado as seguintes tags: <attribute key="showduration" value="1" /> <attribute key="duration" value="432000" /> <attribute key="transformDeEquipTo" value="ItemId que irá transformar depois que acabar o tempo" /> se der certo me fala ^^.
  14. @Jonathan005 tmj meu querido, abraço.
  15. @Jonathan005 claro a variável node1 que está promovendo um jogador está sendo utilizada para todos, tem que mudar no lugar de node1 coloque node2 e node3, claro nas funções de váriavel, se der certo me fala.
  16. É normal amigo.
  17. @Estilo.Server Utilize php7.0 amigo.
  18. @RaviRogowski Amigo recomendo baixar uma database limpa e ir adicionando as tabelas necessárias para seu OtServer, a pergunta do host tem vários na internet, depende do seu cash.
  19. @elli no item.xml o script vai estar configurado com a tag MaxHealthPoints, ai você muda lá, caso queira colocar para tirar a vida adicionada tem que registrar no movements.xml.
  20. @Jonathan005 utilize esse script ou usa como base para fazer o seu, grato. 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 node1 = keywordHandler:addKeyword({'promot'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'I can promote you for 20000 gold coins. Do you want me to promote you?'}) node1:addChildKeyword({'yes'}, StdModule.promotePlayer, {npcHandler = npcHandler, cost = 0, level = 7, promotion = 1, text = 'Congratulations! You are now promoted.'}) node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Alright then, come back when you are ready.', reset = true}) npcHandler:addModule(FocusModule:new())
  21. @Reds Grato, vou ver!
  22. @lordzetros Vo ver e te falo. @Reds Beleza, aguardo amanhã em. Infelizmente nenhum deu certo kkkk, mas aguardo o seu @Reds !
  23. Vou dar uma analisada!@Brunds @Reds Se for possivel me mandar no privado ou no face.
  24. .Qual servidor ou website você utiliza como base? Baiak Qual o motivo deste tópico? Estou com um problema em alterar o fast attack, antes eu tinha uma source boa com fast atk bom, mais alto até que eu tive que trocar de source, mas essa nova tem um fast diminuido e queria ver como faz para aumentar.

Informação Importante

Confirmação de Termo