Ir para conteúdo

danbsten

Membro
  • Registro em

  • Última visita

Tudo que danbsten postou

  1. Dou 10 reps se alguem me ajudar com essa parada Meu npc de spell vende a spell certinho e tal, mas os players ficam meio perdido pq tipo comprei intense healing, e agora? Como eu uso? Ai queria colocar uma descrição pra cada magia, tipo intense healing = exura gran, ai qnd ele compra-se intense healing ia dizer que é exura gran Exemplo: Como está no meu ot 20:44 Dan [16]: intense healing 20:44 Lea: You learned intense healing. Como eu queria 20:44 Dan [16]: intense healing 20:44 Lea: You learned intense healing! Spell: [exura gran]. Se puder tbm coloca no livro qnd fala 'spells pro npc' aqui ó for name, info in pairs(spells_t) do if isInArray(info.vocations, voc) and not getPlayerLearnedInstantSpell(cid, name) then table.insert(str, tostring(" {".. name .."} for ".. info.price .." gold coins,\n") ) end end Script de venda de spell: local spells_t = { -- all ["intense healing"] = {price = 350, vocations = {1,2,3,5,6,7}, level = 1}, -- exura gran } 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 if msgcontains(msg:lower(), "spells") then local str = {} local voc = getPlayerVocation(cid) for name, info in pairs(spells_t) do if isInArray(info.vocations, voc) and not getPlayerLearnedInstantSpell(cid, name) then table.insert(str, tostring(" {".. name .."} for ".. info.price .." gold coins,\n") ) end end if next(str) == nil then npcHandler:say("I have no magic to sell you.", cid) else doShowTextDialog(cid, 2175, table.concat(str)) end elseif spells_t[msg:lower()] then if getPlayerLearnedInstantSpell(cid, msg) then npcHandler:say("You have already learned this spell.", cid) return true end if getPlayerLevel(cid) < spells_t[msg:lower()].level then npcHandler:say("You need to be level ".. spells_t[msg:lower()].level.." or older to purchase this spell.", cid) return true end if not isInArray(spells_t[msg:lower()].vocations, getPlayerVocation(cid)) then npcHandler:say("You do not have the vocation to buy is spell.", cid) return true end if doPlayerRemoveMoney(cid, spells_t[msg:lower()].price) then doPlayerLearnInstantSpell(cid, msg) npcHandler:say("You learned ".. msg ..".", cid) else npcHandler:say("You do not have "..spells_t[msg:lower()].price.." gold coins.", cid) end end return true end npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback) npcHandler:addModule(FocusModule:new())
  2. Como dimunir os rates de skills de shield dessa vocação pra subir 2x mais de vagar? <vocation id="0" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="3" gainhpamount="2" gainmanaticks="1" gainmanaamount="4" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="yes"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/> </vocation>
  3. Pois bem, já foram 5, amanha te dou mais 5, obrigado!
  4. danbsten postou uma resposta no tópico em Suporte Tibia OTServer
    Seria muito bom saber, influenciaria no UP hand, tbm estou na espera
  5. Meu PC só tem 512 de RAM, impossível abrir um mapa global, ate explode rs' To fazendo um global compacto e queria só essa ultima room, das chests msm pra botar no meu mapa 8.60, mas pode ser qlqr versão, pq minha internet é boa, eu baixo e converto, só o PC msm Dou 10 reps qm me mandar, é só o ultimo salão msm, valeu, falou!
  6. danbsten postou uma resposta no tópico em Suporte Tibia OTServer
    uppp!
  7. danbsten postou uma resposta no tópico em Suporte Tibia OTServer
    Algume pode?
  8. danbsten postou uma resposta no tópico em Suporte Tibia OTServer
    Vi um topico queria usar, mas ql id disso?
  9. danbsten postou uma resposta no tópico em Suporte Tibia OTServer
    Ajuida ai cambada namoral!!
  10. danbsten postou uma resposta no tópico em Suporte Tibia OTServer
    UP
  11. Aquela enable exp no tibia 8.6 da exp bonus pra qm ta na party né? Qnt é o bonus? Como eu faço pra ter um bonus de 50% de exp a mais se tiver shareando a pt? É muito pra um ot exp 5? Ou é pouco?
  12. É cara de okolnir que ganha as armas de kina
  13. Claro q da, eu usei ela com esse id ai, mas não é a vial era um pote q nem dava pra colocar na bp, a vial tbm tem já vi em outro ot, mas alguem deve saber um jeioto facil ou deve saber ql id
  14. Gente toda arena quest q eu tento colocar no meu ot da bosta, alguem tem ela, testou pode me passar? Eu tinha um Mod junto com um mapa que pegava perdi pq meu pc deu bosta n tinha backup :\ Se alguem tiver adicionado ela em seu server me passa ai
  15. Tenho um script q toda vez q alguem pega top no ot manda uma broad pra todo mundo X é o novo top do ot passa Y no lvl 100! N da erros, nada, mas n funciona =\ Ve se consegue me ajudar alguem creatScript: login.lua newtop.lua
  16. 15:54 You see a trough of wine. ItemID: [1775]. Position: [X: 261] [Y: 1750] [Z: 12]. 15:54 You see a trough of blood. ItemID: [1775]. Position: [X: 262] [Y: 1749] [Z: 12]. Esse 1775 nem vial é, não consegui fazer vial dentro com mana fluid só com o id 15:55 You see a rum flask. It is empty. ItemID: [5553]. Position: [X: 259] [Y: 1752] [Z: 12]. Mas ficou uma bosta, tbm queria fazer mana fluid, mas queria fazer direito com vial bonitinho, n consigo achar isso de jeito nenhum
  17. E pq vc n avisou ao cara que tentou te ajudar lá no outro tópico em vez de criar 2 atoa?
  18. danbsten postou uma resposta no tópico em Suporte Tibia OTServer
    Rodou sem erros na distro, porem quando eu loguei não aconteceu nada, matei os montros não consegui loot nem nada, será que é porque isso ta em Mods? Não teria que adicionar ao Mod .xml?
  19. Pq vc n faz do jeito q o tddf te passou? http://www.tibiaking.com/forum/topic/40198-pedido-outfit-por-voca%C3%A7%C3%A3o/?view=findpost&p=228820
  20. Por que não seria? Conhecimento, se for poupar tempo seria otimo!
  21. danbsten postou uma resposta no tópico em Suporte Tibia OTServer
    Ja tentei... [Error - CreatureScript Interface] data/creaturescripts/scripts/login.lua:onLogin Description <luaDoCreateExecuteTalkaction> Creature not found
  22. danbsten postou uma resposta no tópico em Suporte Tibia OTServer
    Queria q toda vez q o player loga-se usa-se esse comando /autoloot add,gold coin Por causa do auto loot que eu to usando http://www.tibiaking.com/forum/topic/15722-auto-loot/
  23. Alguem me ajuda a passar esse mod pra pasta do ot? http://www.tibiaking.com/forum/topic/15722-auto-loot/

Informação Importante

Confirmação de Termo