• 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!

Spell Remake

Lbtg

Advanced OT User
Joined
Nov 22, 2008
Messages
2,398
Reaction score
165
php code:
function onCastSpell(cid, var)
local function doTeleport(cid, count)
if (not isPlayer(cid)) then
return true
end
doSendAnimatedText(getCreaturePosition(cid), (30 - count).."s", COLOR_ORANGE)
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_YELLOW_RINGS)
if (count == 30) then
return doCreatureSetNoMove(cid, false) and doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
else
addEvent(doTeleport, 1000, cid, count + 1)
end
return true
end
return doCreatureSetNoMove(cid, true) and doTeleport(cid, 0)
end




i want someone on this script add that people cant use this spell with pz , and second thing using this spell you loss 20k
 
is it our JOB? we do this in our free time.
Code:
local function doTeleport(cid, count)
	if not isPlayer(cid) then
		return true
	end
	doSendAnimatedText(getCreaturePosition(cid), (30 - count).."s", COLOR_ORANGE)
	doSendMagicEffect(getCreaturePosition(cid), CONST_ME_YELLOW_RINGS)
	if (count == 30) then
		return doCreatureSetNoMove(cid, false) and doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))
	else
		addEvent(doTeleport, 1000, cid, count + 1)
	end
	return true
end

function onCastSpell(cid, var)
	if isPlayerPzLocked(cid) then
		return not doPlayerSendCancel(cid, 'You cannot use this spell while PZLocked.')
	elseif not doPlayerRemoveMoney(cid, 20000) then
		return not doPlayerSendCancel(cid, 'You need 20k to use this spell.')
	else
		return doCreatureSetNoMove(cid, true) and doTeleport(cid, 0)
	end
end
 
not i just wanted this spell wery . anyway ty Cykotitan you know you are the best one =) rep+
 
Back
Top