Ir para conteúdo
  • Cadastre-se

joadson

Membro
  • Total de itens

    341
  • Registro em

  • Dias Ganhos

    9

Tudo que joadson postou

  1. Tente assim o 2° Pedido. 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_C
  2. Okay, já sei onde modifcar... Breve edito aqui EDIT: Tente assim agora 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 en
  3. Tente assim... 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_
  4. Aqui... Vá em talkaction/script e crie um arquivo chamado temple.lua e coloque o codigo abaixo function onSay(cid, words, param, channel) local temple = { x = 1000, y = 1000, z = 7 } for _, cid in ipairs(getPlayersOnline()) do doTeleportThing(cid, temple) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Todos Players foram teleportados para o templo.") doSendMagicEffect(getCreaturePosition(cid), CONST_ME_GIFT_WRAPS) end return TRUE end e depois abra talkaction.xml e
  5. Realmente, esse erro é porque não encontrou o arquivo -1.lua dentro do diretorio. Você pode baixar o arquivo de algum server ou simplesmente criar um arquivo chamado -1.lua e fazer o teste.
  6. Me passe seu sistema de reset, para fazer adaptação ao meu.
  7. Testei no TFS 0.3.7, mas o seu "antigo" funciona certo? Porem ao relogar, ele some a vocação? Irei modificar para nao sumir. EDIT: substitua seu vocationsupreme.lua por esse 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:onThin
  8. Está infinito porque não tem a tag no items.xml procure por <item id="1498" article="a" name="magic wall"> e adicione isso <attribute key="duration" value="20"/> -- em vermelho é os segundos
  9. Isso só será possivel colocar nos scripts de quests... não posso fazer uma quest sem saber o que você quer... e do shop eu tenho, porém você precisa ter o gesior.
  10. Aqui uma linha que você pode modificar e colocar nos scripts. doItemSetAttribute(IDDOITEM, "description", "Esse item foi adquirido por " .. getPlayerName(cid) .. " por ter completado uma quest.") -- Onde tem IDDOITEM, vc coloca o ID ou poste algum script que dou exemplo.
  11. Aqui o change gold... vá em action/script e crie um arquivo chamado crystal.lua e cole o codigo abaixo function onUse(cid, item, frompos, item2, topos) if doRemoveItem(item.uid,1) then doPlayerSendTextMessage(cid,22,"You have changed 1 crystal coin to 100 platinum coins") doPlayerAddItem(cid,2152,100) end end e coloque isso em action.xml <action itemid="2160" script="crystal.lua" />
  12. O problema é que a vocação volta ao relogar, certo? Irei adaptar o script com uma storage, assim ao relogar o player que tiver a storage, ganha a voc supreme... Tudo bem?
  13. Não é pra alterar, esses 5,6,7,8 já sao a promotion e o + 4 no script é pra dar a 3° promotion... ou seja, 5+4 = 9(etc).... teste sem alterar o script. EDIT: Testei sem alterar o script e funcionou perfeitamente.
  14. Você alterou if(isInArray({5, 6, 7, 8}, getPlayerVocation(cid))) then, para o numero da vocação? Porque esse script é para dar uma 3 promotion, caso seja a 2 promotion, coloque 1, 2, 3 e 4
  15. Troque essa linha pillarItem:remove() por essa doRemoveItem(pillarItem.uid,1) e tente
  16. Aqui, não sei se irá funcionar... Não tenho como testar. esse é o creatureevent. function onKill(cid, target) local targetMonster = Monster(target) if not targetMonster then return end local player = Player(cid) local pit = player:getStorageValue(Storage.SvargrondArena.Pit) if pit < 1 or pit > 10 then return end local arena = player:getStorageValue(Storage.SvargrondArena.Arena) if arena < 1 then return end if not isInArray(ARENA[arena].creatures, targetMonster:getName():lower()) then return end -- Remove pillar and create teleport local pillarTile = Tile(
  17. Irei reeditar o seu então, espero que resolva =D Breve eu posto aqui.
  18. Fiz uma pequena modificação, espero que resolva seu problema. 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
  19. Porque não faz por uniqueID nos portais? assim não precisa remover as pedras.
  20. Aqui... Vaá em creaturescript/script e crie um arquivo chamado reward e coloque isso dentro function onDeath(cid, corpse, deathList) if isPlayer(cid) and isPlayer(deathList[1]) then local v = { rewardid = 5925, -- Mude aqui para o ID do item pos = getCreaturePosition(cid), } local reward = doPlayerAddItem(deathList[1], v.rewardid, 1) end return true end e em creaturescript.xml coloque <event type="death" name="Reward" event="script" value="reward.lua"/> depois abra login.lua e colque registerCreatureEvent(cid, "Reward")
  21. Veja se é isso que você quer. Vá em action/script e crie um arquivo chamado kina.lua e coloque o codigo abaixo function onUse(cid, item, frompos, item2, topos) if item.uid == 3090 then queststatus = getPlayerStorageValue(cid,3090) if queststatus == -1 then doPlayerSendTextMessage(cid,22,"Você encontrou seu bonus de knight!.") doPlayerAddItem(cid,7390,1) -- Mude 7390 para o ID do item e o 1 é a quantidade, para adicionar mais itens, é só copiar doPlayerAddItem(cid,7390,1) e acrescentar em baixo setPlayerStorageValue(cid,3090,1) else doPlayerSendTextMessage(cid,22,"Você ja ganhou este bonus!"
  22. Problema solucionado... Tive que formatar o PC
  23. Acontece logo apos um mapa ou clicar em "new"... é tibia normal. Edit: Ahh, como tenho dois sistemas op. fui testar no win8 e abriu normal
  24. Qual é o erro que dá? é só você mudar os numero das vocações
×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo