to start a WP though type this
Code: Select all
rom/bot.lua path:MRC_Optimized
Code: Select all
rom/bot.lua path:MRC_Optimized
Ok but if we take for granted that everyone uses Logar as a starting point it would simplify things. Or create different return WP based on player ZoneID when zoning in-out (or just one file with different waypoints according to ZoneID)rock5 wrote:Problem is you can use 1 of a number of Sorrun brothers to get to miller's ranch so the script would be too complex to handle all locations.
Code: Select all
<onLoad>
local zoneid = RoMScript("GetZoneID()")
if zoneid == 1 --(logar)
loadPaths("logarEggMailer");
end
if zoneid == 10000 --(varanas)
loadPaths("varanasEggMailer");
end
if zoneid == 4 --(silverfall)
loadPaths("silverfallEggMailer");
end
if zoneid == 10001 --(lobsidianStronghold)
loadPaths("obsidianStrongholdEggMailer");
end
if zoneid == 12 --(elven)
loadPaths("elvenEggMailer");
end
</onLoad>
Code: Select all
EnableMailing = true/false
MailEggs = true/false
MailCake = true/false
MailMaterials = true/false
MailTo = "RecipientsName"
Code: Select all
MailNumberOfEggs = 50
MailAtTime = 14:00
MailOnRemainingEmpties = 5
Code: Select all
To Collect To Deliver Golden Eggs Dropped
2m 5s 1
5m 5s 0
7m 6s 0
8m 5s 3
11m 5s 1
7m 5s 0
5m 5s 0
7m 5s 1
5m 5s 0
304m 5s 2
7m 7s 2
5m 6s 0
6m 5s 0
Fresh Eggs average drop rate: 20.21 per hour
Golden Eggs average drop rate: 1.55 per hour
Total stuck eggs = 1
The mail recipient could be defined in the profile, that way you can either mail mats, cakes, eggs to 3 different characters or just one or whatever.rock5 wrote:It's a bit of work but it could be done. The question now is how do you want it to work. Maybe an enable option, 3 options to choose what to send and who to send to.Then how do we decide when to go send? When your inventory is full? When you have x number of Golden Eggs? At a certain time of day? I think different people will have different preferences.Code: Select all
EnableMailing = true/false MailEggs = true/false MailCake = true/false MailMaterials = true/false MailTo = "RecipientsName"
Code: Select all
printf("Golden Eggs in backpack: ") cprintf(cli.red, inventory:itemTotalCount(204792) .. " GOLDEN EGGS\n")
printf("Miller's Cake in backpack: ") cprintf(cli.red, inventory:itemTotalCount(204791) .. " MILLER CAKE\n")
Code: Select all
<option name="MAILING_ENABLED" value="true" />
<option name="MAIL_EGGS" value="character_NAME1" />
<option name="MAIL_CAKE" value="character_NAME2" />
<option name="MAIL_MATERIALS" value="character_NAME3" />
<option name="EGG_STACKS_MINIMUM" value="1" /> <!--number of egg stacks before mailing-->
<option name="CAKE_STACKS_MINIMUM" value="4" /> <!--number of cake stacks before mailing-->
Code: Select all
if settings.profile.options.MAILING_ENABLED == true then
MillerRanchMailer();
end
Code: Select all
function MillerRanchMailer()
local FreeSlots = inventory:itemTotalCount(0)
if settings.profile.options.MAIL_EGGS != nil then
if ( inventory:itemTotalCount(204792) / 99) >= EggStacksMinimum or FreeSlots < 1
loadPaths("MillerRanchMailer");
end
end
if settings.profile.options.MAIL_CAKE != nil then
if ( inventory:itemTotalCount(204791) / 99 ) >= CakeStacksMinimum or FreeSlots < 1
loadPaths("MillerRanchMailer");
end
end
if FreeSlots < 1 and ( inventory:itemTotalCount(204791) % 99 ) = 0 and ( inventory:itemTotalCount(204792) % 99 ) = 0
if settings.profile.options.MAIL_MATERIALS != nil then
loadPaths("MillerRanchMailer");
else
printf(cli.red, "Backpack is full!!!\nBackpack is full!!!\nBackpack is full!!!\nBackpack is full!!!\n")
player:Sleep();
end
end
Users browsing this forum: No registered users and 0 guests