Jump to content
Returning Members: Password Reset Required ×

Recommended Posts

Posted

Hello, I was just wondering which TypeStatus I should use to prevent players from logging back into a map they shouldn't be in after logging out?

i`m using this: !client.Map.TypeStatus.HasFlag(MapTypeFlags.RebornNowEnable)

but not quite sure if its the right one

Posted (edited)
/// <summary>
///     Disable recording the map position into the database.
/// </summary>
public bool IsRecordDisable()
{
    return Type.HasFlag(MapTypeFlag.RecordDisable);
}

0x4

RebornNowEnable = 0x2000 is for maps that allow Revive Here

Edited by Konichu
Posted

Maps have an attribute for "reborn_map" which is the ID of the map you will respawn on if you log in or revive. 

 

Eg, Metzone is 1212 "GlobeQuest10" aka Adventure Zone 10, but the reborn map is 1219, which is GlobeExit, the Bird Island style looking map. 

You can do checks when reviving or logging in that the current map has Record Disabled and if it is, have them appear in the Reborn_Map instead. 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...