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

action script request

Calon

Experienced Member
Joined
Feb 6, 2009
Messages
1,070
Reaction score
21
im searching for following:
a tp when somone enter he should have lvl 50 + 5 minotaur leathers to pass to x y z
rep:thumbup:
 
Lua:
llocal leather = 5920  --leather id
local lvl = 50  
local pos = {x=1000,y=1000,z=7}
function onStepIn(cid, item, position, fromPosition)
 if getPlayerLevel(cid) < 50 then
    doPlayerSendCancel(cid,"Only players of lvl 50 or more can pass.")
 
 elseif not (doPlayerRemoveItem(cid,leather,5)) then
     doPlayerSendCancel(cid,"You must have 5 mino leathers.")
	 doTeleportThing(cid,fromPosition,FALSE)
	doSendMagicEffect(getThingPos(cid),2)
 else
    doTeleportThing(cid,pos,FALSE)
	doSendMagicEffect(getThingPos(cid),10)
 end
 return true
end

then goo to movement.xml and add thie
Code:
<movevent type="StepIn" actionid="xxxx" event="script" value="xxx.lua" />
 
Last edited:
Back
Top