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

Lua Teleport Effects

Alyhide

Banned User
Joined
Aug 21, 2010
Messages
1,945
Reaction score
55
Location
Switzerland
Code:
[06/08/2011 10:53:26] [Error - GlobalEvent Interface] 
[06/08/2011 10:53:26] data/globalevents/scripts/effects.lua:onThink
[06/08/2011 10:53:26] Description: 
[06/08/2011 10:53:26] data/globalevents/scripts/effects.lua:81: bad argument #1 to 'pairs' (table expected, got nil)
[06/08/2011 10:53:26] stack traceback:
[06/08/2011 10:53:26] 	[C]: in function 'pairs'
[06/08/2011 10:53:26] 	data/globalevents/scripts/effects.lua:81: in function <data/globalevents/scripts/effects.lua:77>
[06/08/2011 10:53:26] [Error - GlobalEvents::think] Couldn't execute event: effects

LUA:
	local text = {

	-- Flare City Temple Effects -- 1-13
	
	[1] = {pos = {3004,2105,7}, text = {"Health"}},
	[2] = {pos = {3003,2105,7}, text = {"Mana"}},
	[3] = {pos = {3005,2105,7}, text = {"Stamina"}},
	[4] = {pos = {2996,2092,7}, text = {"Depot"}},
	[5] = {pos = {2998,2092,7}, text = {"Trainers"}},
	[6] = {pos = {3000,2092,7}, text = {"Shops"}},
	[7] = {pos = {3002,2092,7}, text = {"Teleports"}},
	[8] = {pos = {3004,2092,7}, text = {"PvP City"}},
	[9] = {pos = {2994,2097,7}, text = {"Games"}},
	[10] = {pos = {2994,2099,7}, text = {"Outfits"}},
	[11] = {pos = {2994,2101,7}, text = {"Addons"}},
	[12] = {pos = {2994,2103,7}, text = {"Donors"}},
	[13] = {pos = {3006,2095,7}, text = {"VIP City"}},

	-- Teleport Effects -- 15-23
	
	[15] = {pos = {2805,2026,7}, text = {"Easy"}}, --Monsters
	[16] = {pos = {2805,2025,7}, text = {"Medium"}}, -- Monsters
	[17] = {pos = {2805,2024,7}, text = {"Hard"}}, -- Monsters
	[18] = {pos = {2814,2018,7}, text = {"Easy"}}, -- Quest
	[19] = {pos = {2815,2018,7}, text = {"Hard"}}, -- Quest
	[20] = {pos = {2827,2025,7}, text = {"Addons"}},
	[21] = {pos = {2827,2026,7}, text = {"Addons"}},
	[22] = {pos = {2815,2033,7}, text = {"Demons"}},
	[23] = {pos = {2814,2033,7}, text = {"Bosses"}},
	
	-- Monster Outfits -- 26-43
	
	[26] = {pos = {1251,868,7}, text = {"100cc"}},
	[27] = {pos = {1253,868,7}, text = {"200cc"}},
	[28] = {pos = {1255,868,7}, text = {"300cc"}},
	[29] = {pos = {1257,868,7}, text = {"400cc"}},
	[30] = {pos = {1259,868,7}, text = {"500cc"}},
	[31] = {pos = {1261,868,7}, text = {"600cc"}},
	[32] = {pos = {1263,868,7}, text = {"700cc"}},
	[33] = {pos = {1265,868,7}, text = {"800cc"}},
	[34] = {pos = {1267,868,7}, text = {"900cc"}},
	[35] = {pos = {1251,872,7}, text = {"1000cc"}},
	[36] = {pos = {1253,872,7}, text = {"1100cc"}},
	[37] = {pos = {1255,872,7}, text = {"1200cc"}},
	[38] = {pos = {1257,872,7}, text = {"1300cc"}},
	[39] = {pos = {1259,872,7}, text = {"1400cc"}},
	[40] = {pos = {1261,872,7}, text = {"1500cc"}},
	[41] = {pos = {1263,872,7}, text = {"1600cc"}},
	[42] = {pos = {1265,872,7}, text = {"1700cc"}},
	[43] = {pos = {1267,872,7}, text = {"1800cc"}},
	
	-- Addons -- 44-64
	
	[44] = {pos = {1251,878,7}, text = {"Citizen"}},
	[45] = {pos = {1255,878,7}, text = {"Hunter"}},
	[46] = {pos = {1259,878,7}, text = {"Mage"}},
	[47] = {pos = {1263,878,7}, text = {"Knight"}},
	[48] = {pos = {1267,878,7}, text = {"Nobleman"}},
	[49] = {pos = {1271,878,7}, text = {"Summoner"}},
	[50] = {pos = {1275,878,7}, text = {"Warrior"}},
	[51] = {pos = {1279,878,7}, text = {"Barbarian"}},
	[52] = {pos = {1283,878,7}, text = {"Druid"}},
	[53] = {pos = {1287,878,7}, text = {"Wizard"}},
	[54] = {pos = {1291,878,7}, text = {"Oriental"}},
	[55] = {pos = {1253,882,7}, text = {"Pirate"}},
	[56] = {pos = {1257,882,7}, text = {"Assassin"}},
	[57] = {pos = {1261,882,7}, text = {"Begar"}},
	[58] = {pos = {1265,882,7}, text = {"Shaman"}},
	[59] = {pos = {1269,882,7}, text = {"Norseman"}},
	[60] = {pos = {1273,882,7}, text = {"Nightmare"}},
	[61] = {pos = {1277,882,7}, text = {"Jester"}},
	[62] = {pos = {1281,882,7}, text = {"Brotherhood"}},
	[63] = {pos = {1285,882,7}, text = {"Demonhunter"}},
	[64] = {pos = {1289,882,7}, text = {"Yalahari"}},
	}
 
function onThink(interval, lastExecution)
	for _, area in pairs(text) do
		doSendAnimatedText({x=area.pos[1],y=area.pos[2],z=area.pos[3]},area.text[1], math.random(01,255))
	end
	for _, area in pairs(effects) do
		doSendMagicEffect({x=area.pos[1],y=area.pos[2],z=area.pos[3]},area.effect[1])
	end
	return TRUE
end
 
Back
Top