• You've discovered RedGuides 📕 an EverQuest multi-boxing community 🛡️🧙🗡️. We want you to play several EQ characters at once, come join us and say hello! 👋
  • IS THIS SITE UGLY? Change the look. To dismiss this notice, click the X --->
DanNet Helpers

DanNet Helpers 2021-08-30

Other Authors
Dannuic
Software Requirements
MQ2Next, MQ2Lua, MQ2DanNet, Write.lua
Server Type
🏢 Live TLP
This is a small library you can include in your Lua scripts to easily query/observe/unobserve peers/TLO values using MQ2DanNet.

Installation -

If necessary, create a "lib" folder in your Lua directory - then place the dannet/ directory into Lua/lib folder.

Usage -

To run the tests in game, /lua run dannet.test.lua <peer name>

Usage / Test Script:
local mq = require('mq')
local Write = require('lib/Write')
local dannet = require('lib/dannet/helpers')

local args = {...}
local peer = args[1]

if peer == nil then
  Write.Error('\arNeed a peer name to run dannet.test')
  return
end

Write.loglevel = 'debug'
Write.usecolors = false
Write.prefix = function() return string.format('\aw[%s] [\a-tDanNet Test\aw]\at ', mq.TLO.Time()) end

local i = 0
while true do 

  if i < 10 then
    dannet.observe(peer, 'Me.Moving')
    dannet.query(peer, 'Me.FreeInventory')
  else
    dannet.unobserve(peer, 'Me.Moving')
    mq.exit()
  end

  i = i + 1
  mq.delay('1s')
end
Author
SpecialEd
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from SpecialEd

Share this resource

Latest updates

  1. Removing delay callback

    - Removed the helper.query delay callback, it didn't appear to be functioning as expected. Pass...
Back
Top