lgan 1 Postado Janeiro 3, 2014 Share Postado Janeiro 3, 2014 (editado) Fala galera, esse é meu primeiro tutorial então desde já peço desculpas se cometer algum erro...Bom hoje vou explicar como fiz para que um player rank 5 de determinado clan acerte com baixa efetividade um pokemon que normalmente não acerta devido ao elemento do mesmo.(como é na pxg), para que o seu ot fique um pouco mais balanceado, dando a chance de um Raibolt bater alguma coisa em um Orebound.vamos começar...primeiro vá em data\lib\configuration.lua - procure por: effectiveness logo abaixo você verá uma tabela onde esta a configuração de efetividade do ataque.você deve remover todos os atributos "non" de sua tabela, sua tabela deve ficar assim: effectiveness = {[WATERDAMAGE] = {super = {"rock", "ground", "fire"}, weak = {"water", "grass", "dragon", "electric"}},[NORMALDAMAGE] = {weak = {"rock", "steel"}, non = {"ghost"}},[FIGHTDAMAGE] = {super = {"normal", "rock", "steel", "ice", "dark"}, weak = {"flying", "poison", "bug", "psychic"}, non = {"ghost"}},[FLYINGDAMAGE] = {super = {"fighting", "bug", "grass"}, weak = {"rock", "steel", "electric"}},[POISONDAMAGE] = {super = {"grass"}, weak = {"poison", "ground", "rock", "ghost"}},[POISONEDDAMAGE] = {super = {"grass"}, weak = {"poison", "ground", "rock", "ghost"}},[GROUNDDAMAGE] = {super = {"poison", "rock", "steel", "fire", "electric"}, weak = {"bug", "grass"}},[ROCKDAMAGE] = {super = {"flying", "bug", "fire", "ice"}, weak = {"fighting", "ground", "steel"}},[bUGDAMAGE] = {super = {"grass", "psychic"}, weak = {"fighting", "flying", "poison", "ghost", "steel", "fire"}},[GHOSTDAMAGE] = {super = {"ghost", "psychic"}, weak = {"steel", "dark"}},[sTEELDAMAGE] = {super = {"rock", "ice"}, weak = {"steel", "fire", "water", "electric"}},[FIREDAMAGE] = {super = {"bug", "grass", "ice"}, weak = {"rock", "fire", "water"}},[bURNEDDAMAGE] = {super = {"bug", "grass", "ice"}, weak = {"rock", "fire", "water"}},[GRASSDAMAGE] = {super = {"ground", "rock", "water"}, weak = {"flying", "poison", "bug", "steel", "fire", "grass", "dragon"}},[ELECTRICDAMAGE] = {super = {"flying", "water"}, weak = {"grass", "electric", "dragon"}},[PSYCHICDAMAGE] = {super = {"fighting", "poison"}, weak = {"steel", "psychic"}},[iCEDAMAGE] = {super = {"flying", "ground", "grass", "dragon"}, weak = {"steel", "fire", "water", "ice"}},[DRAGONDAMAGE] = {super = {"dragon"}, weak = {"steel"}},[DARKDAMAGE] = {super = {"ghost", "psychic"}, weak = {"fighting", "steel", "dark"}},[MIRACLEDAMAGE] = {super = {"fighting", "poison"}, weak = {"steel", "psychic", "dark"}}, --alterado v1.6[DARK_EYEDAMAGE] = {super = {"ghost", "psychic"}, weak = {"steel", "dark", "normal"}}, --alterado v1.6[sEED_BOMBDAMAGE] = {super = {"ground", "rock", "water"}, weak = {"flying", "poison", "bug", "steel", "fire", "grass", "dragon"}}, --alterado v1.6[sACREDDAMAGE] = {super = {"bug", "grass", "ice"}, weak = {"rock", "fire", "water"}}, --alterado v1.6[MUDBOMBDAMAGE] = {super = {"poison", "rock", "steel", "fire", "electric"}, weak = {"bug", "grass"}}, --alterado v1.8} pode salvar e fechar.depois vá em: data\creaturescripts\scripts\exp2.0.luaprocure por: if damageCombat == GROUNDDAMAGE then if isInArray(specialabilities["levitate"], getCreatureName(cid)) then valor = 0 endend substitua por isso: if damageCombat == GROUNDDAMAGE then if isInArray(specialabilities["levitate"], getCreatureName(cid)) then if isSummon(attacker) then if getPlayerStorageValue(getCreatureMaster(attacker), 181627) >= 1 then valor = valor * 0.5 elseif getPlayerStorageValue(getCreatureMaster(attacker), 181627) <= 1 then valor = 0 end end endendif damageCombat == POISONDAMAGE then if isInArray(pokes[getCreatureName(cid)].type, "steel") or isInArray(pokes[getCreatureName(cid)].type2, "steel") then if isSummon(attacker) then if getPlayerStorageValue(getCreatureMaster(attacker), 181624) >= 1 then valor = valor * 0.5 elseif getPlayerStorageValue(getCreatureMaster(attacker), 181624) <= 1 then valor = 0 end end endendif damageCombat == POISONEDDAMAGE then if isInArray(pokes[getCreatureName(cid)].type, "steel") or isInArray(pokes[getCreatureName(cid)].type2, "steel") then if isSummon(attacker) then if getPlayerStorageValue(getCreatureMaster(attacker), 181624) >= 1 then valor = valor * 0.5 elseif getPlayerStorageValue(getCreatureMaster(attacker), 181624) <= 1 then valor = 0 end end endendif damageCombat == GROUNDDAMAGE then if isInArray(pokes[getCreatureName(cid)].type, "flying") or isInArray(pokes[getCreatureName(cid)].type2, "flying") then if isSummon(attacker) then if getPlayerStorageValue(getCreatureMaster(attacker), 181627) >= 1 then valor = valor * 0.5 elseif getPlayerStorageValue(getCreatureMaster(attacker), 181627) <= 1 then valor = 0 end end endendif damageCombat == GHOSTDAMAGE then if isInArray(pokes[getCreatureName(cid)].type, "normal") or isInArray(pokes[getCreatureName(cid)].type2, "normal") then if isSummon(attacker) then if getPlayerStorageValue(getCreatureMaster(attacker), 181624) >= 1 then valor = valor * 0.5 elseif getPlayerStorageValue(getCreatureMaster(attacker), 181624) <= 1 then valor = 0 end end endendif damageCombat == ELECTRICDAMAGE then if isInArray(pokes[getCreatureName(cid)].type, "ground") or isInArray(pokes[getCreatureName(cid)].type2, "ground") then if isSummon(attacker) then if getPlayerStorageValue(getCreatureMaster(attacker), 181621) >= 1 then valor = valor * 0.5 elseif getPlayerStorageValue(getCreatureMaster(attacker), 181621) <= 1 then valor = 0 end end endendif damageCombat == PSYCHICDAMAGE then if isInArray(pokes[getCreatureName(cid)].type, "dark") or isInArray(pokes[getCreatureName(cid)].type2, "dark") then if isSummon(attacker) then if getPlayerStorageValue(getCreatureMaster(attacker), 181629) >= 1 then valor = valor * 0.5 elseif getPlayerStorageValue(getCreatureMaster(attacker), 181629) <= 1 then valor = 0 end end endendif damageCombat == MUDBOMBDAMAGE then if isInArray(pokes[getCreatureName(cid)].type, "flying") or isInArray(pokes[getCreatureName(cid)].type2, "flying") then if isSummon(attacker) then if getPlayerStorageValue(getCreatureMaster(attacker), 181627) >= 1 then valor = valor * 0.5 elseif getPlayerStorageValue(getCreatureMaster(attacker), 181627) <= 1 then valor = 0 end end endend pronto está feito.por enquanto é isso galera qualquer duvida estou a disposição.... Creditos ao zipter98 que me ajudou a desenvolver o script respondendo a uma duvida minha em um outro post...valeu mesmo zipter98! Editado Janeiro 3, 2014 por lgan Link para o comentário https://xtibia.com/forum/topic/226462-fazendo-players-rank-5-acertar-pokes-null/ Compartilhar em outros sites More sharing options...
FlamesAdmin 262 Postado Janeiro 3, 2014 Share Postado Janeiro 3, 2014 (editado) Testando. --EDIT-- INFUNCIONAL. Editado Janeiro 3, 2014 por FlamesAdmin Link para o comentário https://xtibia.com/forum/topic/226462-fazendo-players-rank-5-acertar-pokes-null/#findComment-1598163 Compartilhar em outros sites More sharing options...
lgan 1 Postado Janeiro 3, 2014 Autor Share Postado Janeiro 3, 2014 "INFUNCIONAL"? aki esta funcionando perfeitamente.... provavelmente você fez algo de errado... Link para o comentário https://xtibia.com/forum/topic/226462-fazendo-players-rank-5-acertar-pokes-null/#findComment-1598169 Compartilhar em outros sites More sharing options...
Gabriel Couto 293 Postado Janeiro 3, 2014 Share Postado Janeiro 3, 2014 Rapaz, é scripting, não spriting! Tá bem bagunçado, dá uma arrumada ali. Se o cara fez algo errado, tente ajudar ele, é bom pra mostrar que sabe o que está fazendo Abraços. Link para o comentário https://xtibia.com/forum/topic/226462-fazendo-players-rank-5-acertar-pokes-null/#findComment-1598186 Compartilhar em outros sites More sharing options...
FlamesAdmin 262 Postado Janeiro 3, 2014 Share Postado Janeiro 3, 2014 (editado) "INFUNCIONAL"? aki esta funcionando perfeitamente.... provavelmente você fez algo de errado... Bom, se eu fiz algo errado, pois fiz mt bem oq ta ai ... editei a tabela " effectiveness " , blábláblá O erro ta no seu tutorial. Como o Anyur disse, da uma arrumada nesse tópico. Editado Janeiro 3, 2014 por FlamesAdmin Link para o comentário https://xtibia.com/forum/topic/226462-fazendo-players-rank-5-acertar-pokes-null/#findComment-1598189 Compartilhar em outros sites More sharing options...
xXMythuszXx 50 Postado Janeiro 4, 2014 Share Postado Janeiro 4, 2014 Seila cara, só acho que tinha que postar na área de scripting diréto, não tinha necessidade de postar em tutoriais, só minha opinião. Mas obrigado pelo conteúdo. Abraços. Link para o comentário https://xtibia.com/forum/topic/226462-fazendo-players-rank-5-acertar-pokes-null/#findComment-1598768 Compartilhar em outros sites More sharing options...
lgan 1 Postado Janeiro 5, 2014 Autor Share Postado Janeiro 5, 2014 (editado) Também acho, mas em "Servidores Derivados" não tem uma área para scripts....se postei no lugar errado peço desculpas e podem mover se quiserem.... Ah... Só para constar... Chamou meu Tutorial de "INFUNCIONAL" mas usou ele em seu OT.... . https://www.facebook.com/PokemonBrutos?hc_location=timeline observe o post do dia 3 de janeiro... Lamentavel.... Editado Janeiro 5, 2014 por lgan Link para o comentário https://xtibia.com/forum/topic/226462-fazendo-players-rank-5-acertar-pokes-null/#findComment-1598793 Compartilhar em outros sites More sharing options...
Omega 377 Postado Janeiro 8, 2014 Share Postado Janeiro 8, 2014 Então, seu tutorial se encaixa melhor como tutorial de servidores derivados. Em breve alguém da equipe deve decidir sobre a aprovação ou reprovação. Boa sorte. Link para o comentário https://xtibia.com/forum/topic/226462-fazendo-players-rank-5-acertar-pokes-null/#findComment-1599929 Compartilhar em outros sites More sharing options...
Gabriel Couto 293 Postado Janeiro 8, 2014 Share Postado Janeiro 8, 2014 Rapaz, é scripting, não spriting! Tá bem bagunçado, dá uma arrumada ali. Se o cara fez algo errado, tente ajudar ele, é bom pra mostrar que sabe o que está fazendo Abraços. Podia ter arrumado.. Olá XTibiano! Infelizmente, seu tutorial foi reprovado. Procure por ajuda na seção de como formular um bom tutorial. Grato pela atenção. Movido. Link para o comentário https://xtibia.com/forum/topic/226462-fazendo-players-rank-5-acertar-pokes-null/#findComment-1599932 Compartilhar em outros sites More sharing options...
Posts Recomendados