Guest User

Untitled

a guest
May 26th, 2015
249
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Overview: I'm essentially trying to create an auto targeter for when I bash. This process is building a table off IH, comparing it to the areaMobs table, and then creating the roomMobs table which I will grab targets from. The roomMobs table will be a table of IDs.
  2. ----------------------------------------------
  3.  
  4. Info Here Trigger:
  5. ^"(\w+?)(\d+)"
  6.  
  7. ih_id[matches[3]] = matches[2]
  8.  
  9. --------------------------
  10. propagate roomMobs table:
  11. ^You can see the following (\d+) objects
  12.  
  13. ih_id = {}
  14. tempLineTrigger(matches[2], 1, Create_RoomMobs_Table())
  15.  
  16. Note: The above tempLineTrigger does not work, however if I do the example posted below, it works.
  17. Example:
  18. tempLineTrigger(matches[2], 1, testingThis())
  19.  
  20. where testingThis() is:
  21. function testingThis()
  22. send("think This is working!")
  23. end
  24. ---------------------
  25.  
  26. roomMobs = {}
  27.  
  28. function Create_RoomMobs_Table()
  29. for k, v in pairs(ih_id) do
  30. [[if table.contains(testTable, ih_id[k]) then --: When I get this loop working
  31. table.insert(roomMobs, v) --: will this method for constructing
  32. break --: the roomMobs table work?
  33. end]]
  34. display(ih_id[k])
  35. end
  36. end
  37. ============
  38.  
  39. What I'm finding is this error:
  40. [ERROR:] object:<Clear's InfoHere list> function:<Trigger1563>
  41. <tempLineTrigger: wrong argument type>
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×