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

Request-Well

G3NU1N3

New Member
Joined
May 3, 2008
Messages
63
Reaction score
0
How would i go about making a Draw Well be like a ladder... just like in fibula in rl tibia?
 
Well, here is the whole script:

data/actions/scripts/well.lua:
Lua:
function onUse(cid, item, frompos, item2, topos)
pos = getCreaturePosition(cid)
downpos = {x=pos.x, y=pos.y, z=pos.z + 1} 
		if(item.itemid == 1369) or (item.itemid == 1368) then
			doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
			doSendMagicEffect(downpos, CONST_ME_GROUNDSHAKER)
			doTeleportThing(cid, downpos)
			doSendAnimatedText(downpos, "Ough!", TEXTCOLOR_GREEN) 
			doCreatureAddHealth(cid, -10)
			doSendAnimatedText(downpos, "-10", TEXTCOLOR_RED)
			doSetCreatureLight(cid, 6, 215, 250)
		return TRUE
	end
end

data/actions/actions.xml:
Lua:
	<action actionid="12121" event="script" value="well.lua"/>
 
Back
Top