• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua Spell Problem

Skoczi

New Member
Joined
Jun 6, 2012
Messages
115
Reaction score
0
Hello , i have problem in tfs --> Screenshot Uploader

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 !!!!!!!!!!!!!!
 
Back
Top