Skip to content
Snippets Groups Projects
  1. Mar 03, 2021
  2. Mar 02, 2021
    • Deucе's avatar
      Start work on l2cfg clone · abe923fc
      Deucе authored
      Beginnings of the map editor created, common functions from lord2.js
      moved into l2lib.js for sharing.
      abe923fc
  3. Mar 01, 2021
  4. Feb 28, 2021
    • Deucе's avatar
      Fix issues exposed by Runion Keep · df4d30e0
      Deucе authored
      - When a player number is passed in an IF, subtract one to get the index
      - Normalize @begin handling for all @if lines.
      df4d30e0
    • Rob Swindell's avatar
      Turn on ctrl-key passthrough for Ctrl-K/T/O/P/Z/U · fc1d0007
      Rob Swindell authored
      This is a full-screen game, so don't let this ctrl-key handlers mess up the
      game/map display.
      fc1d0007
    • Deucе's avatar
      Yet more CNW fixes... this appears to be good all the way to Greentree now. · b83d652d
      Deucе authored
      - saybar needs to leave cursor at 78,20 for BETTER.REF and
        TALQUIZ.REF
      - buymanager and sellmanager start on the current line, not a
        hard-coded one
      - buymanager and sellmanager need to clean their area on return
      - handle do handlers in if before checking for begin (assuming do).
        Fixes issue in GIVE.REF where "then goto begin" was interpreted
        as "then do begin".
      - "Fix" more prompt in @key to not center and always display
        "  <MORE>" as the prompt.  A number of things use @key after @saybar
      b83d652d
    • Deucе's avatar
      More CNW fixes/cleanups · 85521706
      Deucе authored
      - Trim bar to 76 characters (triggered by MORTAL.REF)
      - If the player initial map can't be loaded, move to 0,0,0
      - draw_map() can't auto-load the players map
        (ORACLE2.REF loads a map without the player on it)
      - When we draw a new map, set last_draw to undefined
      - If you move off the edge of a map into an undefined map, simply
        don't move (triggered by GLENDALE.REF)
      - Move play on map *after* a REF is ran
        (and you're potentially moved back)
      85521706
    • Deucе's avatar
      Keep track of last player drawn location, and erase there when needed. · 5772cf34
      Deucе authored
      Fixes the new issue where you would see the player move when x and y
      are changed, but should still leave the smackrod happy.
      5772cf34
    • Deucе's avatar
      Item activation does *not* clear the menu space. · b8879692
      Deucе authored
      Fixes CNW "Vehicles & People" some more.
      b8879692
    • Deucе's avatar
      Allow variables in both left and right sides of a conditional @choice · f80efb09
      Deucе authored
      Fixes CNW "Vehicles & People" people list.
      f80efb09
    • Deucе's avatar
      Fix @LABEL · da10b451
      Deucе authored
      da10b451
    • Deucе's avatar
      Add HOME/END support where cursor keys are supported. · 1fd56693
      Deucе authored
      This provides a way to create muscle memory for random fights...
      HOME will always take you to 'Attack' and END will always take you
      to 'Run Away' now.
      
      Two birds with one stone, yay!
      1fd56693
    • Deucе's avatar
      Fix chooseplayer() function · 85647747
      Deucе authored
      Previously, it did a case sensitive match against names that started
      with what you typed including LORD codes.
      
      Now it strips codes from both and does a case-insentive substring
      match.
      85647747
  5. Feb 27, 2021
  6. Feb 26, 2021
    • Deucе's avatar
      More draw_map() cleanup... · a2dd7a60
      Deucе authored
      - Don't clear the line until you're on column 79 and about to draw
        that last char.
      - Clear all rows after the map based on dk.console.rows.
        Clear to end of screen would still be better though.
      a2dd7a60
    • Deucе's avatar
      Fix "Sell how many?" prompt. · 3df2aadc
      Deucе authored
      Call update_update() as well as update() when we receive UPDATE.
      3df2aadc
    • Deucе's avatar
      Minor cleanup · b0d5c883
      Deucе authored
      Adjust some comments
      Use pretty_int() wherever we're displaying a number
      Clamp more integers
      Don't clear screen before drawing map
      b0d5c883
    • Deucе's avatar
      Add a couple of extra documented in REFDoor · 8156ab97
      Deucе authored
      Also, alphabetize the handlers.
      8156ab97
    • Deucе's avatar
      Implement tested online interactions. · c83f1654
      Deucе authored
      These now seem work both JS <-> JS and JS <-> L2.EXE.
      The only issue seems to be that infinite lives mode with L2.EXE, if
      you're killed and come back to life, you are no longer "on line".
      
      This does not seem to be an issue with the JS version for some
      reason, and may need to be "fixed"(?)
      c83f1654
  7. Feb 25, 2021
  8. Feb 24, 2021
  9. Feb 23, 2021
    • Deucе's avatar
      More game fixes · 61f74682
      Deucе authored
      Define the s&he variable.
      prevent replace_vars() -> getvar() infinite loop on undefined var
      Move to end of vbar after selection
      Lower-case font path
      61f74682
    • Deucе's avatar
      Various fixins... · 3cd83e2a
      Deucе authored
      - Fix @run command to lower-case section and filename, and add .ref
      - Set battle flag when @busy is called
      - Redraw map after exiting the buy/sell manager
      - Fix Sell confirmation
      - Check the CON file every time mail is checked automatically
      - Turn off the battle flag when returning from a hotspot module
      - Fix box with calculation in draw_box
      - Fix sell manager first draw colour after unsellable item
      - Clear message area when an item is used
      - Run the busy routing in gametxt.ref when battle is set
      - Actually allow doing things with items
      3cd83e2a
  10. Feb 21, 2021
    • Deucе's avatar
      Changes required for CNW setup... · 205e0d40
      Deucе authored
      User when not specified is 'SYSOP' not 'Local User'
      Use lower-case, not upper-case by default.
      Lower case all filenames from scripts.
      When a label is defined multiple times, the *first* instance is used.
      Labels can have spaces in them.
      Allow passing label+file.ref on command-line.
      205e0d40
  11. Feb 19, 2021
Loading