-
Quem Está Navegando 0 membros estão online
- Nenhum usuário registrado visualizando esta página.
-
Conteúdo Similar
-
script alguém pode me ajudar nessa spells aqui, queira que colocassem pro meu personagem ficar inatingível por 6 segundos e podendo atacar livremente
Por lazaroszz,
- 0 respostas
- 467 visualizações
-
- 1 resposta
- 2164 visualizações
-
- 0 respostas
- 1358 visualizações
-
- 0 respostas
- 1041 visualizações
-
- 1 resposta
- 1217 visualizações
-
Pergunta
x0wner 0
Estou tentando criar novas vocações para meu DBKO, porém não obtive sucesso, o script de transfoms está dando alguns erros, tipo:
• Ao usar o comando "transformar" que executa o script (transformacao.lua) abaixo, ele transforma sem mudar a vocação, somente mudando o outfit.
• Não segue a ordem elaborada dos outfits;
• Já que ao serem mudadas as outfits, ao logar elas não permanecem, tentei criar um outro script de creaturescripts meio "xula" e também não obtive sucesso.
Seria agradecida e muito útil a ajuda de vocês!
REP + para ajudantes !
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
local condition = createConditionObject(CONDITION_OUTFIT)
setConditionParam(condition, CONDITION_PARAM_TICKS, 86400000)
addOutfitCondition(condition, 0, 71, 0, 0, 0, 0)
setCombatCondition(combat, condition)
----normal----
shenron1 = {lookType =20}
shenron2 = {lookType = 77}
shenron3 = {lookType = 257}
shenron4 = {lookType = 232}
----reborn----
shenron1gt = {lookType = 198}
shenron2gt = {lookType = 257}
shenron3gt = {lookType = 232}
shenron4gt = {lookType = 265}
shenron5gt = {lookType = 325}
function onCastSpell(cid, var)
--- Shenron ---
if getPlayerVocation(cid) == 400 and getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,401)
doSetCreatureOutfit(cid, shenron1, -1)
doSendMagicEffect(getPlayerPosition(cid), 32)
else
doPlayerSendCancel(cid, "You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 401 and getPlayerLevel(cid) >= 100 then
doPlayerSetVocation(cid,402)
doSetCreatureOutfit(cid, shenron2, -1)
doSendMagicEffect(getPlayerPosition(cid), 32)
else
doPlayerSendCancel(cid, " You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 402 and getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,403)
doSetCreatureOutfit(cid, shenron3, -1)
doSendMagicEffect(getPlayerPosition(cid), 32)
else
doPlayerSendCancel(cid, " You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 403 and getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,404)
doSetCreatureOutfit(cid, shenron4, -1)
doSendMagicEffect(getPlayerPosition(cid), 32)
else
doPlayerSendCancel(cid, " You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 405 and getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,406)
doSetCreatureOutfit(cid, shenron1gt, -1)
doSendMagicEffect(getPlayerPosition(cid), 32)
else
doPlayerSendCancel(cid, "You need 50 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 406 and getPlayerLevel(cid) >= 100 then
doPlayerSetVocation(cid,407)
doSetCreatureOutfit(cid, shenron2gt, -1)
doSendMagicEffect(getPlayerPosition(cid), 32)
else
doPlayerSendCancel(cid, "You need 100 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 407 and getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,408)
doSetCreatureOutfit(cid, shenron3gt, -1)
doSendMagicEffect(getPlayerPosition(cid), 32)
else
doPlayerSendCancel(cid, "You need 150 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 408 and getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,409)
doSetCreatureOutfit(cid, shenron4gt, -1)
doSendMagicEffect(getPlayerPosition(cid), 32)
else
doPlayerSendCancel(cid, "You need 200 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 409 and getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,410)
doSetCreatureOutfit(cid, shenron5gt, -1)
doSendMagicEffect(getPlayerPosition(cid), 32)
else
doPlayerSendCancel(cid, "You need 400 level to transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
--- Shenron End ---
else
doPlayerSendCancel(cid, "You cannot Transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
end
<?xml version="1.0"?>
<creaturescripts>
<event type="login" name="Raios" script="raios.lua" />
<event type="login" name="Vocations_Outfits" script="vocations_outfits.lua" />
<event type="vocations" name="Vocations_Outfits" script="vocations_outfits.lua" />
<event type="login" name="Vocations_Outfits" script="vocations_outfits1.lua" />
<event type="vocations" name="Vocations_Outfits" script="vocations_outfits1.lua" />
<event type="login" name="Vocations_Outfits" script="vocations_outfits2.lua" />
<event type="vocations" name="Vocations_Outfits" script="vocations_outfits2.lua" />
<event type="AntiBot" name="Antibot" script="antibot.lua" />
<event type="saga" name="raditz" script="raditz.lua" />
<event type="saga" name="Monkey" script="Monkey.lua" />
<event type="saga" name="Gregory" script="Gregory.lua" />
<event type="saga" name="Saibaman" script="Saibaman.lua" />
<event type="saga" name="Nappa" script="Nappa.lua" />
<event type="saga" name="Vegeta" script="Vegeta.lua" />
<event type="saga" name="Vegeta Oozaru" script="Vegeta Oozaru.lua" />
<event type="saga" name="Dodoria" script="Dodoria.lua" />
<event type="saga" name="Zarbon" script="Zarbon.lua" />
<event type="saga" name="Guldo" script="Guldo.lua" />
<event type="saga" name="Reecome" script="Reecome.lua" />
<event type="saga" name="Copassa" script="Copassa.lua" />
<event type="saga" name="Cap Gibnyu" script="Cap Gibnyu.lua" />
<event type="saga" name="Cap Ginyuoku" script="Cap Ginyuoku.lua" />
<event type="saga" name="Freeza1" script="Freeza1.lua" />
<event type="saga" name="Freeza2" script="Freeza2.lua" />
<event type="saga" name="Freeza3" script="Freeza3.lua" />
<event type="saga" name="Freeza4" script="Freeza4.lua" />
<event type="saga" name="Freeza5" script="Freeza5.lua" />
<event type="saga" name="Freeza6" script="Freeza6.lua" />
<event type="saga" name="Freeza7" script="Freeza7.lua" />
<event type="saga" name="c19" script="c19.lua" />
<event type="saga" name="c20" script="c20.lua" />
<event type="saga" name="cell1" script="cell1.lua" />
<event type="saga" name="c17" script="c17.lua" />
<event type="saga" name="cell2" script="cell2.lua" />
<event type="saga" name="celljr" script="celljr.lua" />
<event type="saga" name="cell3" script="cell3.lua" />
<event type="saga" name="cell4" script="cell4.lua" />
<event type="saga" name="Pup Pui" script="Pup Pui.lua" />
<event type="saga" name="Yakon" script="Yakon.lua" />
<event type="saga" name="Dabura" script="Dabura.lua" />
<event type="saga" name="Majin Vegeta" script="Majin Vegeta.lua" />
<event type="saga" name="Buu1" script="Buu1.lua" />
<event type="saga" name="Buu2b" script="Buu2b.lua" />
<event type="saga" name="Buu2" script="Buu2.lua" />
<event type="saga" name="Buu3" script="Buu3.lua" />
<event type="saga" name="Buu2c" script="Buu2c.lua" />
<event type="saga" name="Kid Buu" script="Kid Buu.lua" />
<event type="saga" name="Bebi" script="Bebi.lua" />
<event type="saga" name="Bebi Oozaru" script="Bebi Oozaru.lua" />
<event type="saga" name="SC17" script="SC17.lua" />
<event type="saga" name="S1" script="S1.lua" />
<event type="saga" name="S2" script="S2.lua" />
<event type="saga" name="S3" script="S3.lua" />
<event type="saga" name="S4" script="S4.lua" />
<event type="saga" name="S5" script="S5.lua" />
<event type="saga" name="S6" script="S6.lua" />
<event type="saga" name="S7" script="S7.lua" />
<event type="saga" name="S8" script="S8.lua" />
</creaturescripts>
function onLogin(cid)
v_out = {
- NORMAL -
[400] = 198, --Shenron
[401] = 20, --Shenron1
[402] = 77, --Shenron2
[403] = 257, --Shenron3
[404] = 232, --Shenron4
- REBORNS -
[405] = 79, --Shenron GT
[406] = 198, --Shenron1 GT
[407] = 257, --Shenron2 GT
[408] = 232, --Shenron3 GT
[409] = 265, --Shenron4 GT
[410] = 325, --Shenron5 GT
}
local voc = getPlayerVocation(cid)
local out = doSetCreatureOutfit
if isCreature(cid) == TRUE then
doSetCreatureOutfit(cid, v_out[voc], -1)
return 1
end
end
transf_out = {
- NORMAL -
[400] = 198, --Shenron
[401] = 20, --Shenron1
[402] = 77, --Shenron2
[403] = 257, --Shenron3
[404] = 232, --Shenron4
- REBORNS -
[405] = 79, --Shenron GT
[406] = 198, --Shenron1 GT
[407] = 257, --Shenron2 GT
[408] = 232, --Shenron3 GT
[409] = 265, --Shenron4 GT
[410] = 325, --Shenron5 GT
}
local vocacao = getPlayerVocation(cid)
local out = doSetCreatureOutfit
function onLogin(cid)
for voc, efec in pairs(transf_out) do
if voc == getPlayerVocation(cid) then
doSetCreatureOutfit(cid, transf_out[vocacao], -1)
end
end
end
function onLogin(cid)
--VEGETTINHO--
if (getPlayerVocation(cid) == 388)
doSetCreatureOutfit(cid, 422, -1)
--SHENRON--
elseif (getPlayerVocation(cid) == 400) then
doSetCreatureOutfit(cid, 198, -1)
--SHENRON 1--
elseif (getPlayerVocation(cid) == 401) then
doSetCreatureOutfit(cid, 20, -1)
--SHENRON 2--
elseif (getPlayerVocation(cid) == 402) then
doSetCreatureOutfit(cid, 77, -1)
--SHENRON 3--
elseif (getPlayerVocation(cid) == 403) then
doSetCreatureOutfit(cid, 257, -1)
--SHENRON 4--
elseif (getPlayerVocation(cid) == 404) then
doSetCreatureOutfit(cid, 232, -1)
--SHENRON GT--
elseif (getPlayerVocation(cid) == 405) then
doSetCreatureOutfit(cid, 79, -1)
--SHENRON 1 GT--
elseif (getPlayerVocation(cid) == 406) then
doSetCreatureOutfit(cid, 198, -1)
--SHENRON 2 GT--
elseif (getPlayerVocation(cid) == 407) then
doSetCreatureOutfit(cid, 257, -1)
--SHENRON 3 GT--
elseif (getPlayerVocation(cid) == 408) then
doSetCreatureOutfit(cid, 232, -1)
--SHENRON 4 GT--
elseif (getPlayerVocation(cid) == 409) then
doSetCreatureOutfit(cid, 265, -1)
--SHENRON 5 GT--
elseif (getPlayerVocation(cid) == 410) then
doSetCreatureOutfit(cid, 325, -1)
return 1
end
end
AJUDINHAAAAA :'[
Editado por x0wnerLink para o comentário
Compartilhar em outros sites
0 respostass a esta questão
Posts Recomendados