ibrahimzxz
New Member
- Joined
- Jan 2, 2015
- Messages
- 53
- Reaction score
- 1
hi , can any one help me to make a gate of expertise , like putting the level to enter the quest?
ok ty, but if i want to put the door with any level ? i should put only (1000) without any other numbers?Open map editor, right click on door, hit propties, and where it says actionID, add 1000 + level required to enter. So if you want level 50 door, put actionID as 1050
i want a door with auto close ._. (but thx)Then why not just put a normal door there? If you are going to make it for any level, then why even have a gate of expertise?
function onUse(cid, item, frompos, item2, topos)
if getPlayerLevel(cid) >= 2000 then
pos = getPlayerPosition(cid)
if pos.x == topos.x then
if pos.y < topos.y then
pos.y = topos.y + 1
else
pos.y = topos.y - 1
end
elseif pos.y == topos.y then
if pos.x < topos.x then
pos.x = topos.x + 1
else
pos.x = topos.x - 1
end
else
doPlayerSendTextMessage(cid,22,"Stand in front of the door.")
return true
end
doTeleportThing(cid,pos)
doSendMagicEffect(topos,12)
else
doPlayerSendTextMessage(cid,22,'You need level 2000 or more!')
end
return true
end