Code: Select all
If DailyNotes then
-- turn on daily notes auto accept for the desired daily quest
end
Code: Select all
If DailyNotes then
-- turn on daily notes auto accept for the desired daily quest
end
Code: Select all
function DailyNotesActivate(_arg)
if RoMScript("DailyNotes") then
RoMScript("DailyNotesFrame:Show()")
cprintf(cli.lightblue,"Daily Notes addon instaled\n")
if _arg then
cprintf(cli.green,"AutoQuest Activated\n")
RoMScript("DailyNotesAutoQuest:SetChecked(true)")
RoMScript("DailyNotes.AutoQuest()")
RoMScript("DailyNotes.AutoQuestSelectAll()")
else
cprintf(cli.red,"AutoQuest Deactivated\n")
RoMScript("DailyNotes.AutoQuestClear()")
RoMScript("DailyNotesAutoQuest:SetChecked(false)")
RoMScript("DailyNotes.AutoQuest()")
end
RoMScript("DailyNotesFrame:Hide()")
else
print("Daily Notes addon not instaled")
end
end
Code: Select all
DailyNotesActivate(true)
Code: Select all
DailyNotesActivate(false)
Code: Select all
-- Make sure autoaccept/complete is enabled in DailyNotes
RoMScript("} DN_Options_Of_Char.Angel.autoquest=true a={")
local aq_accept = RoMScript("DN_Options_Of_Char.Angel.aq_accept")
if aq_accept == nil then
RoMScript("} DN_Options_Of_Char.Angel.aq_accept={["..quest.."]=1} a={")
else
RoMScript("} DN_Options_Of_Char.Angel.aq_accept["..quest.."]=1 a={")
end
Code: Select all
The game client did not crash.
11:57am - IGF:\} DN_Options_Of_Char.Angel.autoquest=true a={\ [string "local a={
} DN_Options_Of_Char.Angel.autoque..."]:1: attempt to index field 'Angel' (a nil
value)
Code: Select all
function DailyNotesActivate(_ID);
servername = RoMScript("GetServerName()")
if servername == "Angel City" then
DNserver = "Angel"
else
DNserver = servername
end
quest = _ID
if RoMScript("DailyNotes") then
-- Make sure autoaccept/complete is enabled in DailyNotes
RoMScript("} DN_Options_Of_Char."..DNserver..".autoquest=true a={")
local aq_accept = RoMScript("DN_Options_Of_Char."..DNserver..".aq_accept")
if aq_accept == nil then
RoMScript("} DN_Options_Of_Char."..DNserver..".aq_accept={["..quest.."]=1} a={")
else
RoMScript("} DN_Options_Of_Char."..DNserver..".aq_accept["..quest.."]=1 a={")
end
DailyNotesActive = true
else
cprintf(cli.yellow,"\nNo Daily Notes Addon found!\n")
DailyNotesActive = false
end
end
Code: Select all
function SetUpDNAutoQuest(questid)
local realm = string.match((RoMScript("GetCurrentRealm()") or ""),"(%w*)$") or ""
local realmset = RoMScript("(DN_Options_Of_Char."..realm.." ~= nil)")
if realmset then
RoMScript("} DN_Options_Of_Char."..realm..".autoquest=true) a={")
else
RoMScript("} DN_Options_Of_Char."..realm.." = {autoquest=true) a={")
end
local aq_accept = RoMScript("(DN_Options_Of_Char."..realm..".aq_accept ~= nil)")
if aq_accept then
RoMScript("} DN_Options_Of_Char."..realm..".aq_accept["..questid.."]=1 a={")
else
RoMScript("} DN_Options_Of_Char."..realm..".aq_accept={["..questid.."]=1} a={")
end
end
Code: Select all
The game client did not crash.
6:57pm - IGF:\} DN_Options_Of_Char.City.autoquest=true) a={\ Error in command se
nt to IGF.
Code: Select all
function DailyNotesActivate(questid);
if RoMScript("DailyNotes") then
local realm = string.match((RoMScript("GetCurrentRealm()") or ""),"(%w*)$") or ""
local realmset = RoMScript("(DN_Options_Of_Char."..realm.." ~= nil)")
if realmset then
RoMScript("} DN_Options_Of_Char."..realm..".autoquest=true a={")
else
RoMScript("} DN_Options_Of_Char."..realm.." = {autoquest=true) a={")
end
local aq_accept = RoMScript("(DN_Options_Of_Char."..realm..".aq_accept ~= nil)")
if aq_accept then
RoMScript("} DN_Options_Of_Char."..realm..".aq_accept["..questid.."]=1 a={")
else
RoMScript("} DN_Options_Of_Char."..realm..".aq_accept={["..questid.."]=1} a={")
end
DailyNotesActive = true
else
cprintf(cli.yellow,"\nDaily Notes Addon is not installed!\n")
DailyNotesActive = false
end
end
Code: Select all
RoMScript("} DN_Options_Of_Char."..realm..".autoquest=true) a={")
Code: Select all
RoMScript("} DN_Options_Of_Char."..realm..".autoquest=true a={")
The %w* matches any set of alphanumeric characters, ie a word. The $ in (%w*)$ means end of line so this matches the last word. 'or ""' just means if it doesn't find a match then use "" instead.' or ""),"(%w*)$") or "" '
Users browsing this forum: Ahrefs [Bot] and 1 guest