znnan 0 Posted March 10, 2014 Share Posted March 10, 2014 Galera fiz um wodbo usando o DBKO server,ai eu puis Mestre Kame,e nos vocations puis todos os IDS e talz,porém não axo o arquivo transform.lua e não consigo por transform nele alguem pode me ajudar? Link to comment Share on other sites More sharing options...
IvanAppel 87 Posted March 10, 2014 Share Posted March 10, 2014 www.xtibia.com/forum/topic/229380-como-criar-transforms-naruto-wodbo-bleach/ Link to comment Share on other sites More sharing options...
znnan 0 Posted March 10, 2014 Author Share Posted March 10, 2014 Véi da pa entender nada kkkk lamento Link to comment Share on other sites More sharing options...
willian12345 8 Posted March 10, 2014 Share Posted March 10, 2014 vai em data/talkactions/talkactions.xml e add essa tag <talkaction words="transformar" event="script" value="transformar.lua"/> depis vai em data/talkaction/script add um arquivo chamado transformar.lua e add isso local config = { --[vocation id] = { level, nova voc, looktype, efeito} [1] = { 1, 2, 66, 208}, } function onSay(cid, words, param, channel) local from,to = {x=1001, y=705, z=7},{x=1031, y=737, z=7} -- começo e final do mapa local from2,to2 = {x=1011, y=705, z=6},{x=1031, y=738, z=6} -- começo e final do mapa local from3,to3 = {x=1012, y=706, z=5},{x=1032, y=739, z=5} -- começo e final do mapa local from4,to4 = {x=985, y=598, z=7},{x=1044, y=652, z=7} -- começo e final do mapa local from5,to5 = {x=986, y=615, z=6},{x=1039, y=647, z=7} -- começo e final do mapa local from6,to6 = {x=990, y=616, z=5},{x=1040, y=647, z=5} -- começo e final do mapa if isInRange(getCreaturePosition(cid), from, to) or isInRange(getCreaturePosition(cid), from2, to2) or isInRange(getCreaturePosition(cid), from3, to3) or isInRange(getCreaturePosition(cid), from4, to4) or isInRange(getCreaturePosition(cid), from5, to5) or isInRange(getCreaturePosition(cid), from6, to6) then doPlayerSendCancel(cid, "Você não pode se Transformar nesta área!") return true end doPlayerSay(cid, "transformar") local voc = config[getPlayerVocation(cid)] if voc then if getPlayerLevel(cid) >= voc[1] then doPlayerSetVocation(cid, voc[2]) doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Você Transformou!") local outfit = {lookType = voc[3]} doCreatureChangeOutfit(cid, outfit) doSendMagicEffect(getCreaturePosition(cid), voc[4]) else doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Você precisa estar no level " .. voc[1] .. " para transformar.") end else doPlayerSendCancel(cid, "Você não pode se Transformar!") end return true end esplicando: [1] = { 1, 2, 66, 208}, em vermelho:vocation id em verde: level da tranformaçao em preto: new vocation em amarelo:newtype em azul:efeito ajudou rap++ Link to comment Share on other sites More sharing options...
znnan 0 Posted March 10, 2014 Author Share Posted March 10, 2014 Achei por ai esse script local voce = 206local lvl = 300local voc = 207local outfit = {lookType=237,lookHead=20,lookAddons=0,lookLegs=40,lookBody=30,lookFeet=50} -- Zmiana outfitu w id?local outfitTime = 10999999local napis = "Transform Master"local effekt = 32----------------------kod-----------------------------if getPlayerVocation(cid) == voce and getPlayerLevel(cid) >= lvl thendoPlayerSetVocation(cid,voc)doSetCreatureOutfit(cid, outfit, outfitTime)doPlayerSay(cid,napis,16)local pos = getPlayerPosition(cid)doSendMagicEffect(pos,effekt)elsedoPlayerSendCancel(cid,"Voce Nao tem Level ou Vocation")endreturn 1end Porém,seria meio tenso o player ter que digitar transformar1 transformar 2 etc... pq nãao consigo por várias transformações com 1 comando alguem help? Link to comment Share on other sites More sharing options...
IvanAppel 87 Posted March 10, 2014 Share Posted March 10, 2014 Cara meu script tá facil de entender Link to comment Share on other sites More sharing options...
lucasmacaca 8 Posted March 14, 2014 Share Posted March 14, 2014 ei brother aqui oh meu server dbo 8.54 com 30 vocaçoes todas com transform ate 600 se quizer ta aqui http://www.xtibia.com/forum/topic/230019-854-dragon-ball-last-war-completo/ Link to comment Share on other sites More sharing options...
znnan 0 Posted March 15, 2014 Author Share Posted March 15, 2014 Parabéns Lucas seu server ta filé Link to comment Share on other sites More sharing options...
Recommended Posts