Code: Select all
---------------------------------------------------------------------------------------------------
-- func: teledem
-- auth: sarpixel
-- desc: Teleports a player to Dem Crag
---------------------------------------------------------------------------------------------------
cmdprops =
{
permission = 0,
parameters = "iiii"
};
function onTrigger(player, x, y, z, zone)
if (player:level > x) then <-------------- HOW DO I MAKE THIS WORK?
if (player:haskeyitem(x) == true) then
player:setPos('0', '219.774', '19.567', '307.961', '108');
else
player:printtoplayer("You are not able to perform this action as you do not possess the Dem Gate Crystal.");
end
else
player:printtoplayer("Your level is not high enough to perform this action.");
end
end
Also, there isn't some sort of help guide.. or list of all sorts of commands? Like.. different kinds of if statements.. or whatever?