• mpl user drops carrier still shows online

    From dream master@21:1/163 to All on Thursday, September 15, 2016 13:58:00
    [cross po
    sted on DoRENET dn-mpl
    ]i have it when a person leaves the mpl it sets t
    hem as no online in game. how can i have it if they drop c
    arrier to rese to offline?here is the user rec file
    type playerrec = record;// dm-vudu.datindex :
    integer;name : string[35];// player name
    handle : string[35];// name on bbsweapon : string[20]
    ;// weapon namearmor : string[20];// protection
    namedead : boolean;// if player is dead
    sex : string[7];// players sex hitpoints : integer;
    // players hit points leftpoints : longint; h
    itmax : integer;// max hitpoints defense : integer;
    weapon_num : integer; armor_num : integer; fights_lef
    t:integer;// fights left savings : longint;mo
    ney_onhand: longint;level : longint;// player level
    [1..12]on_now : boolean;end; whe
    n they enter the game i have it do this.urec.on_now :=
    true;saveplayer(tmpindex);and when they exit
    the mpl urec.on_now := false;is there a way or do i
    have to deal with it? ;p .úù
    Dream Masterùú. øù
    úùøøùúùø DoRE!
    ACiDiC!Demonic[dreamland.darkt
    ech.org]
    --- Mystic BBS v1.12 A31 (Windows)
    * Origin: |08--[|15!|07dreamland BBS dreamland.darktech.org (21:1/163)
  • From xqtr@21:1/126 to dream master on Thursday, September 22, 2016 09:22:00
    The only solution, from inside the script, to know if a user is not online,
    is to make the script to do some "logging"... what i mean... Every time a
    user makes a move, press a key etc. record that inside a variable/record, for example store the time of his last move. Now, make the script to check this variable with the current time. If the time between those two vars is big,
    ex: 30min or bigger, then perhaps the user is offline and you should update
    the user database. You can also make an infinite loop, which will countdown
    an interval and if the user doesn't make any moves in this time,
    automatically the script exits and saves his online status.

    I am not quite sure, what you want to do and how, but i hope i helped :)

    --- Mystic BBS v1.12 A31 (Linux)
    * Origin: Twinkle BBS (21:1/126)