Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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!
So you whant a script that apear when you are in x Position not?
But can u explain us How you whana that script, what it have to do?
Only tell you in orange something?
function onStepIn(cid, item, pos)
local Pos1 = {x=1525, y=1568,z=9}
local Pos2 = {x=1525, y=1567, z=9}
local Pos3 = {x=1528, y=1568, z=9}
local Pos4 = {x=1562, y=1564, z=9}
if item.actionid == 49330 then
doCreatureSay(cid, "Text", TALKTYPE_ORANGE_1, false, 0) <--- but cid,Pos1 I can't get it.
end
return TRUE
end
local config = {
positions = {
["LvL 1+"] = { x = 107, y = 123, z = 7 },
},
effects = {
CONDITION_PARAM_DELAYED
}
}
function onThink(cid, interval, lastExecution)
for text, pos in pairs(config.positions) do
doSendMagicEffect(pos, 32)
doSendAnimatedText(pos, text, TEXTCOLOR_ORANGE)
end
return TRUE
end
function onStepIn(cid, item, pos)
local Pos1 = {x=1525, y=1568,z=9}
local Pos2 = {x=1525, y=1567, z=9}
local Pos3 = {x=1528, y=1568, z=9}
local Pos4 = {x=1562, y=1564, z=9}
if item.actionid == 49330 then
doCreatureSay(cid, "Text", TALKTYPE_ORANGE_1, false, 0) <--- but cid,Pos1 I can't get it.
end
return TRUE
end
If you want to display on Pos1 - Pos4 use this one:
PHP:
function onStepIn(cid, item, pos)
local Pos = {
{x=1525, y=1568,z=9},
{x=1525, y=1567, z=9},
{x=1528, y=1568, z=9},
{x=1562, y=1564, z=9}
}
if item.actionid == 49330 then
for _, tile in pairs(Pos) do
doCreatureSay(cid, "Text", TALKTYPE_ORANGE_1, false, 0, tile)
end
end
return true
end