I follow up question if I may
So this is a simple Door click code:
Code:
sub EVENT_CLICKDOOR
{
#postorms enter check
if($doorid == 16) {
if($client->GetLevel() >= 55 {
if(quest::has_zone_flag(210) != 1) {
quest::set_zone_flag(210);
$client->Message(15, "You have received a character flag!");
}
}
}
}
it check if you are lev 55, if yes it gives you access flag to enter PoStorms.
this assumes that zone is flag LOCKED to begin with.
If you NOT lev 55, it will bounce you back
1st question:
-player hits lev 55
-players clicks the door
-player gets the flag
-player DIES, looses a level
CAN HE STILL ENTER THE ZONE? He should still have flag from before.
But if I am reading the script right- the level is ALWAYS checked? or not?
But if its always checked, what a point of setting a zone flag?
My 2nd question is, is it possible to create some sort of "bounce back" WITHOUT using flags at all?
So the script will check your level, and only let you in, if level is right - without setting any flags?
thanks!