HeltonMuniz2 10 Postado Março 3, 2014 Share Postado Março 3, 2014 (editado) Olá sou iniciante na área de Scripting, esse script foi pedido por um membro (Não me recordo o nome), nos servidores de Narutibia tem um Sistema de transformação eu apenas o converti, para Actions, assim o Jogador ira receber o item do NPC e poderá se Transformar, desculpem por tudo, em breve irei tentar fazer um Próprio. Testado Script Funcional TFS 0.3.6 pl, 854 Como o Script Funciona ? O Jogador clica no item (Roupa da Akatsuki), recebe uma Outfit e uma nova vocação (Podendo receber + Experiencia) Data/Actions/Script Crie um arquivo chamado Akatsuki.lua, e cole o código abaixo: local config = { --[vocation id] = { nova voc, looktype} [1] = { 208, 120}, [2] = { 209, 11}, [3] = { 210, 155}, [4] = { 2, 66}, [5] = { 2, 66}, [6] = { 2, 66}, [7] = { 2, 66}, [8] = { 2, 66}, [9] = { 2, 66}, [10] = { 2, 66}, [12] = { 2, 66}, [13] = { 2, 66}, [14] = { 2, 66} } function onUse(cid, item, frompos, item2, topos) local voc = config[getPlayerVocation(cid)] if voc then doPlayerSetVocation(cid, voc[1]) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Você Virou um Akatsuki Agora !!!") local outfit = {lookType = voc[2]} doCreatureChangeOutfit(cid, outfit) doRemoveItem(item.uid, 1) else doPlayerSendCancel(cid, "Você não pode se Tornar um Membro da Akatsuki!") end return true end Explicando: {[1] = Vocação2, = Nova Vocação100} = Nova Outfit Actions.xml <action itemid="ID DO ITEM" script="akatsuki.lua"/> Impossibilantando usar o Comando Transformar, Adicionando + Exp ganha. Como todos sabem o Sistema muda sua vocação sendo que ela não ira mais transformar, só se ela estiver na lista de Transforms. Data/Xml/ Vocations.xml experience="1.0"/> Atribua um valor a seu gosto para uma %+ de Experiencia Possíveis Coisas que Iram lhe ajudar a completar seu Sistema: NPC Troca Items por Items. Retirar Coração Créditos: Nowo Killua ErenJaeger Em breve irei refazer o script, e farei uma versão melhorada. Editado Março 3, 2014 por ErenJaeger Link para o comentário https://xtibia.com/forum/topic/229451-akatsuki-system-action/ Compartilhar em outros sites More sharing options...
Creatserv 0 Postado Março 5, 2014 Share Postado Março 5, 2014 Vou testa aki, só de ver eu jah vou gosta pq achei o maximo ganha o item da roupa. Ficou tipo vistido a roupa, eu tenho uma pergunta ao da look no player vaii ficar mostrando membre akatsuki. Link para o comentário https://xtibia.com/forum/topic/229451-akatsuki-system-action/#findComment-1619491 Compartilhar em outros sites More sharing options...
HeltonMuniz2 10 Postado Março 5, 2014 Autor Share Postado Março 5, 2014 Vou testa aki, só de ver eu jah vou gosta pq achei o maximo ganha o item da roupa. Ficou tipo vistido a roupa, eu tenho uma pergunta ao da look no player vaii ficar mostrando membre akatsuki. Por enquanto não esta embutido o Look. Link para o comentário https://xtibia.com/forum/topic/229451-akatsuki-system-action/#findComment-1619539 Compartilhar em outros sites More sharing options...
Creatserv 0 Postado Março 6, 2014 Share Postado Março 6, 2014 (editado) Mais vcs sabem coloka pra quando da look mostrar quer é da akatsuki. E se sober coloka no script. Editado Março 6, 2014 por Creatserv Link para o comentário https://xtibia.com/forum/topic/229451-akatsuki-system-action/#findComment-1619805 Compartilhar em outros sites More sharing options...
Dbko 120 Postado Março 29, 2014 Share Postado Março 29, 2014 va em Creaturescripts e procure por showvoc e apague tudo dentro e cole essa function onLook(cid, thing, position, lookDistance) if isPlayer(thing.uid) then local type = getPlayerStorageValue(thing.uid, 89745) doPlayerSetSpecialDescription(thing.uid, "\n "..(getPlayerSex(cid) == 0 and "She" or "He").." are "..(type < 0 and "Shinobi" or type == 1 and "Genin" or type == 2 and "Chunin" or type == 3 and "Jounin" or type == 6 and "Akatsuki" or type == 4 and "Anbu" or type == 5 and "Captain Anbu")) end return true end Agora salve e va em actions scripts e procure por sua scripts da akatsuki e substitua por essa local config = { --[vocation id] = { nova voc, looktype} [1] = { 2, 603}, [10] = { 10, 611}, [30] = { 30, 566} , [40] = { 40, 603}, [50] = { 50, 587}, [60] = { 60, 543}, [70] = { 70, 597}, [80] = { 80, 576}, [90] = { 90, 590}, [100] = { 100, 580}, [110] = { 110, 551}, [120] = { 120, 584}, [130] = { 130, 556}, [140] = { 140, 594}, [150] = { 150, 588}, [180] = { 180, 573}, [200] = { 200, 606}, [210] = { 210, 571}, [220] = { 220, 646}, [230] = { 230, 602} } function onUse(cid, item, frompos, item2, topos) local voc = config[getPlayerVocation(cid)] if voc then doPlayerSetVocation(cid, voc[1]) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Você Virou um Membro Da Akatsuki!!!") local outfit = {lookType = voc[2]} doCreatureChangeOutfit(cid, outfit) doRemoveItem(item.uid, 6) setPlayerStorageValue(cid, 89745, 6) setPlayerStorageValue(cid, storageGain, 89745) else doPlayerSendCancel(cid, "Você não pode se Tornar um Membro da Akatsuki!") end return true end Quando voce clikar no item ela vai lhe adicionar um storage no caso e o 6 que esta no showvoc E pronto toda Vez Que voce Der look Vai estar Na Akatsuki Porém ja tem meu topico que ja tem esta funçao com esse mesmo scripts Link para o comentário https://xtibia.com/forum/topic/229451-akatsuki-system-action/#findComment-1630712 Compartilhar em outros sites More sharing options...
Creatserv 0 Postado Abril 3, 2014 Share Postado Abril 3, 2014 Valeu Link para o comentário https://xtibia.com/forum/topic/229451-akatsuki-system-action/#findComment-1633028 Compartilhar em outros sites More sharing options...
Posts Recomendados