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

Random teleport...

bomba

Member
Joined
Feb 26, 2008
Messages
635
Reaction score
7
Location
Brazil
Help-me with random teleport...

If the actionId is 13087, random places:
Code:
[13087] = {
{x=502, y=1249, z=7},
{x=499, y=1253, z=7},
{x=510, y=1252, z=7},
{x=491, y=1256, x=7},
{x=510, y=1255, z=7},
{x=513, y=1256, z=7},
{x=494, y=1262, z=7},
{x=496, y=1262, z=7},
{x=513, y=1261, z=7},
{x=525, y=1265, z=7},
{x=509, y=1271, z=7},
{x=514, y=1269, z=7},
{x=498, y=1275, z=7},
{x=507, y=1279, z=7},
{x=494, y=1280, z=7},
{x=503, y=1283, z=7},
{x=502, y=1249, z=6},
{x=502, y=1252, z=6},
{x=495, y=1260, z=6},
{x=513, y=1259, z=6},
{x=498, y=1265, z=6},
{x=513, y=1264, z=6},
{x=525, y=1265, z=6},
{x=519, y=1268, z=6},
{x=509, y=1271, z=6},
{x=501, y=1274, z=6},
{x=498, y=1275, z=6},
{x=507, y=1279, z=6},
{x=494, y=1280, z=6},
{x=503, y=1283, z=6}}

If is 13187, random places:
Code:
[13187] = {
{x=502, y=1249, z=6},
{x=502, y=1252, z=6},
{x=495, y=1260, z=6},
{x=513, y=1259, z=6},
{x=498, y=1265, z=6},
{x=513, y=1264, z=6},
{x=525, y=1265, z=6},
{x=519, y=1268, z=6},
{x=509, y=1271, z=6},
{x=501, y=1274, z=6},
{x=498, y=1275, z=6},
{x=507, y=1279, z=6},
{x=494, y=1280, z=6},
{x=503, y=1283, z=6},
{x=498, y=1275, z=5},
{x=509, y=1271, z=5},
{x=507, y=1279, z=5},
{x=494, y=1280, z=5},
{x=503, y=1283, z=5}}

If is 13287, random places:
Code:
[13287] = {
{x=498, y=1275, z=5},
{x=509, y=1271, z=5},
{x=507, y=1279, z=5},
{x=494, y=1280, z=5},
{x=503, y=1283, z=5},
{x=502, y=1249, z=7},
{x=499, y=1253, z=7},
{x=510, y=1252, z=7},
{x=491, y=1256, x=7},
{x=510, y=1255, z=7},
{x=513, y=1256, z=7},
{x=494, y=1262, z=7},
{x=496, y=1262, z=7},
{x=513, y=1261, z=7},
{x=525, y=1265, z=7},
{x=509, y=1271, z=7},
{x=514, y=1269, z=7},
{x=498, y=1275, z=7},
{x=507, y=1279, z=7},
{x=494, y=1280, z=7},
{x=503, y=1283, z=7}}

Help-me :confused: =x
 
Code:
local tp = {
	[13087] = {
		{x=502, y=1249, z=7},
		{x=499, y=1253, z=7},
		{x=510, y=1252, z=7},
		{x=491, y=1256, x=7},
		{x=510, y=1255, z=7},
		{x=513, y=1256, z=7},
		{x=494, y=1262, z=7},
		{x=496, y=1262, z=7},
		{x=513, y=1261, z=7},
		{x=525, y=1265, z=7},
		{x=509, y=1271, z=7},
		{x=514, y=1269, z=7},
		{x=498, y=1275, z=7},
		{x=507, y=1279, z=7},
		{x=494, y=1280, z=7},
		{x=503, y=1283, z=7},
		{x=502, y=1249, z=6},
		{x=502, y=1252, z=6},
		{x=495, y=1260, z=6},
		{x=513, y=1259, z=6},
		{x=498, y=1265, z=6},
		{x=513, y=1264, z=6},
		{x=525, y=1265, z=6},
		{x=519, y=1268, z=6},
		{x=509, y=1271, z=6},
		{x=501, y=1274, z=6},
		{x=498, y=1275, z=6},
		{x=507, y=1279, z=6},
		{x=494, y=1280, z=6},
		{x=503, y=1283, z=6}
	},
	[13187] = {
		{x=502, y=1249, z=6},
		{x=502, y=1252, z=6},
		{x=495, y=1260, z=6},
		{x=513, y=1259, z=6},
		{x=498, y=1265, z=6},
		{x=513, y=1264, z=6},
		{x=525, y=1265, z=6},
		{x=519, y=1268, z=6},
		{x=509, y=1271, z=6},
		{x=501, y=1274, z=6},
		{x=498, y=1275, z=6},
		{x=507, y=1279, z=6},
		{x=494, y=1280, z=6},
		{x=503, y=1283, z=6},
		{x=498, y=1275, z=5},
		{x=509, y=1271, z=5},
		{x=507, y=1279, z=5},
		{x=494, y=1280, z=5},
		{x=503, y=1283, z=5}
	},
	[13287] = {
		{x=498, y=1275, z=5},
		{x=509, y=1271, z=5},
		{x=507, y=1279, z=5},
		{x=494, y=1280, z=5},
		{x=503, y=1283, z=5},
		{x=502, y=1249, z=7},
		{x=499, y=1253, z=7},
		{x=510, y=1252, z=7},
		{x=491, y=1256, x=7},
		{x=510, y=1255, z=7},
		{x=513, y=1256, z=7},
		{x=494, y=1262, z=7},
		{x=496, y=1262, z=7},
		{x=513, y=1261, z=7},
		{x=525, y=1265, z=7},
		{x=509, y=1271, z=7},
		{x=514, y=1269, z=7},
		{x=498, y=1275, z=7},
		{x=507, y=1279, z=7},
		{x=494, y=1280, z=7},
		{x=503, y=1283, z=7}
	}
}
function onStepIn(cid, item, position, fromPosition)
	local v = tp[item.actionid]
	if(v) then
		local k = v[math.random(#v)]
		return doTeleportThing(cid, k) and doSendMagicEffect(k, CONST_ME_TELEPORT)
	end
end
 
Last edited:
@Cyke:
Fixed:
Code:
function onStepIn(cid, item, position, fromPosition)
	local v = tp[item.actionid]
	if(v) then
		local k = v[math.random(#v)]
		return doTeleportThing(cid, k) and doSendMagicEffect(k, CONST_ME_TELEPORT)
	end
end

:p
 
Back
Top