• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

[Request] Yet another request

Tibia Rox

Member
Joined
Feb 4, 2009
Messages
1,181
Reaction score
9
Location
U.S.A
I would like a script that when you step on tile x: XXX y: YYY z: ZZ and X: XXX y: YYY z: ZZZ, it makes the sound "Ssssss", like when a creautre says something like "DIE!" in orange text.


Thanks in advance!
 
Code:
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
	if item.itemid == [B]####[/B] then
	local v, t = getThingPos(cid), 'Ssssss!'
		return doSendAnimatedText(v,t,77)
	end
end

Change #### to itemid of the tile.

Code:
<movevent type="StepIn" actionid="[B]ACTION_ID[/B]" event="script" value="[B]SCRIPT_NAME[/B].lua"/>

Give the tile an actionid in map editor.
 
Last edited:
Code:
function onStepIn(cid, item, position, fromPosition)
	doCreatureSay(cid, 'Ssssss!', TALKTYPE_ORANGE_1)
end
:)
 
Back
Top