Page 1 of 1

DRG AF2 Drachen Brais Completed

Posted: Sat Aug 25, 2012 3:37 am
by codiddle
Updated several npcs, updated quests.lua - only changed CHASING_QUATAS to CHASING_QUOTAS
Updated the mob_spawn_points.sql to include the spawn point for the NM Sturmtiger
I tested script using Ceraulian.lua to read only a minute passing by rather than an entire day.

realday = tonumber(os.date("%M")); -- %M for next minute, %j for next

But I changed it back to be a day rather than a minute before I upload, haven't tested the entire day thing.
Tested, everything else. Worked flawlessly.

Re: DRG AF2 Drachen Brais Completed

Posted: Sat Aug 25, 2012 3:34 pm
by codiddle
I'd like to add that, according to what I read about the quest, it says 24 hours, but it could be as little as 12 hours. However, being as I'm a noob at lua, I don't know what has to be done to the date in order for it to have any kind of range. The only 2 ways I knew how to use the command were what was already listed by someone else, from a different quest (RDM AF feet quest). And that was Minute being %M and day being %j

Re: DRG AF2 Drachen Brais Completed

Posted: Sat Aug 25, 2012 3:36 pm
by codiddle
I guess you could pass a rand() into the function and make it random, but would that even work? Anyway, just some things I was thinking about.

Re: DRG AF2 Drachen Brais Completed

Posted: Sat Aug 25, 2012 6:21 pm
by PrBlahBlahtson
Samurai AF quests have a LOT of "wait until JP midnight" segments, if that's necessary.

Re: DRG AF2 Drachen Brais Completed

Posted: Fri Jan 18, 2013 9:07 pm
by azafaraht
Found that if you finished the quest Pickpocket, you never enter into the Esca cutscene for CHASING QUOTA. Added one line and modified another (changes are in bold) so that I could continue with Chasing Quotas if Pickpocket had been completed. However, the quest still takes priority over The Pickpocket if both Quests are flagged.

function onTrigger(player,npc)

-- "The Pickpocket" Quest status
thePickpocket = player:getQuestStatus(SANDORIA, THE_PICKPOCKET);
chasingQuota = player:getQuestStatus(SANDORIA, CHASING_QUOTA);

-- "The Pickpocket" Quest Dialog
if (thePickpocket == 1 and player:getVar("thePickpocketGiltGlasses") == 1) then
player:startEvent(0x0080);
elseif (thePickpocket == 1) then
player:startEvent(0x0078);
elseif (thePickpocket == 2 and chasingQuota == 2) then
player:startEvent(0x007b);
elseif(player:getVar("chasingQuotas_Event") == 6) then
player:startEvent(0x0089);
else
player:startEvent(0x0077);
end;
end;

Re: DRG AF2 Drachen Brais Completed

Posted: Fri Jan 18, 2013 10:52 pm
by azafaraht
Modified qm3.lua, added the player:messageSpecial(KEYITEM_OBTAINED,RANCHURIOMES_LEGACY); message. Otherwise, worked great. Got my DRG AF2 tonight. Thanks!