Bem to com um probleminha e gostaria de uma ajudazinha não sei oq eu fiz de errado
criei 2 novas vocações para meu servidor c16. shenron o c16 ele transforma todas ate depois da rb
mais o shenron não sai nem da outfit iniçial meu script e esse!
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)
outfit = {lookType=438}
outfit1 = {lookType=439}
outfit2 = {lookType=440}
outfit3 = {lookType=441}
outfits = {lookType=443}
outfits1 = {lookType=444}
outfits2 = {lookType=445}
outfits3 = {lookType=516}
shenron = {lookType=77}
shenron1 = {lookType=20}
shenron2 = {lookType=232}
shenron3 = {lookType=257}
shenrons = {lookType=265}
shenrons1 = {lookType=517}
shenrons2 = {lookType=518}
shenrons3 = {lookType=325}
shenrons4 = {lookType=435}
ext = 1000
---c16---
function trans(cid)
if getPlayerVocation(cid) == 412 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 190)
addEvent(trans,ext,cid)
end
end
end
function trans1(cid)
if getPlayerVocation(cid) == 413 then
if getPlayerMana(cid) >= 0 then
addEvent(trans1,ext,cid)
end
end
end
function trans2(cid)
if getPlayerVocation(cid) == 414 then
if getPlayerMana(cid) >= 0 then
addEvent(trans1,ext,cid)
end
end
end
function trans3(cid)
if getPlayerVocation(cid) == 415 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 190)
addEvent(trans1,ext,cid)
end
end
end
---End c16---
---Reborn c16---
function trans4(cid)
if getPlayerVocation(cid) == 417 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 190)
addEvent(trans4,ext,cid)
end
end
end
function trans5(cid)
if getPlayerVocation(cid) == 418 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 181)
addEvent(trans5,ext,cid)
end
end
end
function trans6(cid)
if getPlayerVocation(cid) == 419 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 190)
addEvent(trans6,ext,cid)
end
end
end
function trans7(cid)
if getPlayerVocation(cid) == 420 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 14)
addEvent(trans7,ext,cid)
end
end
end
--- Reborn c16 End ---
--- Shenron ---
function shen(cid)
if getPlayerVocation(cid) == 399 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 190)
addEvent(shen,ext,cid)
end
end
end
function shen1(cid)
if getPlayerVocation(cid) == 400 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 190)
addEvent(shen1,ext,cid)
end
end
end
function shen2(cid)
if getPlayerVocation(cid) == 401 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 190)
addEvent(shen2,ext,cid)
end
end
end
function shen3(cid)
if getPlayerVocation(cid) == 402 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 190)
addEvent(shen3,ext,cid)
end
end
end
---shenron reborn---
function shen4(cid)
if getPlayerVocation(cid) == 404 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 190)
addEvent(shen4,ext,cid)
end
end
end
function shen5(cid)
if getPlayerVocation(cid) == 405 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 190)
addEvent(shen5,ext,cid)
end
end
end
function shen6(cid)
if getPlayerVocation(cid) == 406 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 190)
addEvent(shen6,ext,cid)
end
end
end
function shen7(cid)
if getPlayerVocation(cid) == 407 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 190)
addEvent(shen7,ext,cid)
end
end
end
function shen8(cid)
if getPlayerVocation(cid) == 408 then
if getPlayerMana(cid) >= 0 then
doSendMagicEffect(getPlayerPosition(cid), 190)
addEvent(shen8,ext,cid)
end
end
end
function onCastSpell(cid, var)
---c16---
if getPlayerVocation(cid) == 411 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,412)
doSetCreatureOutfit(cid, outfit, -1)
addEvent(trans,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 23)
doSetOutfit(cid, 438)
else
doPlayerSendCancel(cid, "You need 50 level to first transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 412 then
if getPlayerLevel(cid) >= 100 then
doPlayerSetVocation(cid,413)
addEvent(trans1,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 33)
doSetCreatureOutfit(cid, outfit1, -1)
doSetOutfit(cid, 439)
else
doPlayerSendCancel(cid, "You need 100 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 413 then
if getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,414)
addEvent(trans2,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 23)
doSetCreatureOutfit(cid, outfit2, -1)
doSetOutfit(cid, 440)
else
doPlayerSendCancel(cid, "You need 150 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 414 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,415)
addEvent(trans3,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 23)
doSetCreatureOutfit(cid, outfit3, -1)
doSetOutfit(cid, 441)
else
doPlayerSendCancel(cid, "You need 200 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
--- Reborn ---
elseif getPlayerVocation(cid) == 416 then
if getPlayerLevel(cid) >= 75 then
doPlayerSetVocation(cid,417)
addEvent(trans4,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 23)
doSetCreatureOutfit(cid, outfits, -1)
doSetOutfit(cid, 443)
else
doPlayerSendCancel(cid, "You need 75 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 417 then
if getPlayerLevel(cid) >= 100 then
doPlayerSetVocation(cid,418)
addEvent(trans5,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 33)
doSetCreatureOutfit(cid, outfits1, -1)
doSetOutfit(cid, 444)
else
doPlayerSendCancel(cid, "You need 100 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 418 then
if getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,419)
addEvent(trans6,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 23)
doSetCreatureOutfit(cid, outfits2, -1)
doSetOutfit(cid, 445)
else
doPlayerSendCancel(cid, "You need 250 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 419 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,420)
addEvent(trans7,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 23)
doSetCreatureOutfit(cid, outfits3, -1)
doSetOutfit(cid, 516)
else
doPlayerSendCancel(cid, "You need 400 level to next transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---End c16? ---
---shenron---
if getPlayerVocation(cid) == 398 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,399)
doSetCreatureOutfit(cid, shenron, -1)
addEvent(shen,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 23)
doSetOutfit(cid, 77)
else
doPlayerSendCancel(cid, "You need 50 level to first transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
if getPlayerVocation(cid) == 399 then
if getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,400)
doSetCreatureOutfit(cid, shenron1, -1)
addEvent(shen1,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 23)
doSetOutfit(cid, 20)
else
doPlayerSendCancel(cid, "You need 150 level to first transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
if getPlayerVocation(cid) == 400 then
if getPlayerLevel(cid) >= 200 then
doPlayerSetVocation(cid,401)
doSetCreatureOutfit(cid, shenron2, -1)
addEvent(shen2,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 23)
doSetOutfit(cid, 232)
else
doPlayerSendCancel(cid, "You need 200 level to first transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
if getPlayerVocation(cid) == 401 then
if getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,402)
doSetCreatureOutfit(cid, shenron3, -1)
addEvent(shen3,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 23)
doSetOutfit(cid, 257)
else
doPlayerSendCancel(cid, "You need 250 level to first transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---shenron reborn---
if getPlayerVocation(cid) == 403 then
if getPlayerLevel(cid) >= 50 then
doPlayerSetVocation(cid,404)
doSetCreatureOutfit(cid, shenrons, -1)
addEvent(shen4,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 23)
doSetOutfit(cid, 265)
else
doPlayerSendCancel(cid, "You need 50 level to first transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
if getPlayerVocation(cid) == 404 then
if getPlayerLevel(cid) >= 150 then
doPlayerSetVocation(cid,405)
doSetCreatureOutfit(cid, shenrons1, -1)
addEvent(shen5,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 23)
doSetOutfit(cid, 517)
else
doPlayerSendCancel(cid, "You need 150 level to first transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
if getPlayerVocation(cid) == 405 then
if getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,406)
doSetCreatureOutfit(cid, shenrons2, -1)
addEvent(shen6,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 23)
doSetOutfit(cid, 518)
else
doPlayerSendCancel(cid, "You need 250 level to first transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
if getPlayerVocation(cid) == 406 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,407)
doSetCreatureOutfit(cid, shenrons3, -1)
addEvent(shen7,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 23)
doSetOutfit(cid, 325)
else
doPlayerSendCancel(cid, "You need 400 level to first transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
if getPlayerVocation(cid) == 407 then
if getPlayerLevel(cid) >= 400 then
doPlayerSetVocation(cid,408)
doSetCreatureOutfit(cid, shenrons4, -1)
addEvent(shen8,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 23)
doSetOutfit(cid, 435)
else
doPlayerSendCancel(cid, "You need 400 level to first transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
--- shenron reborn End ---
else
doPlayerSendCancel(cid, "You cannot transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
end
end
end
galera se puder ajudar agradeço .-.