Odp: Support - pomoc przy pisaniu skrypt?w
Pomo?e kto? w tym skrypcie bo nie mog? znale?? b??du
Pomo?e kto? w tym skrypcie bo nie mog? znale?? b??du
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)
vegeta = {lookType=332}
krilan = {lookType=331}
brolly = {lookType=334}
tsuful = {lookType=335}
piccolo = {lookType=336}
buu = {lookType=338}
cell = {lookType=339}
dende = {lookType=340}
goku = {lookType=277}
ext = 1000
---Goku---
function goku(cid)
if getPlayerVocation(cid) == 206 then
doSendMagicEffect(getPlayerPosition(cid), 180)
addEvent(goku,ext,cid)
end
end
end
---Goku--
---Vegeta---
function vegeta(cid)
if getPlayerVocation(cid) == 219 then
doSendMagicEffect(getPlayerPosition(cid), 180)
addEvent(vegeta,ext,cid)
end
end
end
---Vegeta---
---Brolly---
function brolly(cid)
if getPlayerVocation(cid) == 64 then
doSendMagicEffect(getPlayerPosition(cid), 180)
addEvent(brolly,ext,cid)
end
end
end
---Brolly---
---Tsuful---
function tsuful(cid)
if getPlayerVocation(cid) == 246 then
doSendMagicEffect(getPlayerPosition(cid), 180)
addEvent(tsuful,ext,cid)
end
end
end
---Tsuful---
---Piccolo---
function piccolo(cid)
if getPlayerVocation(cid) == 241 then
doSendMagicEffect(getPlayerPosition(cid), 26)
addEvent(piccolo,ext,cid)
end
end
end
---Piccolo---
---Buu---
function buu(cid)
if getPlayerVocation(cid) == 252 then
doSendMagicEffect(getPlayerPosition(cid), 180)
addEvent(buu,ext,cid)
end
end
end
---Buu---
---Cell---
function cell(cid)
if getPlayerVocation(cid) == 279 then
doSendMagicEffect(getPlayerPosition(cid), 14)
addEvent(cell,ext,cid)
end
end
end
---Cell---
---Dende---
function dende(cid)
if getPlayerVocation(cid) == 302 then
doSendMagicEffect(getPlayerPosition(cid), 180)
addEvent(dende,ext,cid)
end
end
end
---Dende---
---Krilan---
function krilan(cid)
if getPlayerVocation(cid) == 341 then
doSendMagicEffect(getPlayerPosition(cid), 180)
addEvent(krilan,ext,cid)
end
end
end
---Krilan---
function onCastSpell(cid, var)
---goku---
if getPlayerVocation(cid) == 206 then
if getPlayerLevel(cid) >= 350 then
doPlayerSetVocation(cid,341)
doSetCreatureOutfit(cid, goku, -1)
addEvent(goku,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 229)
else
doPlayerSendCancel(cid, "You need 350 level to Power transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---goku---
---vegeta---
elseif getPlayerVocation(cid) == 219 then
if getPlayerLevel(cid) >= 350 then
doPlayerSetVocation(cid,354)
addEvent(vegeta,ext,cid)
doSendMagicEffect(getPlayerPosition(cid), 229)
doSetCreatureOutfit(cid, vegeta, -1)
else
doPlayerSendCancel(cid, "You need 350 level to Power transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---vegeta---
---brolly---
elseif getPlayerVocation(cid) == 64 then
if getPlayerLevel(cid) >= 350 then
doPlayerSetVocation(cid,355)
addEvent(brolly,ext,cid)
doSetCreatureOutfit(cid, brolly, -1)
doSendMagicEffect(getPlayerPosition(cid), 233)
else
doPlayerSendCancel(cid, "You need 350 level to Power transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---brolly---
---tsuful---
elseif getPlayerVocation(cid) == 246 then
if getPlayerLevel(cid) >= 350 then
doPlayerSetVocation(cid,357)
addEvent(tsuful,ext,cid)
doSetCreatureOutfit(cid, tsuful, -1)
doSendMagicEffect(getPlayerPosition(cid), 233)
else
doPlayerSendCancel(cid, "You need 350 level to Power transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---tsuful---
--- piccolo---
elseif getPlayerVocation(cid) == 241 then
if getPlayerLevel(cid) >= 350 then
doPlayerSetVocation(cid,356)
addEvent(piccolo,ext,cid)
doSetCreatureOutfit(cid, piccolo, -1)
doSendMagicEffect(getPlayerPosition(cid), 233)
else
doPlayerSendCancel(cid, "You need 350 level to Power transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
--- piccolo---
---buu---
elseif getPlayerVocation(cid) == 252 then
if getPlayerLevel(cid) >= 350 then
doPlayerSetVocation(cid,358)
addEvent(buu,ext,cid)
doSetCreatureOutfit(cid, buu, -1)
doSendMagicEffect(getPlayerPosition(cid), 82)
else
doPlayerSendCancel(cid, "You need 350 level to Power transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---buu---
---cell---
elseif getPlayerVocation(cid) == 279 then
if getPlayerLevel(cid) >= 350 then
doPlayerSetVocation(cid,359)
addEvent(cell,ext,cid)
doSetCreatureOutfit(cid, cell, -1)
doSendMagicEffect(getPlayerPosition(cid), 233)
else
doPlayerSendCancel(cid, "You need 350 level to Power transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---cell---
---dende---
elseif getPlayerVocation(cid) == 302 then
if getPlayerLevel(cid) >= 350 then
doPlayerSetVocation(cid,360)
addEvent(dende,ext,cid)
doSetCreatureOutfit(cid, dende, -1)
doSendMagicEffect(getPlayerPosition(cid), 233)
else
doPlayerSendCancel(cid, "You need 350 level to Power transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---dende---
---krilan---
elseif getPlayerVocation(cid) == 353 then
if getPlayerLevel(cid) >= 350 then
doPlayerSetVocation(cid,361)
addEvent(krilan,ext,cid)
doSetCreatureOutfit(cid, krilan, -1)
doSendMagicEffect(getPlayerPosition(cid), 229)
else
doPlayerSendCancel(cid, "You need 350 level to Power transform")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
---krilan---
end
if
doPlayerSendCancel(cid, "You cannot transform.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
end
Last edited: