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

[Request] Magic Effect on Tile

kokorec

Tavon Online - Soon
Joined
May 3, 2008
Messages
287
Reaction score
0
Location
Turkey
Hi,
Who can do?

Code:
		elseif getGlobalStorageValue(param.storage) == 3 then
		doSendMagicEffect({x=param.posx, y=param.posy, z=param.posz},  param.effect)
		doSendAnimatedText({x=param.posx, y=param.posy, z=param.posz}, 'Ready', 150)
		addEvent(CreateAWaitingForOtherTeam, 1000, param)
		end

eq:TILE IS LASTING WILL SEND MAGICEFFECT.HOW I CAN DO?

Sorry For Bad English.

Thanks.
 
Last edited:
i dont know entire script but this like:
Code:
function onStepIn(cid, item, pos)	
newy = item.uid - 12000
newx = item.actionid - 12000
doSendMagicEffect(pos,29)		
end


/\(Up) Like But LASTING will send magiceffect don't need (onStepIn).
 
I Want continuous.It is NOT NECESSARY onStepIn.Like football gwo server.when players ready, tile's near be burned Ready with magiceffect .Like like it.

why somebody isn't help me?
 
Last edited by a moderator:
data/creaturescripts/scripts/effect.lua
Code:
local config = {
	effectType = ?,
	effectPos = { x = ???, y = ??, z = ? },
	started = FALSE
	}
local function goGoGoEffect(pos, effect)
	doSendMagicEffect(pos, effect)
	addEvent(goGoGoEffect, 200, pos, effect)
	return TRUE
end

function onLogin(cid)
	if config.started == FALSE then
		config.started = TRUE
		goGoGoEffect(config.effectPos, config.effectType)
	end
	return TRUE
end

data/creaturescripts/scripts/login.lua, add:
Code:
    registerCreatureEvent(cid, "effect")

data/creaturescripts/creaturescripts.xml, add:
Code:
<event type="login" name="effect" script="effect.lua"/>

tell if works oki?
 
Last edited:
this is error:
Code:
[06/12/2008  00:17:22] Warning: [Event::loadScript] Can not load script. data/creaturescripts/scripts/effect.lua
[06/12/2008  00:17:22] data/creaturescripts/scripts/effect.lua:14: '=' expected near '=='
 
Back
Top