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?
Yes, maybe a StepIn certain square with certain ActionID and then a talktype orange (the monster type) to appear on certain pos.
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
doCreatureSay(cid, "Text", TALKTYPE_ORANGE_1, false, 0, {x=100,y=100,z=7})
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
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
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
You didn't even do the script he requested..mine is working perfectly... REP++ ME AND I WILL GIVE IT BACK IF I HELPED YA!
effects = {
CONDITION_PARAM_DELAYED
}