User Tools

Site Tools


lua:scripting:examples:trackshopgold

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
lua:scripting:examples:trackshopgold [2016/11/14 02:19] – created vodurlua:scripting:examples:trackshopgold [2016/11/14 02:34] (current) vodur
Line 1: Line 1:
-<code+luai to the mob you want to track then execute the script. 
-geshi:lua+ 
 +<code lua>
 do do
 local start = os.time() local start = os.time()
Line 17: Line 18:
 do_it() do_it()
 end end
 +</code>
 +
 +To terminate, do cancel() from the mob's luai.
 +
 +Before changeset 17f894157c3d
 +
 +<code>
 +Mad Mulligan says 'Gold: 46, Silver: 5814, Duration: 120'
 +Appr 50 gold per min, 500 gold in 10 mins.
 +</code>
 +
 +After changeset 17f894157c3d
 +
 +<code>
 +Mad Mulligan says 'Gold: 460, Silver: 42965, Duration: 119'
 +Appr 450 gold per min, 4500 gold in 10 mins.
 </code> </code>
  
lua/scripting/examples/trackshopgold.1479089995.txt.gz · Last modified: 2016/11/14 02:19 by vodur