Hello , i have problem in tfs --> Screenshot Uploader
Can someone fix it ?
- - - Updated - - -
HELP !!!!!!!!!!!!!!
Can someone fix it ?
Code:
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)
local ext = 2000 --- co ile sec ma byc efekt [1000=1 sec]
---Efekty przy transie---
function niebieskie1a(cid)
if getPlayerVocation(cid) == 201 then
doSendMagicEffect(getPlayerPosition(cid), 5)
addEvent(niebieskie1a,ext,cid)
end
end
function onCastSpell(cid, var)
local gokupq = {lookType=168}
local pos = getCreaturePosition(cid)
local position = {x = pos.x + 1, y = pos.y, z = pos.z}
---Goku ---
if getPlayerVocation(cid) == 124 then
if getPlayerLevel(cid) >= 250 then
doPlayerSetVocation(cid,201)
doSendMagicEffect(getPlayerPosition(cid), 5)
doSetCreatureOutfit(cid, gokupq, -1)
else
doPlayerSendCancel(cid, "You need 250lvl and done Power Quest to use Ultra Strong!")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
elseif getPlayerVocation(cid) == 201 then
if getPlayerLevel(cid) >= 350 then
if getPlayerStorageValue(cid,30083) == 1 then
doPlayerSetVocation(cid,202)
doSendMagicEffect(getPlayerPosition(cid), 6)
doSetCreatureOutfit(cid, gokupq, -1)
addEvent(niebieskie1a,ext,cid)
else
doPlayerSendCancel(cid, "You need done Power Quest to use Ultra Strong x2!")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
else
doPlayerSendCancel(cid, "You need 350lvl to use Ultra Strong x2!")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
else
doPlayerSendCancel(cid, "You cannot use Ultra Strong.")
doSendMagicEffect(getPlayerPosition(cid), 2)
end
return true
end
- - - Updated - - -
HELP !!!!!!!!!!!!!!