• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Recent content by Xellath

  1. X

    Fix/Patch Stairs Issue/Height Stacking

    I'm assuming this has been tested? I cannot test it myself right now. My fix is and was a fast temporary fix - and was not thoroughly tested -- however, it does fill its purpose. I'll attach your post to the thread to advise your fix instead. Thanks for taking the time to fix it.
  2. X

    SQL Code: Reset Players to lvl 8.

    Dont paste the last line then.
  3. X

    LATE's workshop(wut)

    Wicked! Thank you very much.
  4. X

    Get Creature CID

    getTopCreature returns the ID (cid) of a creature -- so creature = cid.
  5. X

    Get Creature CID

    Try using getTopCreature(pos).
  6. X

    Need move lever only when monster is dead

    You could use the onKill event and check if target is a monster and in a certain area -- and then set a global storage value that you use to check if the lever can be pulled in another action. Example: local monster = "" -- name of the monster local storage = 1475 -- global storage value...
  7. X

    Possible House Command? Rep!

    What house bug? Which distro are you talking about?
  8. X

    SQL Code: Reset Players to lvl 8.

    Update all players: UPDATE players SET level = 8, health = 185, healthmax = 185, experience = 4200, maglevel = 0, mana = 35, manamax = 35, manaspent = 0, soul = 100, posx = 1000, posy = 1000, posz = 7, cap = 440, skull = 0, skulltime = 0, stamina = 201660000, loss_experience = 100...
  9. X

    LATE's workshop(wut)

    I'd like one if you have time for it. :) Text: Xellath Render: http://bakarenders.com/renders/displayimage.php?pid=163&fullsize=1 optionally http://bakarenders.com/renders/displayimage.php?pid=3258&fullsize=1
  10. X

    Fix/Patch Stairs Issue/Height Stacking

    ctf76 posted a bug in the support forums, explaining that the stairs/ramps bug when you stack other items with height differences on the lower ramp tile. This applied to my server as well -- so I decided to fix it. The fix below was and still is a temporary quick solution - a more advised...
  11. X

    [GlobalEvent] Script Error: onStartup

    Then it's the other way around. Your compability is defined to replace db.executeQuery with db.query. Delete that line in 100-compat.lua and try again.
  12. X

    [GlobalEvent] Script Error: onStartup

    It's either that, or edit your 100-compat.lua (see my edited post above).
  13. X

    [GlobalEvent] Script Error: onStartup

    You're right, I thought that it just escaped the string and queued the query again, my bad. Do as War said, but see my post above before you replace all db.executeQuery.
  14. X

    [GlobalEvent] Script Error: onStartup

    Try replacing all db.executeQuery with db.escapeString. Scratch that. That escapes the string. My bad. Follow directions below, but instead of replacing everything you could do this to your 100-compat.lua: db.executeQuery = db.query
  15. X

    Add damage

    ret is the max damage (floorrounded). See cast: int32_t ret = (int32_t)std::floor(maxValue); DISTRO_NORMAL is a defined constant. There is no function where you can add it just by using a function call, you can however hook onStatsChange and alter or/and block the incoming health change...
Back
Top