Ir para conteúdo

kavaskiva

Campones
  • Total de itens

    54
  • Registro em

  • Última visita

1 Seguidor

Sobre kavaskiva

Informações

  • Forma que conheci o xTibia
    Outros Sites
  • Sou
    Não Informado

Últimos Visitantes

796 visualizações

kavaskiva's Achievements

  1. voltei pro xTibia , tava estudando , e você vem com um português desses ??
  2. ultiliza [ spoiler] e [/ spoiler] para nao ficar feio e grande desse jeito ( tire os espaços . )
  3. do lado do botão OPEN tem uma tabela com numeros vai tentando até nao da erro ..
  4. kavaskiva

    spells que tira dano

    <instant name="golpe" words="golpe" lvl="12" prem="0" range="1" blockwalls="1" exhaustion="1000" needlearn="0" event="script" value="attack/golpe.lua"> </instant> tag ~~
  5. hsduasuhasudhasudhuasdsad era sono mesmo ^^, obrigado pela ajuda garou essa parte me ajudou muito . Seu erro foi utilizar getCreatureOutfit(cid) fora do escopo da função onLogin(cid), de modo que o parâmetro cid na tabela vai retornar nulo. dalvor tbm obrigado . @GAROU esse script seu local VOCATION_OUTFITS = { [1] = { [0] = 128, [1] = 136, }, } function onLogin(cid) local tmp = VOCATION_OUTFITS[getPlayerVocation(cid)][getPlayerSex(cid)] if tmp then local outfit = getCreatureOutfit(cid) outfit.lookType = tmp doCreatureChangeOutfit(cid, outfit) end return true end ta com o sexo invertido então deixei local outfits = { [1] = {lookType = 128} [2] = {lookType = 134} } function onLogin(cid) local tmp = outfits[getPlayerVocation(cid)][getPlayerSex(cid)] if tmp then local outfit = getCreatureOutfit(cid) outfit.lookType = tmp doCreatureChangeOutfit(cid, outfit) end return true end
  6. ;x sempre ue logo não seta a outfit alguém ae pode me ajudar , exemplo to classe mago vou para sei lá sacerdote ai continua com a outfit mago de vez setar para de sacerdote ^^ local outfits_male = { [1] = {lookType = 128, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [2] = {lookType = 134, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [3] = {lookType = 129, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [4] = {lookType = 130, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [5] = {lookType = 133, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [6] = {lookType = 131, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [7] = {lookType = 143, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [8] = {lookType = 145, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [9] = {lookType = 153, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [10] = {lookType = 289, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [11] = {lookType = 273, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [12] = {lookType = 146, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [13] = {lookType = 154, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0} } } local outfits_female = { [1] = {lookType = 136 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [2] = {lookType = 142 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [3] = {lookType = 139 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [4] = {lookType = 138 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [5] = {lookType = 141 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [6] = {lookType = 139 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [7] = {lookType = 147 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [8] = {lookType = 157 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [9] = {lookType = 149 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [10] = {lookType = 288 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [11] = {lookType = 270 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [12] = {lookType = 150 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [13] = {lookType = 158 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0} } function onLogin(cid) local voc_id = getPlayerVocation(cid) local myOutfit = getCreatureOutfit(cid) if voc_id > 0 then if getPlayerSex(cid) == 0 then myOutfit.lookType = outfits_female[voc_id] else myOutfit.lookType = outfits_male[voc_id] end doCreatureChangeOutfit(cid, myOutfit) end return true end
  7. Só uma objeção, existe ainda assim um sexo alem de male e female, PLAYERSEX_FEMALE = 0 PLAYERSEX_MALE = 1 PLAYERSEX_GAMEMASTER = 2 Pog mode: local tmp = VOCATION_OUTFITS[getPlayerVocation(cid)][math.min(1, getPlayerSex(cid))] hu3 substitui sua script pela minha , após logar em um char ele nao fica com a outfit ue deveria ficar , fica com uma tipo " inivisivel " em todos chars . é um azul fica brilhando ... Poste o erro do console, eu nao testei in game. não da erro no console '-'
  8. substitui sua script pela minha , após logar em um char ele nao fica com a outfit ue deveria ficar , fica com uma tipo " inivisivel " em todos chars . é um azul fica brilhando ...
  9. Cara, o outfit é uma tabela, que conte os seguintes dados: {lookType = 266, lookHead = 0, lookAddons = 0, lookLegs = 0, lookBody = 0, lookFeet = 0} -- valores exemplares apenas O valor que voce está configurando é referente ao lookType, que é o numero do outfit, os demais sao as cores e os addons. Logo para fazer a troca sem desfazer as cores, basta salvar o outfit numa variavel usando a função getCreatureOutfit(cid), e alterar o campo lookType como mostrado abaixo: local outfits_male = { [1] = {lookType = 128}, -- Sorcerer Female [2] = {lookType = 134}, -- Druid Female [3] = {lookType = 129}, -- Paladin Female [4] = {lookType = 130}, [5] = {lookType = 133}, [6] = {lookType = 131}, [7] = {lookType = 143}, [8] = {lookType = 145}, [9] = {lookType = 153}, [10] = {lookType = 289}, [11] = {lookType = 273}, [12] = {lookType = 146}, [13] = {lookType = 154} } local outfits_female = { [1] = {lookType = 136}, -- Sorcerer Male [2] = {lookType = 142}, -- Druid Male [3] = {lookType = 139}, -- Paladin Male [4] = {lookType = 138}, -- Knight Male [5] = {lookType = 141}, [6] = {lookType = 139}, [7] = {lookType = 147}, [8] = {lookType = 157}, [9] = {lookType = 149}, [10] = {lookType = 288}, [11] = {lookType = 270}, [12] = {lookType = 150}, [13] = {lookType = 158} } function onLogin(cid) local voc_id = getPlayerVocation(cid) local myOutfit = getCreatureOutfit(cid) if voc_id > 0 then if getPlayerSex(cid) == 0 then myOutfit.lookType = outfits_female[voc_id] else myOutfit.lookType = outfits_male[voc_id] end doCreatureChangeOutfit(cid, myOutfit) end return true end provando ao garou ue eu tento as vezes arrumar os scripts mais tenho dificuldade então tentei o maximo entender sua explicação deixando assim olha local outfits_male = { [1] = {lookType = 128, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [2] = {lookType = 134, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [3] = {lookType = 129, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [4] = {lookType = 130, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [5] = {lookType = 133, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [6] = {lookType = 131, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [7] = {lookType = 143, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [8] = {lookType = 145, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [9] = {lookType = 153, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [10] = {lookType = 289, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [11] = {lookType = 273, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [12] = {lookType = 146, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [13] = {lookType = 154, lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0} } } local outfits_female = { [1] = {lookType = 136 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [2] = {lookType = 142 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [3] = {lookType = 139 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [4] = {lookType = 138 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [5] = {lookType = 141 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [6] = {lookType = 139 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [7] = {lookType = 147 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [8] = {lookType = 157 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [9] = {lookType = 149 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [10] = {lookType = 288 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [11] = {lookType = 270 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [12] = {lookType = 150 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0}, [13] = {lookType = 158 lookHead = getCreatureOutfit(cid).lookHead, lookBody = getCreatureOutfit(cid).lookBody, lookLegs = getCreatureOutfit(cid).lookLegs, lookFeet = getCreatureOutfit(cid).lookFeet, lookAddons = 0} } function onLogin(cid) local voc_id = getPlayerVocation(cid) if getPlayerVocation(cid) > 0 then if getPlayerSex(cid) == 0 then doCreatureChangeOutfit(cid, outfits_female[voc_id]) else doCreatureChangeOutfit(cid, outfits_male[voc_id]) end end return true end e funfo de boas , obrigado ! rep ^^ ( encontei um erro tipo , ele não seta a outfit uando loga pode me da uma força ? )
  10. vá na pasta do seu OT ( a minha fica em C:\Users\antonio\Desktop\ragnatibia\ragna tibia ) procure o Config.Lua ( onde fica sua distro ) abra aperta ctrl + f e procure rateLoot = depois do = vai ter o numero é a chance do loot em geral !! se ficar 100 é 100% de drop é uma base para você entender , boa sorte ! e alterne ! bom dia rs , se ajudei rep ^^, fui
  11. onde esta o erro ? local outfits_male = { [1] = {lookType = 128}, -- Sorcerer Female [2] = {lookType = 134}, -- Druid Female [3] = {lookType = 129}, -- Paladin Female [4] = {lookType = 130}, [5] = {lookType = 133}, [6] = {lookType = 131}, [7] = {lookType = 143}, [8] = {lookType = 145}, [9] = {lookType = 153}, [10] = {lookType = 289}, [11] = {lookType = 273}, [12] = {lookType = 146}, [13] = {lookType = 154} } local outfits_female = { [1] = {lookType = 136}, -- Sorcerer Male [2] = {lookType = 142}, -- Druid Male [3] = {lookType = 139}, -- Paladin Male [4] = {lookType = 138}, -- Knight Male [5] = {lookType = 141}, [6] = {lookType = 139}, [7] = {lookType = 147}, [8] = {lookType = 157}, [9] = {lookType = 149}, [10] = {lookType = 288}, [11] = {lookType = 270}, [12] = {lookType = 150}, [13] = {lookType = 158} } function onLogin(cid) local voc_id = getPlayerVocation(cid) if getPlayerVocation(cid) > 0 then if getPlayerSex(cid) == 0 then doCreatureChangeOutfit(cid, outfits_female[voc_id]) else doCreatureChangeOutfit(cid, outfits_male[voc_id]) end end return true end nao grava a cor , exemplo eu deixo meu char todo azul , mais apos relogar ele fica todo branco ;x
  12. no meu dava esses erro também até hj nao consegui arrumar e,e
  13. tem algum tile com Action ID errado ^^, ou o Script do Tile ta errado , algo assim , ainda estou aprendendo rs ,
  14. só clicar em gostei , você já fez isto , boa sorte com seu projeto , tenha um bom dia ^^
  • Quem Está Navegando   0 membros estão online

    • Nenhum usuário registrado visualizando esta página.
×
×
  • Criar Novo...