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

Lua script error?

ond

Veteran OT User
Joined
Mar 24, 2008
Messages
2,782
Solutions
25
Reaction score
491
Location
Sweden
Could someone help me edit this script? It doesn't give any errors, just don't work.

LUA:
function onStepIn(cid, item, frompos, item2, topos) 
novapos = {x=32858, y=32338, z=7} 
novapos2 = {x=32816, y=32312, z=7} 
  
if item.uid == 2021 and getPlayerVocation == 2 and getPlayerVocation == 6 then
doTeleportThing(cid,novapos)
doSendMagicEffect(novapos,13)

elseif item.uid == 2021 and getPlayerVocation == 1 and getPlayerVocation == 3 and getPlayerVocation == 4 and getPlayerVocation == 5 and getPlayerVocation == 7 and getPlayerVocation == 8 then
doTeleportThing(cid,novapos2) 
doSendMagicEffect(novapos,13)
end 
end
 
Code:
function onStepIn(cid, item, frompos, item2, topos) 
	local novapos = {x=32858, y=32338, z=7} 
	local novapos2 = {x=32816, y=32312, z=7} 
	local playerVoc = getPlayerVocation(cid)
  
if playerVoc == 2 or playerVoc == 6 then
			doTeleportThing(cid,novapos)
			doSendMagicEffect(novapos,13)

		else
			doTeleportThing(cid,novapos2) 
			doSendMagicEffect(novapos,13)
		end 
	end
 
Back
Top