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

Animated Text

The Mapper

Just Imagine
Joined
Jul 22, 2009
Messages
182
Reaction score
2
Hello I need the talktype orange text to appear on certain position of the map, how can I do this?
 
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?
 
Yes, maybe a StepIn certain square with certain ActionID and then a talktype orange (the monster type) to appear on certain pos.
 
Code:
doCreatureSay(cid, "Text", TALKTYPE_ORANGE_1, false, 0, [COLOR="Red"][B]{x=100,y=100,z=7}[/B][/COLOR])
 
How about making it like this:

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
 
Last edited:
To Cykotitan, Im trying to do it like this...

function onStepIn(cid, item, pos)
doCreatureSay(cid, "TIC TAC", TALKTYPE_ORANGE_1, false, 0, {x=1526,y=1568,z=7})
return TRUE
end

but is not working

Lua:
 doCreatureSay(cid, "Text", TALKTYPE_ORANGE_1, false, 0, {x=100,y=100,z=7})

And u made a movement or anything? for it?
 
Code:
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
Give me rep++ and i will give back! :ninja:
 
How about making it like this:

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
 
Back
Top