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

Change effect

chackie

New Member
Joined
Nov 1, 2009
Messages
87
Reaction score
0
local level, table = 20,
{ --uniqueid of statue, position
[4321] = {x=537,y=682,z=7},
[5321] = {x=496,y=632,z=7},
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) < level then
return doPlayerSendCancel(cid, 'You must be from level '..level..' onwards in order to teleport.')
end
return doTeleportThing(cid, table[item.uid]), doSendMagicEffect(getThingPos(cid), math.random(28,30))
end

I want it so it send a other magiceffect like energy
This one:
CONST_ME_ENERGYAREA
 
Lua:
local level, table = 20,
{ --uniqueid of statue, position
[4321] = {x=537,y=682,z=7},
[5321] = {x=496,y=632,z=7},
}
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerLevel(cid) < level then
return doPlayerSendCancel(cid, 'You must be from level '..level..' onwards in order to teleport.')
end
return doTeleportThing(cid, table[item.uid]), doSendMagicEffect(getThingPos(cid), CONST_ME_ENERGYAREA)
end
 
Back
Top