I just made simple functions for it.
Without Daily Notes addon:
Code: Select all
function DAILY()
repeat
inventory:update();
player:target_NPC("Lankor Forgia");
local dqCount = RoMScript("Daily_count()");
if 10 > dqCount then
queststate = getQuestStatus("A Little Refreshment");
if queststate == "complete" then
-- Complete quest
player:target_NPC("Lankor Forgia");
CompleteQuestByName("A Little Refreshment");
-- Accept quest
player:target_NPC("Lankor Forgia");
AcceptQuestByName("A Little Refreshment");
else
-- Accept quest
player:target_NPC("Lankor Forgia");
AcceptQuestByName("A Little Refreshment");
end
else
inventory:update();
player:update();
inventory:useItem(202434);
end
repeat
queststate = getQuestStatus("A Little Refreshment");
SlashCommand("script TargetNearestFriend()");
inventory:useItem("Energy Drink");
until queststate == "complete"
until inventory:itemTotalCount(202434) == 0
end
Code: Select all
function DAILY1()
repeat
inventory:update();
player:target_NPC("Lankor Forgia");
player:target_NPC("Lankor Forgia");
local dqCount = RoMScript("Daily_count()");
if dqCount == 10 then
inventory:update();
player:update();
inventory:useItem(202434);
player:target_NPC("Lankor Forgia");
end
if inventory:itemTotalCount("Energy Drink") < 1 then
player:target_NPC("Lankor Forgia");
end
repeat
queststate = getQuestStatus("A Little Refreshment");
SlashCommand("script TargetNearestFriend()");
inventory:useItem("Energy Drink");
until queststate == "complete"
until inventory:itemTotalCount(202434) == 0
end