ZN

[Duvida] Como faço para por transformações no WoDbo?

Por znnan, 10 de mar. de 2014 em Archived

wodbo
transform
vocation
dbz
8
2.3k
znnanZ
10 de março de 2014 às 18:24

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?

10 de março de 2014 às 18:28

www.xtibia.com/forum/topic/229380-como-criar-transforms-naruto-wodbo-bleach/

znnanZ
10 de março de 2014 às 18:43

Véi da pa entender nada kkkk lamento

10 de março de 2014 às 18:53
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++

znnanZ
10 de março de 2014 às 19:17

Achei por ai esse script

local voce = 206
local lvl = 300
local voc = 207
local outfit = {lookType=237,lookHead=20,lookAddons=0,lookLegs=40,lookBody=30,lookFeet=50} -- Zmiana outfitu w id?
local outfitTime = 10999999
local napis = "Transform Master"
local effekt = 32
----------------------kod-----------------------------
if getPlayerVocation(cid) == voce and getPlayerLevel(cid) >= lvl then
doPlayerSetVocation(cid,voc)
doSetCreatureOutfit(cid, outfit, outfitTime)
doPlayerSay(cid,napis,16)
local pos = getPlayerPosition(cid)
doSendMagicEffect(pos,effekt)
else
doPlayerSendCancel(cid,"Voce Nao tem Level ou Vocation")
end
return 1
end

 

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?

10 de março de 2014 às 19:53

Cara meu script tá facil de entender

lucasmacacaL
14 de março de 2014 às 11:25

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/

 

brolyrebornout.png

znnanZ
14 de março de 2014 às 21:19

Parabéns Lucas seu server ta filé