Aldo Axel
New Member
- Joined
- Jul 14, 2014
- Messages
- 70
- Reaction score
- 4
Greetings, my issue is on the Classic MOD of CTF Event ( Capture The Flag)
in this part where when the event ends, the teleport is still open, and in my case i want the teleport to be removed...
(MOD, ) CTF.xml:
Capture The Flag Event.xml
Essential part:
in this part where when the event ends, the teleport is still open, and in my case i want the teleport to be removed...
(MOD, ) CTF.xml:
Capture The Flag Event.xml
Essential part:
Code:
Tp_Place = {x=824,y=1018,z=7} -- Place where tp happens
<movevent type="StepIn" actionid="3435" event="script"><![CDATA[
domodlib('toto')
domodlib('CTF-lib')
function onStepIn(cid, item, position, lastPosition, fromPosition, toPosition, actor)
if getStorage(Event_Tile_Close) > 0 then
if getPlayerLevel(cid) < Min_Join_Level then
doTeleportThing(cid,fromPosition,false)
doSendMagicEffect(fromPosition,10)
doPlayerSendTextMessage(cid,21,"Only players of level "..Min_Join_Level.." are allowed to pass.")
else
doTeleportThing(cid,Wait_Place,false)
doSendMagicEffect(Wait_Place,10)
end
else
doTeleportThing(cid,fromPosition,false)
doSendMagicEffect(fromPosition,10)
doPlayerSendTextMessage(cid,21,"Back later the event is closed...")
end
return true
end
]]></movevent>