Userfunction Lootomatic - Control lootomatic from rombot
Posted: Sat Aug 10, 2013 6:54 am
This is my userfunction to attempt to control the lootomatic behaviour from rombot. It has been developed an tested regarding to Lootomatic version 1.0. Currently you can:
Alle method have the lootomatic. prefix.
1. enable lootomatic
This command enables the plugin in RoM
2. disable lootomatic
This command disables the plugin in RoM
3. add Item to itemlist of lootomatic
This command adds or appends a new item to lootomatics' internal filterlist. Its the list that is also accessable via the gui in the game. This command has three arguments to hand over.
Puts all kind of ammo in the list with the option loot and in case of a party or raid being greedy for the item.
HINT: the $ammo is a lootomatic feature and described in the plugin itself. You can of course also enter an itemid or the itemname itself.
4. remove an item from the itemlist of lootomatic
This command removes one item from the list without any confirmation. Provide the name or the id of the item to the function.
example:
Removes the item with the id 123456 from the list. If it wasn't on the list before, nothing will happen except a short note in the commandline window.
Final note:
For the convinience of all those user, which propably don't have this userfunction installed, you should enclosure all commands like this
This ensures that the related waypoint does not throw an error, when it's being used by one who didn't install this userfunction (yet?)
- enable/disable lootomatic
- add items to the itemlist of lootomatic (by name or itemid)
- remove items from the itemlist of lootomatic (by name or itemid)
Alle method have the lootomatic. prefix.
1. enable lootomatic
This command enables the plugin in RoM
Code: Select all
lootomatic.enable()
This command disables the plugin in RoM
Code: Select all
lootomatic.disable()
This command adds or appends a new item to lootomatics' internal filterlist. Its the list that is also accessable via the gui in the game. This command has three arguments to hand over.
- item - the name or id of the item
- loot - one of the following: 'dont_loot','loot','drop'
- roll - one of the following: 'pass','greed','need','manual'
Code: Select all
lootomatic.addItem ("$ammo","loot","greed")
HINT: the $ammo is a lootomatic feature and described in the plugin itself. You can of course also enter an itemid or the itemname itself.
4. remove an item from the itemlist of lootomatic
This command removes one item from the list without any confirmation. Provide the name or the id of the item to the function.
example:
Code: Select all
lootomatic.removeItem (123456)
Final note:
For the convinience of all those user, which propably don't have this userfunction installed, you should enclosure all commands like this
Code: Select all
if lootomatic then
lootomatic.addItem ("$ammo","loot","greed"); -- or any other function related to this userfunction.
end