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

steponTile

Entral

C
Joined
May 1, 2009
Messages
371
Reaction score
0
Location
Sweden
Code:
local text = "What a nice shiny golden armor. Come to me and you can have it!"
function onStepIn(cid, item, position, fromPosition)
	doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
	doCreatureSay(cid, text, TALKTYPE_ORANGE_1, false, nil, {x = 32716, y = 32351, z = 7})
end

Cyko or any1 else :p!!

How can i make him yell? tried to change say to yell, but without luck ><!!

Also, i want it to show up in quest log, so how do i set storage id?
 
Last edited:
Lua:
function onStepIn(cid, item, position, fromPosition)
	doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
return true
end
 
Like this?
Lua:
function onStepIn(cid, item, position, fromPosition)
local text = "Woohooo!"
	doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
	doCreatureSay(cid, text, TALKTYPE_ORANGE_1)
return true
end
 
this is how i get it...
Code:
  function onStepIn(cid, item, position, fromPosition)
local text = "What a nice shiny golden armor. Come to me and you can have it!"
        doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
		doCreatureSay(cid, text, TALKTYPE_ORANGE_1, position) 
return true
end

it should be pos x 32716 y 32351 z 7
 
Code:
local text = "What a nice shiny golden armor. Come to me and you can have it!"
function onStepIn(cid, item, position, fromPosition)
	doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
	doCreatureSay(cid, text, TALKTYPE_ORANGE_1, false, nil, {x = 32716, y = 32351, z = 7})
end
 
thanks alot :)!

if i want it do be more tiles to walk on...
i just make it like this?

Code:
if item.actionid == xxxx then
local text = "What a nice shiny golden armor. Come to me and you can have it!"
function onStepIn(cid, item, position, fromPosition)
	doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
	doCreatureSay(cid, text, TALKTYPE_ORANGE_1, false, nil, {x = 32716, y = 32351, z = 7})
end

elseif item.actionid == yyyy then
local text = "A other text"
function onStepIn(cid, item, position, fromPosition)
	doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
	doCreatureSay(cid, text, TALKTYPE_ORANGE_1, false, nil, {x = 32716, y = 32351, z = 7})
end
 
more like
Code:
local array={
["xxxx"]={text="text", pos={x=,y=,z=}},
["yyy"]={text="text", pos={x=,y=,z=}}
}
function onStepIn(cid, item, position, fromPosition)
if (array[item.actionid]) then
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
doCreatureSay(cid, array[item.actionid].text, TALKTYPE_ORANGE_1, false, nil, array[item.actionid].position)
end
return TRUE
end
or the basic version
Code:
function onStepIn(cid, item, position, fromPosition)
if item.actionid == xxxx then
local pos={x=, y=,z=}
local text = "What a nice shiny golden armor. Come to me and you can have it!"
elseif item.actionid == yyyy then
local pos={x=, y=,z=}
local text = "A other text"
end
doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
	doCreatureSay(cid, text, TALKTYPE_ORANGE_1, false, nil, {x = 32716, y = 32351, z = 7})
return true
end


not tested, some syntax errors possible etc
 
:eek: thanks!
What's ghost supposed to do if it's true?
And what's the spectatorList?
Any link you can redirect me to? ^_^
no, you have to check out the source

spectatorList is a list (table) of players (their cid's) that should see the text.
 
Back
Top