lua:scripting:examples:trackshopgold
This is an old revision of the document!
luai to the mob you want to track then execute the script.
geshi:lua do local start = os.time() mob.gold = 0 mob.silver = 0 local function do_it() local now = os.time() local dur = now-start local msg = string.format("Gold: %d, Silver: %d, Duration: %d", mob.gold, mob.silver, dur) say(msg) delay(4, do_it) end do_it() end
To terminate, do cancel() from the mob's luai.
lua/scripting/examples/trackshopgold.1479090523.txt.gz · Last modified: 2016/11/14 02:28 by vodur