
Tudo que Xiolones postou
-
ajuda editar esse script pequenas modificações Eu é urgente para mim, estou desesperado :(
Congratulations on the beautiful script my friend! If I could definitely help you, but for me this script is quite complex! Sorry!
-
[Spell] LIFESTEAL - útil
Amigo, não saia do objetivo do post, não é relacionado a SE TEM ou NÃO TEM! E sim, em fazer um novo para TIBIA TFS 0.4 Comentário desnecessário!
-
[Spell] LIFESTEAL - útil
Olá galera do TK, Tentei fazer uma spell que da DANO e ROUBA % desse dano causado e volta como vida .. Um LIFESTEAL Por exemplo: Eu level 300, dou 1,200 de dano na spell e curo 15% desse dano .. ou seja, iria curar 180 de vida ! Porém não obtive sucesso em fazer isso ! Alguém me ajuda ? TFS 0.4 - 8.6 REP +
-
[Action] Error script addon
Oh meu amigo, não era bem isso que eu queria mas obrigado pela ajuda! REP+ Créditos do script são todos seus ? Já dei um jeitinho aqui, mas de todo modo obrigado! //////translate Oh my friend, was not quite what I wanted but thanks for the help! REP + Credits the script are all yours? Already took a knack here, but thank you all so!
-
[Action] Error script addon
Obrigado pela sua ajuda, porém não funcionou, continuou na mesma de antes! Sabe o problema ? /////Translate Thanks for your help, but it did not work, remained the same as before! You know the problem?
-
[Action] Error script addon
Olá galera do TK Pois bem, eu estava desenvolvendo um script próprio para o meu servidor, recebi ajuda de alguns do TK porém não consegui deixá-lo 100% SCRIPT : TAG : <action uniqueid="4112" script="outfits/mage.lua" /> PRINT : Qual o problema com o script ? Pois bem, ele funciona, porém com um pequeno defeito! Ao invés de remover os items : local itens = {2160} local itens2 = {2189, 2191, 2187, 2190, 2181, 2188, 8921} --- e dar o addon para pessoa, ele simplesmente me manda a frase que eu não tenho os items necessários, mesmo estando com todos na mochila! Pra que este script serve ? Ao puxar a alavanca com o Action ID : 4112 ( if item.uid == 4112 then ) Ele removeria os items necessários e daria o addon FULL ( nesse caso o de MAGE ) , substituindo um NPC Ps : Deixei os NPCS no game por enquanto.. até arrumar este script ! Peço que me ajudem, por favor ! REP+ pra quem conseguir fazê-lo funcionar ! Agradeço desde já !
-
Quotes.
Tibia é arte, pklizar faz parte! Morrer é moda, eu sou foda! - Tibiano Sagaz
-
Error Script Outfit
Sei sim, o uniqueID está certo conforme a alavanca .. tô tentando aqui, se conseguir me ajudar, agente vai testando! ////up
-
Error Script Outfit
Nossa Orochi, belo script '-' me sinto humilhado! hehe Não deu error na distro, porém algo não deu certo.. Eu puxo a alavanca, e além dela não virar, ela não me manda nenhuma mensagem que eu preciso dos items ou que ganhei o addon .. Alguma coisa não funcionou, talvez a forma que coloquei.. olha como coloquei o script..pode ver se fiz algo errado ? Sò editei os items,storage(seguindo padrão), e os addons .. local outfits = { [4112] = { items = { [1] = {itemid = 2189, ammount = 1}, [2] = {itemid = 2191, ammount = 1}, [3] = {itemid = 2187, ammount = 1}, [4] = {itemid = 2190, ammount = 1}, [5] = {itemid = 2181, ammount = 1}, [6] = {itemid = 2188, ammount = 1}, [7] = {itemid = 8921, ammount = 1}, [8] = {itemid = 2160, ammount = 25}, }, out = { [1] = 130, -- Female [2] = 138, -- Male }, storageId = 100003, }, } function onUse(cid, item) local t = outfits[item.uid] if t then if getPlayerStorageValue(cid, t.storageId) <= 0 then for r = 1, #t.items do if(getPlayerItemCount(cid, t.items[r].itemid) < t.items[r].ammount) then doPlayerSendTextMessage(cid, 22, "You need "..t.items[r].ammount.." "..getItemNameById(t.items[r].itemid)) return true end doPlayerRemoveItem(cid, t.items[r].itemid, t.items[r].ammount) end doPlayerAddOutfit(cid, t.out[getPlayerSex(cid) + 1], 3) doPlayerSendTextMessage(cid, 22, "You won a new outfit.") setPlayerStorageValue(cid, t.storageId, 1) end end return true end
-
Error Script Outfit
arrumei o erro danves, vlw por esclarecer ! Porém, não sei porque, eu com todos os items na backpack, ainda fala que é necessários tais items pra poder concluir a quest.. Pela minha vista, o script não tem erros..mas sou leigo! Alan, tipo, o script deu certo, não tem erros na distro.. porém, mesmo eu com todos os items necessários, a quest me diz que ainda faltam items, que eu não os tenho! '---' Não to entendendo porque, o script parece estar certo!
-
Error Script Outfit
:'( Deu certo também não, o erro foi solucionado, porém mesmo com todos os items necessários, continua falando que está faltando os items! Já fiz todos os scripts, o único problema é colocar 2 items diferentes com quantidades diferentes .. '---'
-
!Esconder
Maneiro o script, só acho que tu poderia colocar pra gastar alguma coisa, dinheiro, item.. Porque se não fica muito zoado fácil, acho que pra server low exp 10k tava legal, e pra high exp uns 100k .. ou outra coisa, tipo um certo item..
-
Error Script Outfit
dá o mesmo error ! '--'
-
Error Script Outfit
function onUse(cid, item, frompos, item2, topos) local itens = {2160} local itens2 = {2189, 2191, 2187, 2190, 2181, 2188, 8921} if item.uid == 4112 then if getPlayerItemCount(cid, itens) >= 25 then doPlayerRemoveItem(cid, itens, 25) if getPlayerItemCount(cid, itens2) >= 1 then doPlayerRemoveItem(cid, itens2, 1) queststatus = getPlayerStorageValue(cid,100003) if queststatus == -1 then doPlayerSendTextMessage(cid,22,"You won a full mage addon!") doSendAnimatedText(getPlayerPosition(cid), "", TEXTCOLOR_ORANGE) doPlayerAddOutfit(cid,138,3) doPlayerAddOutfit(cid,120,3) setPlayerStorageValue(cid,100003,1) else doPlayerSendTextMessage(cid,22,"You own this addon!") end else doPlayerSendTextMessage(cid,22,"I need 1 wand of cosmic energy, 1 wand of draconia, 1 wand of dragonbreath, 1 wanf of inferno, 1 wand of vortex, 1 terra rod, 1 common akilles wand and more 250.000 cash for this addon!") end else return 0 end return 1 end Fiz isso não deu certo .. acho que tem alguma a coisa haver cm os 2 'ifs' O seu script não tem falhas! O problema é que só serve se for pegar items com a mesma quantidade.. exemplo 5 wand of inferno, 5 wands of decay .. Se fosse pra pegar 4 wands of inferno e 5 wands of decay, ele não encaixaria mais,, entende ?
-
Error Script Outfit
Vou testar aqui alan, e já dou a resposta ! /////edit Alan, deu certo! Porém, tipo estou fazendo isso com todos os addons, dai na opção de quantidade tem algumas falhas.. function onUse(cid, item, frompos, item2, topos) if item.uid == 4112 then if getPlayerItemCount(cid,2160) >= 25 then doPlayerRemoveItem(cid,2160,25) doPlayerRemoveItem(cid,2189,1) doPlayerRemoveItem(cid,2191,1) doPlayerRemoveItem(cid,2187,1) doPlayerRemoveItem(cid,2190,1) doPlayerRemoveItem(cid,2181,1) doPlayerRemoveItem(cid,2188,1) doPlayerRemoveItem(cid,8921,1) queststatus = getPlayerStorageValue(cid,100003) if queststatus == -1 then doPlayerSendTextMessage(cid,22,"You won a full mage addon!") doSendAnimatedText(getPlayerPosition(cid), "", TEXTCOLOR_ORANGE) doPlayerAddOutfit(cid,138,3) doPlayerAddOutfit(cid,120,3) setPlayerStorageValue(cid,100003,1) else doPlayerSendTextMessage(cid,22,"You own this addon!") end else doPlayerSendTextMessage(cid,22,"I need 1 wand of cosmic energy, 1 wand of draconia, 1 wand of dragonbreath, 1 wanf of inferno, 1 wand of vortex, 1 terra rod, 1 common akilles wand and more 250.000 cash for this addon!") end else return 0 end return 1 end Por exemplo esse, que remove 1 wand de cada, e 25 crystal coins .. como eu faria para funcionar pelo 'local items' ? //////edit acho que vou fazer um local itens2 .. será que da certo ?
-
Error Script Outfit
Sempre que eu adiciona da error ! Pode dar um exemplo de como faz sem dar error ? ////edit function onUse(cid, item, frompos, item2, topos) if item.uid == 4113 then if getPlayerItemCount(cid,2476) >= 5 then doPlayerRemoveItem(cid,2476,5) if getPlayerItemCount(cid,2477) >= 5 then doPlayerRemoveItem(cid,2477,5) if getPlayerItemCount(cid,2396) >= 5 then doPlayerRemoveItem(cid,2396,5) queststatus = getPlayerStorageValue(cid,100004) if queststatus == -1 then doPlayerSendTextMessage(cid,22,"You won a full knight addon!") doSendAnimatedText(getPlayerPosition(cid), "", TEXTCOLOR_ORANGE) doPlayerAddOutfit(cid,139,3) doPlayerAddOutfit(cid,131,3) setPlayerStorageValue(cid,100004,1) else doPlayerSendTextMessage(cid,22,"You own this addon!") end else doPlayerSendTextMessage(cid,22,"You do not have the items needed to make the addon!") end else return 0 end return 1 end faço assim e da error no script ! daquele outro jeito o script dá certo..mas buga !
-
Error Script Outfit
Olá galera do TK! Gostaria de uma ajuda no seguinte script function onUse(cid, item, frompos, item2, topos) if item.uid == 4113 then if getPlayerItemCount(cid,2476) >= 5 then doPlayerRemoveItem(cid,2476,5) doPlayerRemoveItem(cid,2477,5) doPlayerRemoveItem(cid,2396,5) queststatus = getPlayerStorageValue(cid,100004) if queststatus == -1 then doPlayerSendTextMessage(cid,22,"You won a full knight addon!") doSendAnimatedText(getPlayerPosition(cid), "", TEXTCOLOR_ORANGE) doPlayerAddOutfit(cid,139,3) doPlayerAddOutfit(cid,131,3) setPlayerStorageValue(cid,100004,1) else doPlayerSendTextMessage(cid,22,"You own this addon!") end else doPlayerSendTextMessage(cid,22,"You do not have the items needed to make the addon!") end else return 0 end return 1 end ps: (não sei colocar spoiler nesse editor) Como funciona: Coloquei o UniqueID em uma alavanca, que ao clicar nesta alavanca, ela removerá os items (knight armor, knight legs e ice rapiers (5x cada), e lhe dará o addon de Knight ! Porém, está com um bug, que só confere a knight armor, se o cara estiver com apenas 5 knights armor, ele consegue concluir o addon ! Provavelmente o error está entre as linhas 3 à 6 .. e não consigo arrumar! Me ajudem a resolver este problema por favor, e disponibilizar este script pra galera do TK ! Sistema testado TFS 0.3.6 - Tibia 8.6 Vale REP +
-
Magias Novas
Bacana! Apesar de ser bem simples, muita gente não sabe..