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

Lua Help me with a script please

AndresReon

New Member
Joined
Sep 27, 2011
Messages
1
Reaction score
0
Well, my problem is that i am to tired to fix this script ): i have been working for a month... So my problem is the script of the lever on farmine (the teletransporter to zao) in the past I "fix"this problem making a forcefield but that looks really bad so I am asking for support to fix my problem and my OT looks great, Thank u if u can help me

Mi script...
HTML:
function onUse(cid, item, fromPosition, itemEx, toPosition)
        if itemEx.uid == 4833 then
                doTeleportThing(cid, {x = 33061, y = 31524, z = 10})
                doSendMagicEffect({x = 33061, y = 31524, z = 10},11)
elseif itemEx.uid == 4832 then
                doTeleportThing(cid, {x = 32993, y = 31544, z = 4})
                doSendMagicEffect({x = 32993, y = 31544, z = 4},11)

                return TRUE
        end
        return FALSE
end

Sorry if I have a bad english but my native language is Spanish so I can misspell (:
 
XML:
<action uniqueid="1234;12345" event="script" value="zoa.lua" />
LUA:
function onUse(cid, item, fromPosition, itemEx, toPosition)
	if itemEx.uid == 1234 then
		doTeleportThing(cid, {x = 100, y = 100, z = 7})
		doSendMagicEffect(getPlayerPosition(cid), 11)
	elseif itemEx.uid == 12345 then
		doTeleportThing(cid, {x = 100, y = 100, z = 7})
		doSendMagicEffect(getPlayerPosition(cid), 11)
		end
	return FALSE
end
 
Back
Top