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

GlobalEvent 0.3 tp effect by wlj and Chojrak

wlj

retierd
Joined
Jan 7, 2009
Messages
1,201
Reaction score
1
Hiho guys well i think this guy sude put out his script to newbis.
And also i did change some so rep him and might me if you think i need it :p

Here we go..

start with Globalevents.xml

Code:
<globalevent name="tpeffect" interval="1" script="effect.lua"/>


now to data/globalevents/scripts make a new effect.lua file remember .lua or it will bug!


in the file you need to past this...

Lua:
local config = {
	positions = {
		["Teleports"] = { x = 993, y = 996, z = 7 },
		["Deport"] = { x = 1006, y = 996, z = 7 },
		["Trainer"] = { x = 993, y = 1000, z = 7 },
	},

	effects = {
		CONST_ME_MAGIC_BLUE,
		CONST_ME_MAGIC_GREEN,
		CONST_ME_MORTAREA,
		CONST_ME_FIREWORK_RED,
		CONST_ME_YELLOW_RINGS,
		CONST_ANI_ENERGYBALL,
		CONST_ME_HOLYDAMAGE,
		CONST_ME_YELLOWENERGY,
		CONST_ME_PURPLEENERGY
	},

	colors = {
		TEXTCOLOR_WHITE,
		TEXTCOLOR_PLATINUMBLUE,
		TEXTCOLOR_ORANGE,
		TEXTCOLOR_GREEN,
		TEXTCOLOR_PURPLE,
		TEXTCOLOR_BLUE
	}
}

function onThink(cid, interval, lastExecution)
	for text, pos in pairs(config.positions) do
		doSendMagicEffect(pos, config.effects[math.random(1, #config.effects)])
		doSendAnimatedText(pos, text, config.colors[math.random(1, #config.colors)])
             end
              return LUA_NO_ERROR
               end


Code:
credit Wlj, Rescripter, new effect adder. Chojrak idé and also scripted some of it.
thats all cya guys
;)
 
Ooo .lua? Really? :D anyway, nice script (despite there's alot of it already).
__________________
klekSu.png

You are welcome on kleksoria.com!
Please visit new open tibia forum with it's own ots list. otservers.net!
 
Last edited:
yea well my boss on kernkraft says im not allowd to relese the scripts there so i make soon a script with changeing effects ;)
 
lol, tp effect #39282! :D
Good for the script thiefs among us, nice clean code :)
 
Back
Top