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

CreatureEvent goGoGo Effect Script

kokorec

Tavon Online - Soon
Joined
May 3, 2008
Messages
287
Reaction score
0
Location
Turkey
Hi,
Here script.I think you try it.Working Perfectly.
Credits:Marcinek Paladinek,Kokorec

creaturescripts>scripts>effect.lua

Code:
local config = {
	effectType = [COLOR="Red"]29[/COLOR],
	effectPos = { x = [COLOR="Red"]703[/COLOR], y = [COLOR="Red"]600[/COLOR], z = [COLOR="Red"]7[/COLOR] },
	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

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

Thanks.
 
lol, goGoGo o_o...

Function name doesnt have to sound gay, I know, Ive named it, but you can rename it and it will still work :p

btw, thanks for the credits tho ^^
 
Why don't you make it with onThink or GlobalEvents? :p


kind regards, Evil Hero
 
@Zonet:
you do with global events?if you do it ,congratulations.
 
I tried, it worked too but i was getting an error everytime shows the text or effect in the .exe:p

anyways.. easier scripts is always better than harder.. you can do 10 easy scripts instead of making 2-3 hard which does the same things.
 
Zonet doesn't know what is hard script :) Btw. one script is always better than serveral because you have all lines of code in a file :)
 
Back
Top