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

Big Script

andrewss

Nice Member
Joined
Jun 12, 2010
Messages
122
Reaction score
1
Location
E G Y P T
hey , i want a big script
___________________________________________________________________
Let's Start
___________________________________________________________________
now the script will make from x,y,z to x,y,z a name like Temple
a player will say !where playername will say to him in Temple if the position is not named Will say Is In Way not named!!
now let's see script from screen shot
6sgemr.png

1- the 4 black will say x,y,z to x,y,z to x,y,z to x,y,z
2-and the red will take it auto
3-and take the pos in middle
if it possible plz give me it
don't forget to do command !where playername :)
 
okay If Player On Temple and andrewss !where Spark Will Have MSG Player IS IN TEMPLE If Player Is not on temple will Have MSG Player Is in a way Not Named
Temple: X> 5452 Y> 2452 Z> 3
 
:D
Temple : X> 5452 Y> 2452 Z> 3
i am andrewss i writed !where DanneXD if danne in Temple will Get MSG Say DanneXD is On Temple if DanneXD is not in Temple So andrewss Will Have MSG DanneXD is not in Temple

understand ? :D
 
I think I have seen something similar to this before, But can't find anything :eek:

Maybe something like this? Though you have to edit the text.

Lua:
local t = {x=5452, y=2452, z=3}
 
function onUse (cid, item, fromPosition, itemEx, toPosition)
	local p = getThingPos(cid)
	if p.x == t.x and p.y == t.y and p.z == t.z then
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'AAA')
	else
		doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, 'BBB')
	end
	return TRUE
end

Credits to Cykotitan.
 
Last edited:
Lua:
function onSay(cid, words, param)
local _v = getPlayerByNameWildcard(param) 
local config = {
		{x = 1000, y = 1000, z = 7}, -- northwest corner
		{x = 1010, y = 1015, z = 7} -- south east corner
	}

-- script begins

if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "player name required.")
return true
end
if(not getPlayerByNameWildcard(param)) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " is not currently online.")
return true
end

	for x = (config.x)[1].x, (config.x)[2].x do
		for y = (config.y)[1].y, (config.y)[2].y do
			for z = (config.z)[1].z, (config.z)[2].z do
			if(isPlayer(getThingPos(param)({x = x, y = y, z = z}).uid)) then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " is currently in temple.")
		else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " is not currently in temple.")
		end
	end
end
end
return true
end
 
Lua:
function onSay(cid, words, param)
local _v = getPlayerByNameWildcard(param) 
local config = {
		{x = 1000, y = 1000, z = 7}, -- northwest corner
		{x = 1010, y = 1015, z = 7} -- south east corner
	}

-- script begins

if(param == '') then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "player name required.")
return true
end
if(not getPlayerByNameWildcard(param)) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " is not currently online.")
return true
end

	for x = (config.x)[1].x, (config.x)[2].x do
		for y = (config.y)[1].y, (config.y)[2].y do
			for z = (config.z)[1].z, (config.z)[2].z do
			if(isPlayer(getThingPos(param)({x = x, y = y, z = z}).uid)) then
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " is currently in temple.")
		else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Player " .. param .. " is not currently in temple.")
		end
	end
end
end
return true
end
hmmm it works but when i write !where andrewss dosn't work
andrewss is me i can !where my Self ?
Ty~!
 
Last edited:
Back
Top