What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

[Plugin] "Item Rules 2" File based scripting language!

hi, amigos!

look at 1.7.1.6 file Interpreter.cs
Code:
        // final variables
        readonly string version = "2.0.0.6";
        readonly string customPath = [COLOR="#FF0000"]@"Plugins\GilesTrinity\ItemRules\Rules\"[/COLOR];
        readonly string logPath = [COLOR="#FF0000"]@"Plugins\GilesTrinity\ItemRules\Log\"[/COLOR];

This is fault to use relative path to ItemRules directory. It is relative to what?
We need path's string which was defined as:

Code:
readonly string customPath = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + @"\Plugins\GilesTrinity\ItemRules\Rules\";
readonly string logPath = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + @"\Plugins\GilesTrinity\ItemRules\Log\";
or
Code:
readonly string customPath = FileManager.DemonbuddyPath + @"\Plugins\GilesTrinity\ItemRules\Rules\";
readonly string logPath = FileManager.DemonbuddyPath + @"\Plugins\GilesTrinity\ItemRules\Log\";
or
(see to Loader.cs where define ItemRulePath object)
Code:
readonly string customPath = FileManager.ItemRulePath + @"\Rules\";
readonly string logPath =  FileManager.ItemRulePath + @"\Log\";

Thx.
 
Last edited:
Code:
// +---------------------------------------------------------------------------+
// | ______ __                             __              
// ||      |  |--.---.-.-----.-----.-----.|  |.-----.-----.
// ||   ---|     |  _  |     |  _  |  -__||  ||  _  |  _  |
// ||______|__|__|___._|__|__|___  |_____||__||_____|___  |
// |                         |_____|                |_____|
// +---------------------------------------------------------------------------+
// | 2.0081(beta):
// | - changed attribut pickupradius to [PICKRAD]
// | - moved from Trinity 1.7.1.4 to 1.7.1.5 thx to rrix for his hard work
// | - moved from Trinity 1.7.1.5 to 1.7.1.6 thx to rrix for his hard work
// +---------------------------------------------------------------------------+
 
Code:
// +---------------------------------------------------------------------------+
// | ______ __                             __              
// ||      |  |--.---.-.-----.-----.-----.|  |.-----.-----.
// ||   ---|     |  _  |     |  _  |  -__||  ||  _  |  _  |
// ||______|__|__|___._|__|__|___  |_____||__||_____|___  |
// |                         |_____|                |_____|
// +---------------------------------------------------------------------------+
// | 2.0081(beta):
// | - changed attribut pickupradius to [PICKRAD]
// | - moved from Trinity 1.7.1.4 to 1.7.1.5 thx to rrix for his hard work
// | - moved from Trinity 1.7.1.5 to 1.7.1.6 thx to rrix for his hard work
// +---------------------------------------------------------------------------+



so does this mean [PICKUP] no longer works because in the documentation it lists pickup radius as [PICKUP] If thats true what else in the doc is not correct?
 
hi, amigos!

look at 1.7.1.6 file Interpreter.cs
Code:
        // final variables
        readonly string version = "2.0.0.6";
        readonly string customPath = [COLOR="#FF0000"]@"Plugins\GilesTrinity\ItemRules\Rules\"[/COLOR];
        readonly string logPath = [COLOR="#FF0000"]@"Plugins\GilesTrinity\ItemRules\Log\"[/COLOR];

This is fault to use relative path to ItemRules directory. It is relative to what?
We need path's string which was defined as:

Code:
readonly string customPath = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + @"\Plugins\GilesTrinity\ItemRules\Rules\";
readonly string logPath = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location) + @"\Plugins\GilesTrinity\ItemRules\Log\";
or
Code:
readonly string customPath = FileManager.DemonbuddyPath + @"\Plugins\GilesTrinity\ItemRules\Rules\";
readonly string logPath = FileManager.DemonbuddyPath + @"\Plugins\GilesTrinity\ItemRules\Log\";
or
(see to Loader.cs where define ItemRulePath object)
Code:
readonly string customPath = FileManager.ItemRulePath + @"\Rules\";
readonly string logPath =  FileManager.ItemRulePath + @"\Log\";

Thx.

gona do that for the next release ...
 
so does this mean [PICKUP] no longer works because in the documentation it lists pickup radius as [PICKUP] If thats true what else in the doc is not correct?


in the new version it will be [PICKRAD] ... to avoid getting a confusion with the Action [PICKUP]
 
I don't get how subversion is set up.. why are there only zips checked in? It makes it very hard to diff vs old version etc...

Is there a source based svn repo?
 
I don't get how subversion is set up.. why are there only zips checked in? It makes it very hard to diff vs old version etc...

Is there a source based svn repo?


I too would love to be able to just update.. Kk Thanks LoL.

By the way, I am only seeing 20063 as the latest on repo.. do i have wrong address?
 
Last edited:
Code:
// +---------------------------------------------------------------------------+
// | ______ __                             __              
// ||      |  |--.---.-.-----.-----.-----.|  |.-----.-----.
// ||   ---|     |  _  |     |  _  |  -__||  ||  _  |  _  |
// ||______|__|__|___._|__|__|___  |_____||__||_____|___  |
// |                         |_____|                |_____|
// +---------------------------------------------------------------------------+
// | 2.009(beta):
// | - working on a better log system
// | - added again more rules
// | - fixed some filepath issues
// | - added archive functionality
// +---------------------------------------------------------------------------+

Code:
// +---------------------------------------------------------------------------+
// |  ______         __             ______ __                                  
// | |   __ \.--.--.|  |.-----.    |      |  |--.---.-.-----.-----.-----.-----.
// | |      <|  |  ||  ||  -__|    |   ---|     |  _  |     |  _  |  -__|__ --|
// | |___|__||_____||__||_____|    |______|__|__|___._|__|__|___  |_____|_____|
// |                                                        |_____|           
// +---------------------------------------------------------------------------+
// +-07.12.2012 ---------------------------------------------------------------+
// | - added more rare rules gloves, bracer, belt, special (hard set)
// +---------------------------------------------------------------------------+

today the 100th ... user joined us on our development repository ... hf!

100th.png
 
Why don't you post the scripts them selves? unified updates like bi-weekly, so much repacking :S
 
darkfriend77 what trinity loot pickup configuration do you use ? i mean ilvl od weapons, armor, jevely and legendaries ?

BTW in 2.1 i wish to see some buton in UI of trinity where we can chose wich rules we want to be active soft, medium, hard, custom...
 
Same problem.

Cleared cache, cookies, refreshed severel times - didn't help.

ItemRules20062UniTrinity1-7-1-4stable.zip
ItemRules20063UniTrinity1-7-1-4stable.zip
ItemRules2007UniTrinity1-7-1-4stable.zip
ItemRules20081UniTrinity1-7-1-5stable.zip
ItemRules20081UniTrinity1-7-1-6stable.zip
ItemRules2009UniTrinity1-7-1-6stable.zip
ItemRules200UniTrinity0_45stable.zip

All up there.

G
 
2.1:
Please put lower lvl requirement on items.
lvl 16-18 items sell easily and good and since there are few botted filters for these, they are scarce...
Is it impossible?
Thanks.
 
2.1:
Please put lower lvl requirement on items.
lvl 16-18 items sell easily and good and since there are few botted filters for these, they are scarce...
Is it impossible?
Thanks.


this is a nice idear ... has anyone some ... info about which items for low levels sell?

+exp? ... and so .. lets just put a lowLevel.dis together ..

help ^^

also it is possible to just pickup items in this region (lets say 16-18 magic)

^^
 
Back
Top