added Binary folder and 3DData/AI/AAJU-AQUAGUARD.AIP
This commit is contained in:
commit
4cd053de0b
964 files changed
+11046
No files matched your search
@@ -0,0 +1,264 @@
|
||||
-- Cold Fusion LUA Decompiler v1.0.0
|
||||
-- By 4E534B
|
||||
-- Date: 09-16-2008 Time: 12:35:41
|
||||
-- On error(s), send source (compiled) file to 4E534B@gmail.com
|
||||
|
||||
|
||||
function g_showMotion01(hID, repeatNum)
|
||||
local iObject=IDT_Nil;
|
||||
local iMotion=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
iMotion=GF_GetMotionUseFile("3Ddata/MOTION/NPC/inventor1/inventor1_bow.ZMO");
|
||||
GF_SetMotion(iObject, iMotion, repeatNum);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_checkRepeat(hEvent_ID)
|
||||
local repeatNum=IDT_Nil;
|
||||
repeatNum=1;
|
||||
return 1;
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_store(hID)
|
||||
local iObject=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
local specialFlag=IDT_Nil;
|
||||
specialFlag=1;
|
||||
GF_openStore(iObject, specialFlag);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_hideMenu()
|
||||
return 0;
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_setBindingPosition()
|
||||
GF_setRevivePosition();
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_Normal()
|
||||
if (QF_getQuestItemQuantity(5032, 13507)~=1) then
|
||||
if (QF_findQuest(5032)==-1) then
|
||||
end
|
||||
|
||||
if (QF_findQuest(909)==-1) then
|
||||
if (QF_findQuest(910)==-1) then
|
||||
if (QF_findQuest(912)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_5032_mid1()
|
||||
if (QF_getQuestItemQuantity(5032, 13506)==1) then
|
||||
if (QF_findQuest(909)==-1) then
|
||||
if (QF_findQuest(910)==-1) then
|
||||
if (QF_findQuest(912)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_5032_mid2()
|
||||
if (QF_getQuestItemQuantity(5032, 13507)==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_5032_End1()
|
||||
if (QF_checkQuestCondition("5032-02")==1) then
|
||||
QF_doQuestTrigger("5032-02");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_909_end()
|
||||
if (QF_findQuest(909)>=0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_909_end()
|
||||
if (QF_checkQuestCondition("909-01")==1) then
|
||||
QF_doQuestTrigger("909-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_910_yet()
|
||||
if (QF_findQuest(910)>=0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_912_end()
|
||||
if (QF_findQuest(912)>=0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_912_end1()
|
||||
if (QF_checkQuestCondition("912-01")==1) then
|
||||
QF_doQuestTrigger("912-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_912_end2()
|
||||
if (QF_checkQuestCondition("912-02")==1) then
|
||||
QF_doQuestTrigger("912-02");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_912_end3()
|
||||
if (QF_checkQuestCondition("912-03")==1) then
|
||||
QF_doQuestTrigger("912-03");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_JN()
|
||||
if (GF_getVariable(SV_UNION)==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_JN_warp1()
|
||||
if (QF_checkQuestCondition("JN-warp01")==1) then
|
||||
QF_doQuestTrigger("JN-warp01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_202_Start()
|
||||
if (QF_checkQuestCondition("201-03")==1) then
|
||||
QF_doQuestTrigger("201-03");
|
||||
end
|
||||
|
||||
if (QF_findQuest(202)==-1) then
|
||||
if (QF_checkQuestCondition("202-00")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_202_Start()
|
||||
if (QF_checkQuestCondition("202-01")==1) then
|
||||
QF_doQuestTrigger("202-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_202_214_reissue()
|
||||
if (QF_findQuest(202)==-1) then
|
||||
if (QF_findQuest(203)==-1) then
|
||||
if (QF_findQuest(204)==-1) then
|
||||
if (QF_findQuest(205)==-1) then
|
||||
if (QF_findQuest(206)==-1) then
|
||||
if (QF_findQuest(207)==-1) then
|
||||
if (QF_findQuest(208)==-1) then
|
||||
if (QF_findQuest(209)==-1) then
|
||||
if (QF_findQuest(210)==-1) then
|
||||
if (QF_findQuest(211)==-1) then
|
||||
if (QF_findQuest(212)==-1) then
|
||||
if (QF_findQuest(213)==-1) then
|
||||
if (QF_findQuest(214)==-1) then
|
||||
if (QF_getEpisodeVAR(1)==2) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_202_214_reissue()
|
||||
if (QF_checkQuestCondition("202_214-03")==1) then
|
||||
QF_doQuestTrigger("202_214-03");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
@@ -0,0 +1,257 @@
|
||||
-- Cold Fusion LUA Decompiler v1.0.0
|
||||
-- By 4E534B
|
||||
-- Date: 09-16-2008 Time: 11:25:43
|
||||
-- On error(s), send source (compiled) file to 4E534B@gmail.com
|
||||
|
||||
|
||||
function g_showMotion01(hID, repeatNum)
|
||||
local iObject=IDT_Nil;
|
||||
local iMotion=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
iMotion=GF_GetMotionUseFile("3Ddata/MOTION/NPC/inventor1/inventor1_bow.ZMO");
|
||||
GF_SetMotion(iObject, iMotion, repeatNum);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_checkRepeat(hEvent_ID)
|
||||
local repeatNum=IDT_Nil;
|
||||
repeatNum=1;
|
||||
return 1;
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_store(hID)
|
||||
local iObject=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
local specialFlag=IDT_Nil;
|
||||
specialFlag=1;
|
||||
GF_openStore(iObject, specialFlag);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_hideMenu()
|
||||
return 0;
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_normal(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0==0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_HWE01_Start1(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0==300) then
|
||||
if (QF_checkQuestCondition("HWE01-01")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_HWE01_End1()
|
||||
if (QF_checkQuestCondition("HWE01-01")==1) then
|
||||
QF_doQuestTrigger("HWE01-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_HWE01_Start2(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0==300) then
|
||||
if (QF_checkQuestCondition("HWE01-02")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_HWE01_Start3(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0==301) then
|
||||
if (QF_checkQuestCondition("HWE01-03")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_HWE01_End3()
|
||||
if (QF_checkQuestCondition("HWE01-03")==1) then
|
||||
QF_doQuestTrigger("HWE01-03");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_HWE01_Start4(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0==300) then
|
||||
if (QF_checkQuestCondition("HWE01-04")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_HWE02_Start1(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0==302) then
|
||||
if (QF_checkQuestCondition("HWE02-01")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_HWE02_End1()
|
||||
if (QF_checkQuestCondition("HWE02-01")==1) then
|
||||
QF_doQuestTrigger("HWE02-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_HWE02_Start2(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0==302) then
|
||||
if (QF_checkQuestCondition("HWE02-02")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_HWE02_End2()
|
||||
if (QF_checkQuestCondition("HWE02-02")==1) then
|
||||
QF_doQuestTrigger("HWE02-02");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_HWE02_Start3(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0==302) then
|
||||
if (QF_checkQuestCondition("HWE02-03")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_HWE02_End3()
|
||||
if (QF_checkQuestCondition("HWE02-03")==1) then
|
||||
QF_doQuestTrigger("HWE02-03");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_HWE03_Start1(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0==303) then
|
||||
if (QF_checkQuestCondition("HWE03-01")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_HWE03_End1()
|
||||
if (QF_checkQuestCondition("HWE03-01")==1) then
|
||||
QF_doQuestTrigger("HWE03-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
-- Cold Fusion LUA Decompiler v1.0.0
|
||||
-- By 4E534B
|
||||
-- Date: 12-18-2008 Time: 11:06:56
|
||||
-- On error(s), send source (compiled) file to 4E534B@gmail.com
|
||||
|
||||
|
||||
function TA_checkRepeat(hEvent_ID)
|
||||
local repeatNum=IDT_Nil;
|
||||
repeatNum=1;
|
||||
return 1;
|
||||
end
|
||||
|
||||
function TA_hideMenu()
|
||||
return 0;
|
||||
end
|
||||
|
||||
function AT_store(hID)
|
||||
local iObject=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
local specialFlag=IDT_Nil;
|
||||
specialFlag=1;
|
||||
GF_openStore(iObject, specialFlag);
|
||||
end
|
||||
|
||||
function TA_not_KTR()
|
||||
if (GF_getVariable(SV_UNION)~=9) then
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
end
|
||||
end
|
||||
|
||||
function TA_already_KTR()
|
||||
if (GF_getVariable(SV_UNION)==9) then
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
end
|
||||
end
|
||||
|
||||
function TA_already_join()
|
||||
if (GF_getVariable(SV_UNION)>0) then
|
||||
if (GF_getVariable(SV_UNION)~=9) then
|
||||
return 1;
|
||||
else
|
||||
return 0;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function AT_KTR_join()
|
||||
if (QF_checkQuestCondition("KTR04")==1) then
|
||||
QF_doQuestTrigger("KTR04");
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function AT_KTR_leave()
|
||||
if (QF_checkQuestCondition("AR03")==1) then
|
||||
QF_doQuestTrigger("AR03");
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,277 @@
|
||||
-- Cold Fusion LUA Decompiler v1.0.0
|
||||
-- By 4E534B
|
||||
-- Date: 09-16-2008 Time: 12:36:23
|
||||
-- On error(s), send source (compiled) file to 4E534B@gmail.com
|
||||
|
||||
|
||||
function g_showMotion01(hID, repeatNum)
|
||||
local iObject=IDT_Nil;
|
||||
local iMotion=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
iMotion=GF_GetMotionUseFile("3Ddata/MOTION/NPC/inventor1/inventor1_bow.ZMO");
|
||||
GF_SetMotion(iObject, iMotion, repeatNum);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_checkRepeat(hEvent_ID)
|
||||
local repeatNum=IDT_Nil;
|
||||
repeatNum=1;
|
||||
return 1;
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_store(hID)
|
||||
local iObject=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
local specialFlag=IDT_Nil;
|
||||
specialFlag=1;
|
||||
GF_openStore(iObject, specialFlag);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_hideMenu()
|
||||
return 0;
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_openBank(hID)
|
||||
local iObject=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
GF_openBank(iObject);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_mileageBank()
|
||||
GF_openDeliveryStore();
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_normal()
|
||||
if (GF_getVariable(SV_LEVEL)<30) then
|
||||
if (QF_findQuest(1001)==-1) then
|
||||
if (QF_findQuest(1002)==-1) then
|
||||
if (QF_findQuest(1003)~=-1) then
|
||||
if (GF_getVariable(SV_LEVEL)>=30) then
|
||||
if (QF_getJobVAR(0)~=3) then
|
||||
if (GF_getVariable(SV_CLASS)~=411) then
|
||||
if (GF_getVariable(SV_LEVEL)>=30) then
|
||||
if (GF_getVariable(SV_CLASS)~=411) then
|
||||
end
|
||||
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_1002_start()
|
||||
if (QF_findQuest(1001)>=0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_1002_yet()
|
||||
if (QF_findQuest(1002)>=0) then
|
||||
if (QF_checkQuestCondition("1002-01")==0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_1003_start()
|
||||
if (QF_checkQuestCondition("1002-01")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_1003_yet()
|
||||
if (QF_findQuest(1003)>=0) then
|
||||
if (QF_checkQuestCondition("1003-01")==0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_1004_start()
|
||||
if (QF_checkQuestCondition("1003-01")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_1002_start()
|
||||
if (QF_checkQuestCondition("1001-02")==1) then
|
||||
QF_doQuestTrigger("1001-02");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_1003_start()
|
||||
if (QF_checkQuestCondition("1002-01")==1) then
|
||||
QF_doQuestTrigger("1002-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_1004_start()
|
||||
if (QF_checkQuestCondition("1003-01")==1) then
|
||||
QF_doQuestTrigger("1003-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_1008_start()
|
||||
if (QF_checkQuestCondition("1008-01")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_1008_start()
|
||||
if (QF_checkQuestCondition("1008-01")==1) then
|
||||
QF_doQuestTrigger("1008-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_1008_yet()
|
||||
local hQuest=IDT_Nil;
|
||||
hQuest=QF_findQuest(1008);
|
||||
if (QF_findQuest(1008)>=0) then
|
||||
if (QF_getQuestItemQuantity(1008, 13118)<10) then
|
||||
if (QF_getQuestSwitch(hQuest, 0)==0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_1008_end1()
|
||||
if (QF_getQuestItemQuantity(1008, 13118)>=10) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_1008_mid1()
|
||||
if (QF_checkQuestCondition("1008-02")==1) then
|
||||
QF_doQuestTrigger("1008-02");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_1008_end2()
|
||||
local hQuest=IDT_Nil;
|
||||
hQuest=QF_findQuest(1008);
|
||||
if (QF_findQuest(1008)>=0) then
|
||||
if (QF_getQuestSwitch(hQuest, 0)==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_1008_mid2()
|
||||
if (QF_checkQuestCondition("1008-03")==1) then
|
||||
QF_doQuestTrigger("1008-03");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_1008_end1()
|
||||
if (QF_checkQuestCondition("1008-04")==1) then
|
||||
QF_doQuestTrigger("1008-04");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_1008_end2()
|
||||
if (QF_checkQuestCondition("1008-05")==1) then
|
||||
QF_doQuestTrigger("1008-05");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
@@ -0,0 +1,248 @@
|
||||
-- Cold Fusion LUA Decompiler v1.0.0
|
||||
-- By 4E534B
|
||||
-- Date: 09-16-2008 Time: 12:37:05
|
||||
-- On error(s), send source (compiled) file to 4E534B@gmail.com
|
||||
|
||||
|
||||
function g_showMotion01(hID, repeatNum)
|
||||
local iObject=IDT_Nil;
|
||||
local iMotion=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
iMotion=GF_GetMotionUseFile("3Ddata/MOTION/NPC/inventor1/inventor1_bow.ZMO");
|
||||
GF_SetMotion(iObject, iMotion, repeatNum);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_checkRepeat(hEvent_ID)
|
||||
local repeatNum=IDT_Nil;
|
||||
repeatNum=1;
|
||||
return 1;
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_store(hID)
|
||||
local iObject=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
local specialFlag=IDT_Nil;
|
||||
specialFlag=1;
|
||||
GF_openStore(iObject, specialFlag);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_hideMenu()
|
||||
return 0;
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_normal()
|
||||
if (QF_findQuest(851)==-1) then
|
||||
if (QF_findQuest(852)==-1) then
|
||||
if (QF_findQuest(853)==-1) then
|
||||
if (QF_findQuest(1056)==-1) then
|
||||
if (QF_findQuest(1057)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_852_start()
|
||||
if (QF_findQuest(851)>=0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_852_start()
|
||||
if (QF_checkQuestCondition("852-01")==1) then
|
||||
QF_doQuestTrigger("852-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_852_yet()
|
||||
if (QF_findQuest(852)>=0) then
|
||||
if (QF_checkQuestCondition("852-02")==0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_853_start()
|
||||
local hQuest=IDT_Nil;
|
||||
hQuest=QF_findQuest(852);
|
||||
if (QF_findQuest(852)>=0) then
|
||||
if (QF_checkQuestCondition("852-02")==1) then
|
||||
if (QF_getQuestSwitch(hQuest, 4)==0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_853_start()
|
||||
if (QF_checkQuestCondition("852-02")==1) then
|
||||
QF_doQuestTrigger("852-02");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_853_start1()
|
||||
local hQuest=IDT_Nil;
|
||||
hQuest=QF_findQuest(852);
|
||||
if (QF_findQuest(852)>=0) then
|
||||
if (QF_checkQuestCondition("852-02")==1) then
|
||||
if (QF_getQuestSwitch(hQuest, 4)==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_852_mid()
|
||||
if (QF_checkQuestCondition("852-03")==1) then
|
||||
QF_doQuestTrigger("852-03");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_853_yet()
|
||||
if (QF_findQuest(853)>=0) then
|
||||
if (QF_checkQuestCondition("853-01")==0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_854_start()
|
||||
if (QF_findQuest(853)>=0) then
|
||||
if (QF_checkQuestCondition("853-01")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_854_start()
|
||||
if (QF_checkQuestCondition("853-01")==1) then
|
||||
QF_doQuestTrigger("853-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_1056_end()
|
||||
if (QF_findQuest(1056)>=0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_1056_end()
|
||||
if (QF_checkQuestCondition("1056-01")==1) then
|
||||
QF_doQuestTrigger("1056-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_1057_yet()
|
||||
if (QF_findQuest(1057)>=0) then
|
||||
if (QF_checkQuestCondition("1057-01")==0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_1057_end()
|
||||
if (QF_checkQuestCondition("1057-01")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_1057_end()
|
||||
if (QF_checkQuestCondition("1057-01")==1) then
|
||||
QF_doQuestTrigger("1057-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_setBindingPosition()
|
||||
GF_setRevivePosition();
|
||||
|
||||
end
|
||||
|
||||
|
||||
@@ -0,0 +1,350 @@
|
||||
-- Cold Fusion LUA Decompiler v1.0.0
|
||||
-- By 4E534B
|
||||
-- Date: 09-16-2008 Time: 12:37:28
|
||||
-- On error(s), send source (compiled) file to 4E534B@gmail.com
|
||||
|
||||
|
||||
function g_showMotion01(hID, repeatNum)
|
||||
local iObject=IDT_Nil;
|
||||
local iMotion=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
iMotion=GF_GetMotionUseFile("3Ddata/MOTION/NPC/inventor1/inventor1_bow.ZMO");
|
||||
GF_SetMotion(iObject, iMotion, repeatNum);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_checkRepeat(hEvent_ID)
|
||||
local repeatNum=IDT_Nil;
|
||||
repeatNum=1;
|
||||
return 1;
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_store(hID)
|
||||
local iObject=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
local specialFlag=IDT_Nil;
|
||||
specialFlag=1;
|
||||
GF_openStore(iObject, specialFlag);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_hideMenu()
|
||||
return 0;
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_normal()
|
||||
if (QF_findQuest(901)==-1) then
|
||||
if (QF_findQuest(902)==-1) then
|
||||
if (QF_findQuest(903)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_902_start()
|
||||
if (QF_findQuest(901)>=0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_902_yet()
|
||||
if (QF_findQuest(902)>=0) then
|
||||
if (QF_checkQuestCondition("902-01")==0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_903_start()
|
||||
local hQuest=IDT_Nil;
|
||||
hQuest=QF_findQuest(902);
|
||||
if (QF_findQuest(902)>=0) then
|
||||
if (QF_getQuestSwitch(hQuest, 4)==0) then
|
||||
if (QF_checkQuestCondition("902-01")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_903_start1()
|
||||
local hQuest=IDT_Nil;
|
||||
hQuest=QF_findQuest(902);
|
||||
if (QF_findQuest(902)>=0) then
|
||||
if (QF_getQuestSwitch(hQuest, 4)==1) then
|
||||
if (QF_checkQuestCondition("902-01")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_903_yet()
|
||||
if (QF_findQuest(903)>=0) then
|
||||
if (QF_checkQuestCondition("903-01")==0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_904_start()
|
||||
if (QF_findQuest(903)>=0) then
|
||||
if (QF_checkQuestCondition("903-01")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_902_start()
|
||||
if (QF_checkQuestCondition("901-02")==1) then
|
||||
QF_doQuestTrigger("901-02");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_903_start()
|
||||
if (QF_checkQuestCondition("902-01")==1) then
|
||||
QF_doQuestTrigger("902-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_902_mid()
|
||||
if (QF_checkQuestCondition("902-02")==1) then
|
||||
QF_doQuestTrigger("902-02");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_904_start()
|
||||
if (QF_checkQuestCondition("903-01")==1) then
|
||||
QF_doQuestTrigger("903-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_2001_completion()
|
||||
if (QF_findQuest(2001)>=0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_2005_completion()
|
||||
if (QF_findQuest(2005)>=0) then
|
||||
if (QF_getQuestItemQuantity(2005, 13533)>=1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_2001_end_2002_start()
|
||||
if (QF_checkQuestCondition("2001-02_2002-01")==1) then
|
||||
QF_doQuestTrigger("2001-02_2002-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_2005_end_2006_start()
|
||||
if (QF_checkQuestCondition("2005-02_2006-01")==1) then
|
||||
QF_doQuestTrigger("2005-02_2006-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_217_Start()
|
||||
if (QF_findQuest(216)>=0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_217_Start()
|
||||
if (QF_checkQuestCondition("217_01")==1) then
|
||||
QF_doQuestTrigger("217_01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_217_End()
|
||||
if (QF_checkQuestCondition("217_03")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_217_End()
|
||||
if (QF_checkQuestCondition("217_03")==1) then
|
||||
QF_doQuestTrigger("217_03");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_218_Start()
|
||||
if (QF_checkQuestCondition("218_00")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_218_Check()
|
||||
if (QF_checkQuestCondition("218_01")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_219_Check()
|
||||
if (QF_checkQuestCondition("219_01")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_220_Check()
|
||||
if (QF_checkQuestCondition("220_01")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_218_Start()
|
||||
if (QF_checkQuestCondition("218_01")==1) then
|
||||
QF_doQuestTrigger("218_01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_219_Start()
|
||||
if (QF_checkQuestCondition("219_01")==1) then
|
||||
QF_doQuestTrigger("219_01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_220_Start()
|
||||
if (QF_checkQuestCondition("220_01")==1) then
|
||||
QF_doQuestTrigger("220_01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
@@ -0,0 +1,355 @@
|
||||
-- Cold Fusion LUA Decompiler v1.0.0
|
||||
-- By 4E534B
|
||||
-- Date: 09-17-2008 Time: 13:56:14
|
||||
-- On error(s), send source (compiled) file to 4E534B@gmail.com
|
||||
|
||||
|
||||
function g_showMotion01(hID, repeatNum)
|
||||
local iObject=IDT_Nil;
|
||||
local iMotion=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
iMotion=GF_GetMotionUseFile("3Ddata/MOTION/NPC/inventor1/inventor1_bow.ZMO");
|
||||
GF_SetMotion(iObject, iMotion, repeatNum);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_checkRepeat(hEvent_ID)
|
||||
local repeatNum=IDT_Nil;
|
||||
repeatNum=1;
|
||||
return 1;
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_store(hID)
|
||||
local iObject=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
local specialFlag=IDT_Nil;
|
||||
specialFlag=1;
|
||||
GF_openStore(iObject, specialFlag);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_hideMenu()
|
||||
return 0;
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_normal()
|
||||
if (QF_findQuest(5001)~=-1) then
|
||||
if (QF_checkQuestCondition("5001-04")==1) then
|
||||
end
|
||||
|
||||
if (QF_findQuest(1071)==-1) then
|
||||
if (QF_findQuest(1072)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_5001_empty(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcvar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcvar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcvar0>0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_5001_start(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcvar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcvar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (QF_findQuest(5001)==-1) then
|
||||
if (npcvar0==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_5001_already(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcvar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcvar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (QF_findQuest(5001)<0) then
|
||||
if (npcvar0==11) then
|
||||
end
|
||||
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_5001_already2()
|
||||
if (GF_getVariable(SV_LEVEL)>18) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_5001_late(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcvar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcvar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcvar0==12) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_5001_mid()
|
||||
if (QF_checkQuestCondition("5001-04")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_5001_yet()
|
||||
if (QF_checkQuestCondition("5001-03")==1) then
|
||||
if (QF_findQuest(1071)==-1) then
|
||||
if (QF_findQuest(1072)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_5001_yet()
|
||||
if (QF_checkQuestCondition("5001-03")==1) then
|
||||
QF_doQuestTrigger("5001-03");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_5001_start()
|
||||
if (QF_checkQuestCondition("5001-01")==1) then
|
||||
QF_doQuestTrigger("5001-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_1071_end()
|
||||
if (QF_findQuest(1071)>=0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_1071_end()
|
||||
if (QF_checkQuestCondition("1071-01")==1) then
|
||||
QF_doQuestTrigger("1071-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_1072_yet()
|
||||
if (QF_getQuestItemQuantity(1072, 13219)==0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_1072_end()
|
||||
if (QF_getQuestItemQuantity(1072, 13219)==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_1072_end()
|
||||
if (QF_checkQuestCondition("1072-01")==1) then
|
||||
QF_doQuestTrigger("1072-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_kwang15()
|
||||
if (GF_getVariable(SV_LEVEL)==15) then
|
||||
if (QF_getUserSwitch(481)==0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_kwang15_1()
|
||||
if (QF_checkQuestCondition("kwang15-1")==1) then
|
||||
QF_doQuestTrigger("kwang15-1");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_kwang15_2()
|
||||
if (QF_checkQuestCondition("kwang15-2")==1) then
|
||||
QF_doQuestTrigger("kwang15-2");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_kwang15_3()
|
||||
if (QF_checkQuestCondition("kwang15-3")==1) then
|
||||
QF_doQuestTrigger("kwang15-3");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_kwang15_4()
|
||||
if (QF_checkQuestCondition("kwang15-4")==1) then
|
||||
QF_doQuestTrigger("kwang15-4");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_223_start()
|
||||
if (QF_checkQuestCondition("222-03")==1) then
|
||||
QF_doQuestTrigger("222-03");
|
||||
end
|
||||
|
||||
if (QF_findQuest(223)==-1) then
|
||||
if (QF_checkQuestCondition("223-01")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_223_start()
|
||||
if (QF_checkQuestCondition("223-01")==1) then
|
||||
QF_doQuestTrigger("223-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_223_230_reissue()
|
||||
if (QF_findQuest(223)==-1) then
|
||||
if (QF_findQuest(224)==-1) then
|
||||
if (QF_findQuest(225)==-1) then
|
||||
if (QF_findQuest(226)==-1) then
|
||||
if (QF_findQuest(227)==-1) then
|
||||
if (QF_findQuest(228)==-1) then
|
||||
if (QF_findQuest(229)==-1) then
|
||||
if (QF_findQuest(230)==-1) then
|
||||
if (QF_getEpisodeVAR(1)==13) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_223_230_reissue()
|
||||
if (QF_checkQuestCondition("223_230-03")==1) then
|
||||
QF_doQuestTrigger("223_230-03");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
@@ -0,0 +1,592 @@
|
||||
-- Cold Fusion LUA Decompiler v1.0.0
|
||||
-- By 4E534B
|
||||
-- Date: 09-26-2008 Time: 14:58:38
|
||||
-- On error(s), send source (compiled) file to 4E534B@gmail.com
|
||||
|
||||
|
||||
function g_showMotion01(hID, repeatNum)
|
||||
local iObject=IDT_Nil;
|
||||
local iMotion=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
iMotion=GF_GetMotionUseFile("3Ddata/MOTION/NPC/inventor1/inventor1_bow.ZMO");
|
||||
GF_SetMotion(iObject, iMotion, repeatNum);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_checkRepeat(hEvent_ID)
|
||||
local repeatNum=IDT_Nil;
|
||||
repeatNum=1;
|
||||
return 1;
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_store(hID)
|
||||
local iObject=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
local specialFlag=IDT_Nil;
|
||||
specialFlag=1;
|
||||
GF_openStore(iObject, specialFlag);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_hideMenu()
|
||||
return 0;
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_normal(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (GF_getVariable(SV_UNION)==4) then
|
||||
if (npcVar0==1) or (npcVar0==5) then
|
||||
if (npcVar0~=1) or (QF_findQuest(2856)<0) then
|
||||
if (npcVar0==5) then
|
||||
if (QF_findQuest(2855)>=0) then
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_not_AR()
|
||||
if (GF_getVariable(SV_UNION)~=4) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_already_AR()
|
||||
if (GF_getVariable(SV_UNION)==4) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_AR_join()
|
||||
if (GF_getVariable(SV_LEVEL)>=30) then
|
||||
if (GF_getVariable(SV_UNION)==0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_levelUnder30()
|
||||
if (GF_getVariable(SV_LEVEL)<30) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_already_join()
|
||||
if (GF_getVariable(SV_UNION)>0) then
|
||||
if (GF_getVariable(SV_UNION)~=4) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_money_enough()
|
||||
if (QF_checkQuestCondition("AR01")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_money_notenough()
|
||||
if (QF_checkQuestCondition("AR02")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_AR_join()
|
||||
if (QF_checkQuestCondition("AR01")==1) then
|
||||
QF_doQuestTrigger("AR01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_AR_leave()
|
||||
if (QF_checkQuestCondition("AR03")==1) then
|
||||
QF_doQuestTrigger("AR03");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_cart1_all()
|
||||
if (QF_checkQuestCondition("QU04-cart1-all")==1) then
|
||||
QF_doQuestTrigger("QU04-cart1-all");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_cart1_1()
|
||||
if (QF_checkQuestCondition("QU04-cart1-1")==1) then
|
||||
QF_doQuestTrigger("QU04-cart1-1");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_cart1_2()
|
||||
if (QF_checkQuestCondition("QU04-cart1-2")==1) then
|
||||
QF_doQuestTrigger("QU04-cart1-2");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_cart1_3()
|
||||
if (QF_checkQuestCondition("QU04-cart1-3")==1) then
|
||||
QF_doQuestTrigger("QU04-cart1-3");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_item1004()
|
||||
if (QF_checkQuestCondition("QU04-item1004")==1) then
|
||||
QF_doQuestTrigger("QU04-item1004");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_item1032()
|
||||
if (QF_checkQuestCondition("QU04-item1032")==1) then
|
||||
QF_doQuestTrigger("QU04-item1032");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_item1064()
|
||||
if (QF_checkQuestCondition("QU04-item1064")==1) then
|
||||
QF_doQuestTrigger("QU04-item1064");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_sw108()
|
||||
if (QF_getUserSwitch(108)==0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_sw109()
|
||||
if (QF_getUserSwitch(109)==0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_sw110()
|
||||
if (QF_getUserSwitch(110)==0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_sw111()
|
||||
if (QF_getUserSwitch(111)==0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_unionWar(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0>=1) then
|
||||
if (GF_getVariable(SV_UNION)==4) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_ready1(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0>=1) then
|
||||
if (npcVar0<=2) then
|
||||
if (QF_checkQuestCondition("2856-10")~=1) then
|
||||
if (npcVar0>=5) then
|
||||
if (npcVar0<=6) then
|
||||
if (QF_checkQuestCondition("2855-10")==1) then
|
||||
end
|
||||
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_ready2(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0>=1) then
|
||||
if (npcVar0<=2) then
|
||||
if (QF_checkQuestCondition("2856-10")~=0) then
|
||||
if (npcVar0>=5) then
|
||||
if (npcVar0<=6) then
|
||||
if (QF_checkQuestCondition("2855-10")==0) then
|
||||
end
|
||||
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_2856_ready()
|
||||
if (QF_checkQuestCondition("2856-10")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_2855_ready()
|
||||
if (QF_checkQuestCondition("2855-10")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_Being1(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0==3) then
|
||||
if (QF_checkQuestCondition("2856-10")~=1) then
|
||||
if (npcVar0==7) then
|
||||
if (QF_checkQuestCondition("2855-10")==1) then
|
||||
end
|
||||
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_Being2(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0==3) then
|
||||
if (QF_findQuest(2856)~=-1) then
|
||||
if (npcVar0==7) then
|
||||
if (QF_findQuest(2855)==-1) then
|
||||
end
|
||||
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_cancel(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0~=4) then
|
||||
if (npcVar0==8) then
|
||||
end
|
||||
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_win(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0==11) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_lose(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0==12) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_past(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0==1) then
|
||||
if (QF_findQuest(2856)>=0) then
|
||||
if (QF_checkQuestCondition("2856-10")~=0) then
|
||||
if (npcVar0==5) then
|
||||
if (QF_findQuest(2855)>=0) then
|
||||
if (QF_checkQuestCondition("2855-10")==0) then
|
||||
end
|
||||
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_2856_start(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0==1) then
|
||||
if (GF_getVariable(SV_UNION)==4) then
|
||||
if (QF_findQuest(2856)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_2856_start()
|
||||
if (QF_checkQuestCondition("2856-01")==1) then
|
||||
QF_doQuestTrigger("2856-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_2855_start(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0==5) then
|
||||
if (GF_getVariable(SV_UNION)==4) then
|
||||
if (QF_findQuest(2855)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_2855_start()
|
||||
if (QF_checkQuestCondition("2855-01")==1) then
|
||||
QF_doQuestTrigger("2855-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_union0()
|
||||
if (GF_getVariable(SV_UNION)==0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_anotherUnion()
|
||||
if (GF_getVariable(SV_UNION)~=4) then
|
||||
if (GF_getVariable(SV_UNION)~=0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
@@ -0,0 +1,181 @@
|
||||
-- Cold Fusion LUA Decompiler v1.0.0
|
||||
-- By 4E534B
|
||||
-- Date: 09-23-2008 Time: 08:46:18
|
||||
-- On error(s), send source (compiled) file to 4E534B@gmail.com
|
||||
|
||||
|
||||
function g_showMotion01(hID, repeatNum)
|
||||
local iObject=IDT_Nil;
|
||||
local iMotion=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
iMotion=GF_GetMotionUseFile("3Ddata/MOTION/NPC/inventor1/inventor1_bow.ZMO");
|
||||
GF_SetMotion(iObject, iMotion, repeatNum);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_checkRepeat(hEvent_ID)
|
||||
local repeatNum=IDT_Nil;
|
||||
repeatNum=1;
|
||||
return 1;
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_store(hID)
|
||||
local iObject=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
local specialFlag=IDT_Nil;
|
||||
specialFlag=1;
|
||||
GF_openStore(iObject, specialFlag);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_hideMenu()
|
||||
return 0;
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_separate(hID)
|
||||
local iObject=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
GF_openSeparate(iObject);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_5017_pre()
|
||||
if (QF_findQuest(5017)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_levelUnder43()
|
||||
if (GF_getVariable(SV_LEVEL)<=43) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_levelOver43()
|
||||
if (GF_getVariable(SV_LEVEL)>43) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_5017_start(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_5017_start()
|
||||
if (QF_checkQuestCondition("5017-01")==1) then
|
||||
QF_doQuestTrigger("5017-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_5017_yet(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0~=1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_5017_end()
|
||||
if (QF_getQuestItemQuantity(5017, 13807)>=10) then
|
||||
if (QF_getQuestItemQuantity(5017, 13808)>=10) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_5017_end()
|
||||
if (QF_checkQuestCondition("5017-04")==1) then
|
||||
QF_doQuestTrigger("5017-04");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_intime()
|
||||
if (QF_checkQuestCondition("5017-03")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_timeover()
|
||||
if (QF_checkQuestCondition("5017-03")==0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
@@ -0,0 +1,511 @@
|
||||
-- Cold Fusion LUA Decompiler v1.0.0
|
||||
-- By 4E534B
|
||||
-- Date: 01-02-2009 Time: 13:36:49
|
||||
-- On error(s), send source (compiled) file to 4E534B@gmail.com
|
||||
|
||||
|
||||
function g_showMotion01(hID, repeatNum)
|
||||
local iObject=IDT_Nil;
|
||||
local iMotion=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
iMotion=GF_GetMotionUseFile("3Ddata/MOTION/NPC/inventor1/inventor1_bow.ZMO");
|
||||
GF_SetMotion(iObject, iMotion, repeatNum);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_checkRepeat(hEvent_ID)
|
||||
local repeatNum=IDT_Nil;
|
||||
repeatNum=1;
|
||||
return 1;
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_store(hID)
|
||||
local iObject=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
local specialFlag=IDT_Nil;
|
||||
specialFlag=1;
|
||||
GF_openStore(iObject, specialFlag);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_hideMenu()
|
||||
return 0;
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_normal()
|
||||
if (GF_getVariable(SV_UNION)~=1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_JN()
|
||||
if (GF_getVariable(SV_UNION)==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_JN_end()
|
||||
if (QF_checkQuestCondition("3001-03")~=1) then
|
||||
if (QF_checkQuestCondition("3002-02")~=1) then
|
||||
if (QF_checkQuestCondition("3003-02")~=1) then
|
||||
if (QF_checkQuestCondition("3004-04")~=1) then
|
||||
if (QF_checkQuestCondition("3005-03")~=1) then
|
||||
if (QF_checkQuestCondition("3006-02")~=1) then
|
||||
if (QF_checkQuestCondition("3007-02")==1) then
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3001_end()
|
||||
if (QF_checkQuestCondition("3001-03")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3001_end()
|
||||
if (QF_checkQuestCondition("3001-03")==1) then
|
||||
QF_doQuestTrigger("3001-03");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3002_end()
|
||||
if (QF_checkQuestCondition("3002-02")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3002_end()
|
||||
if (QF_checkQuestCondition("3002-02")==1) then
|
||||
QF_doQuestTrigger("3002-02");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3003_end()
|
||||
if (QF_checkQuestCondition("3003-02")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3003_end()
|
||||
if (QF_checkQuestCondition("3003-02")==1) then
|
||||
QF_doQuestTrigger("3003-02");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3004_end()
|
||||
if (QF_checkQuestCondition("3004-04")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3004_end()
|
||||
if (QF_checkQuestCondition("3004-04")==1) then
|
||||
QF_doQuestTrigger("3004-04");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3005_end()
|
||||
if (QF_checkQuestCondition("3005-03")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3005_end()
|
||||
if (QF_checkQuestCondition("3005-03")==1) then
|
||||
QF_doQuestTrigger("3005-03");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_all_already()
|
||||
if (QF_findQuest(3001)>=0) then
|
||||
if (QF_findQuest(3002)>=0) then
|
||||
if (QF_findQuest(3003)>=0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_all_start()
|
||||
if (QF_findQuest(3001)~=-1) then
|
||||
if (QF_findQuest(3002)~=-1) then
|
||||
if (QF_findQuest(3003)==-1) then
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3001_start()
|
||||
if (QF_findQuest(3001)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3002_start()
|
||||
if (QF_findQuest(3002)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3003_start()
|
||||
if (QF_findQuest(3003)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3001_start()
|
||||
if (QF_checkQuestCondition("3001-01")==1) then
|
||||
QF_doQuestTrigger("3001-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3002_start()
|
||||
if (QF_checkQuestCondition("3002-01")==1) then
|
||||
QF_doQuestTrigger("3002-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3003_start()
|
||||
if (QF_checkQuestCondition("3003-01")==1) then
|
||||
QF_doQuestTrigger("3003-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_alba_already(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0~=1) then
|
||||
if (npcVar0~=7) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3004_start(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0==1) then
|
||||
if (QF_findQuest(3004)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3005_start(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0==7) then
|
||||
if (QF_findQuest(3005)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3004_start()
|
||||
if (QF_checkQuestCondition("3004-01")==1) then
|
||||
QF_doQuestTrigger("3004-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3005_start()
|
||||
if (QF_checkQuestCondition("3005-01")==1) then
|
||||
QF_doQuestTrigger("3005-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3006_start()
|
||||
if (GF_getVariable(SV_LEVEL)>50) then
|
||||
if (QF_findQuest(3006)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3006_start()
|
||||
if (QF_checkQuestCondition("3006-01")==1) then
|
||||
QF_doQuestTrigger("3006-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3006_end()
|
||||
if (QF_checkQuestCondition("3006-02")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3006_end()
|
||||
if (QF_checkQuestCondition("3006-02")==1) then
|
||||
QF_doQuestTrigger("3006-02");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3006_7_start()
|
||||
if (GF_getVariable(SV_LEVEL)>50) then
|
||||
if (QF_findQuest(3006)~=-1) then
|
||||
if (GF_getVariable(SV_LEVEL)>54) then
|
||||
if (QF_findQuest(3007)==-1) then
|
||||
end
|
||||
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function TA_3007_start()
|
||||
if (GF_getVariable(SV_LEVEL)>54) then
|
||||
if (QF_findQuest(3007)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3007_start()
|
||||
if (QF_checkQuestCondition("3007-01")==1) then
|
||||
QF_doQuestTrigger("3007-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3007_end()
|
||||
if (QF_checkQuestCondition("3007-02")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3007_end()
|
||||
if (QF_checkQuestCondition("3007-02")==1) then
|
||||
QF_doQuestTrigger("3007-02");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
function TA_233_start()
|
||||
if (QF_findQuest(232)>=0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_233_start()
|
||||
if (QF_checkQuestCondition("233_01")==1) then
|
||||
QF_doQuestTrigger("233_01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
@@ -0,0 +1,511 @@
|
||||
-- Cold Fusion LUA Decompiler v1.0.0
|
||||
-- By 4E534B
|
||||
-- Date: 01-02-2009 Time: 13:40:44
|
||||
-- On error(s), send source (compiled) file to 4E534B@gmail.com
|
||||
|
||||
|
||||
function g_showMotion01(hID, repeatNum)
|
||||
local iObject=IDT_Nil;
|
||||
local iMotion=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
iMotion=GF_GetMotionUseFile("3Ddata/MOTION/NPC/inventor1/inventor1_bow.ZMO");
|
||||
GF_SetMotion(iObject, iMotion, repeatNum);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_checkRepeat(hEvent_ID)
|
||||
local repeatNum=IDT_Nil;
|
||||
repeatNum=1;
|
||||
return 1;
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_store(hID)
|
||||
local iObject=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
local specialFlag=IDT_Nil;
|
||||
specialFlag=1;
|
||||
GF_openStore(iObject, specialFlag);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_hideMenu()
|
||||
return 0;
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_normal()
|
||||
if (GF_getVariable(SV_UNION)~=1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_JN()
|
||||
if (GF_getVariable(SV_UNION)==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_JN_end()
|
||||
if (QF_checkQuestCondition("3001-03")~=1) then
|
||||
if (QF_checkQuestCondition("3002-02")~=1) then
|
||||
if (QF_checkQuestCondition("3003-02")~=1) then
|
||||
if (QF_checkQuestCondition("3004-04")~=1) then
|
||||
if (QF_checkQuestCondition("3005-03")~=1) then
|
||||
if (QF_checkQuestCondition("3006-02")~=1) then
|
||||
if (QF_checkQuestCondition("3007-02")==1) then
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3001_end()
|
||||
if (QF_checkQuestCondition("3001-03")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3001_end()
|
||||
if (QF_checkQuestCondition("3001-03")==1) then
|
||||
QF_doQuestTrigger("3001-03");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3002_end()
|
||||
if (QF_checkQuestCondition("3002-02")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3002_end()
|
||||
if (QF_checkQuestCondition("3002-02")==1) then
|
||||
QF_doQuestTrigger("3002-02");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3003_end()
|
||||
if (QF_checkQuestCondition("3003-02")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3003_end()
|
||||
if (QF_checkQuestCondition("3003-02")==1) then
|
||||
QF_doQuestTrigger("3003-02");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3004_end()
|
||||
if (QF_checkQuestCondition("3004-04")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3004_end()
|
||||
if (QF_checkQuestCondition("3004-04")==1) then
|
||||
QF_doQuestTrigger("3004-04");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3005_end()
|
||||
if (QF_checkQuestCondition("3005-03")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3005_end()
|
||||
if (QF_checkQuestCondition("3005-03")==1) then
|
||||
QF_doQuestTrigger("3005-03");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_all_already()
|
||||
if (QF_findQuest(3001)>=0) then
|
||||
if (QF_findQuest(3002)>=0) then
|
||||
if (QF_findQuest(3003)>=0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_all_start()
|
||||
if (QF_findQuest(3001)~=-1) then
|
||||
if (QF_findQuest(3002)~=-1) then
|
||||
if (QF_findQuest(3003)==-1) then
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3001_start()
|
||||
if (QF_findQuest(3001)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3002_start()
|
||||
if (QF_findQuest(3002)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3003_start()
|
||||
if (QF_findQuest(3003)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3001_start()
|
||||
if (QF_checkQuestCondition("3001-01")==1) then
|
||||
QF_doQuestTrigger("3001-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3002_start()
|
||||
if (QF_checkQuestCondition("3002-01")==1) then
|
||||
QF_doQuestTrigger("3002-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3003_start()
|
||||
if (QF_checkQuestCondition("3003-01")==1) then
|
||||
QF_doQuestTrigger("3003-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_alba_already(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0~=1) then
|
||||
if (npcVar0~=7) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3004_start(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0==1) then
|
||||
if (QF_findQuest(3004)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3005_start(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0==7) then
|
||||
if (QF_findQuest(3005)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3004_start()
|
||||
if (QF_checkQuestCondition("3004-01")==1) then
|
||||
QF_doQuestTrigger("3004-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3005_start()
|
||||
if (QF_checkQuestCondition("3005-01")==1) then
|
||||
QF_doQuestTrigger("3005-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3006_start()
|
||||
if (GF_getVariable(SV_LEVEL)>50) then
|
||||
if (QF_findQuest(3006)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3006_start()
|
||||
if (QF_checkQuestCondition("3006-01")==1) then
|
||||
QF_doQuestTrigger("3006-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3006_end()
|
||||
if (QF_checkQuestCondition("3006-02")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3006_end()
|
||||
if (QF_checkQuestCondition("3006-02")==1) then
|
||||
QF_doQuestTrigger("3006-02");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3006_7_start()
|
||||
if (GF_getVariable(SV_LEVEL)>50) then
|
||||
if (QF_findQuest(3006)~=-1) then
|
||||
if (GF_getVariable(SV_LEVEL)>54) then
|
||||
if (QF_findQuest(3007)==-1) then
|
||||
end
|
||||
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3007_start()
|
||||
if (GF_getVariable(SV_LEVEL)>54) then
|
||||
if (QF_findQuest(3007)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3007_start()
|
||||
if (QF_checkQuestCondition("3007-01")==1) then
|
||||
QF_doQuestTrigger("3007-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_3007_end()
|
||||
if (QF_checkQuestCondition("3007-02")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_3007_end()
|
||||
if (QF_checkQuestCondition("3007-02")==1) then
|
||||
QF_doQuestTrigger("3007-02");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_233_start()
|
||||
if (QF_findQuest(232)>=0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_233_start()
|
||||
if (QF_checkQuestCondition("233_01")==1) then
|
||||
QF_doQuestTrigger("233_01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
@@ -0,0 +1,585 @@
|
||||
-- Cold Fusion LUA Decompiler v1.0.0
|
||||
-- By 4E534B
|
||||
-- Date: 09-18-2008 Time: 08:20:26
|
||||
-- On error(s), send source (compiled) file to 4E534B@gmail.com
|
||||
|
||||
|
||||
function g_showMotion01(hID, repeatNum)
|
||||
local iObject=IDT_Nil;
|
||||
local iMotion=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
iMotion=GF_GetMotionUseFile("3Ddata/MOTION/NPC/inventor1/inventor1_bow.ZMO");
|
||||
GF_SetMotion(iObject, iMotion, repeatNum);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_checkRepeat(hEvent_ID)
|
||||
local repeatNum=IDT_Nil;
|
||||
repeatNum=1;
|
||||
return 1;
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_store(hID)
|
||||
local iObject=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
local specialFlag=IDT_Nil;
|
||||
specialFlag=1;
|
||||
GF_openStore(iObject, specialFlag);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_hideMenu()
|
||||
return 0;
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_organizeClan()
|
||||
if (GF_getVariable(SV_LEVEL)>=30) then
|
||||
if (QF_checkQuestCondition("Clan-001")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_organizeClan(hID)
|
||||
local iObject=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
GF_organizeClan(iObject);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_disorganizeClan()
|
||||
if (QF_checkQuestCondition("Clan-002")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_disorganizeClan(hID)
|
||||
local iObject=IDT_Nil;
|
||||
iObject=QF_getEventOwner(hID);
|
||||
GF_disorganizeClan(iObject);
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_ClanWork()
|
||||
if (QF_checkQuestCondition("Clan-004")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_clanMasterWork()
|
||||
if (QF_checkQuestCondition("Clan-002")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_Clanlevelup()
|
||||
if (QF_checkQuestCondition("Clan-011")~=1) then
|
||||
if (QF_checkQuestCondition("Clan-021")==1) then
|
||||
end
|
||||
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_Clanlevelup2()
|
||||
if (QF_checkQuestCondition("Clan-011")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_Clanlevelup3()
|
||||
if (QF_checkQuestCondition("Clan-021")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_Clanlevelup2()
|
||||
if (QF_checkQuestCondition("Clan-011")==1) then
|
||||
QF_doQuestTrigger("Clan-011");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_Clanlevelup3()
|
||||
if (QF_checkQuestCondition("Clan-021")==1) then
|
||||
QF_doQuestTrigger("Clan-021");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_Clanlevel2()
|
||||
if (QF_checkQuestCondition("Clan-022")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_Clanlevel2_yet()
|
||||
if (QF_checkQuestCondition("Clan-014")==1) then
|
||||
if (QF_checkQuestCondition("Clan-013")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_Clanlevel3_yet()
|
||||
if (QF_checkQuestCondition("Clan-012")==1) then
|
||||
if (QF_checkQuestCondition("Clan-023")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_warpCheck()
|
||||
if (QF_checkQuestCondition("Clan-003")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_PartyCheck()
|
||||
if (QF_checkQuestCondition("Clan-PartyCheck")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_TimeCheck(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0==2) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_TimeCheck2(hID)
|
||||
local npc=IDT_Nil;
|
||||
local npcVar0=IDT_Nil;
|
||||
npc=QF_getEventOwner(hID);
|
||||
npcVar0=QF_getNpcQuestZeroVal(npc);
|
||||
if (npcVar0<2) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_clan_warpcheck3049()
|
||||
if (QF_checkQuestCondition("Clan-warp3049_01")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_clan_warpcheck5069()
|
||||
if (QF_checkQuestCondition("Clan-warp5069_01")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_clan_warpcheck7089()
|
||||
if (QF_checkQuestCondition("Clan-warp7089_01")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_clan_warp3049_01()
|
||||
if (QF_checkQuestCondition("Clan-warp3049_01")==1) then
|
||||
QF_doQuestTrigger("Clan-warp3049_01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_clan_warp3049_02()
|
||||
if (QF_checkQuestCondition("Clan-warp3049_02")==1) then
|
||||
QF_doQuestTrigger("Clan-warp3049_02");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_clan_warp3049_03()
|
||||
if (QF_checkQuestCondition("Clan-warp3049_03")==1) then
|
||||
QF_doQuestTrigger("Clan-warp3049_03");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_clan_warp3049_04()
|
||||
if (QF_checkQuestCondition("Clan-warp3049_04")==1) then
|
||||
QF_doQuestTrigger("Clan-warp3049_04");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_clan_warp5069_01()
|
||||
if (QF_checkQuestCondition("Clan-warp5069_01")==1) then
|
||||
QF_doQuestTrigger("Clan-warp5069_01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_clan_warp5069_02()
|
||||
if (QF_checkQuestCondition("Clan-warp5069_02")==1) then
|
||||
QF_doQuestTrigger("Clan-warp5069_02");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_clan_warp5069_03()
|
||||
if (QF_checkQuestCondition("Clan-warp5069_03")==1) then
|
||||
QF_doQuestTrigger("Clan-warp5069_03");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_clan_warp5069_04()
|
||||
if (QF_checkQuestCondition("Clan-warp5069_04")==1) then
|
||||
QF_doQuestTrigger("Clan-warp5069_04");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_clan_warp7089_01()
|
||||
if (QF_checkQuestCondition("Clan-warp7089_01")==1) then
|
||||
QF_doQuestTrigger("Clan-warp7089_01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_clan_warp7089_02()
|
||||
if (QF_checkQuestCondition("Clan-warp7089_02")==1) then
|
||||
QF_doQuestTrigger("Clan-warp7089_02");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_clan_warp7089_03()
|
||||
if (QF_checkQuestCondition("Clan-warp7089_03")==1) then
|
||||
QF_doQuestTrigger("Clan-warp7089_03");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_clan_warp7089_04()
|
||||
if (QF_checkQuestCondition("Clan-warp7089_04")==1) then
|
||||
QF_doQuestTrigger("Clan-warp7089_04");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_2751_start()
|
||||
if (QF_findQuest(2751)==-1) then
|
||||
if (QF_findQuest(2752)==-1) then
|
||||
if (QF_findQuest(2753)==-1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_2751_yet()
|
||||
if (QF_findQuest(2751)>=0) then
|
||||
if (QF_checkQuestCondition("2751-03")~=0) then
|
||||
if (QF_findQuest(2752)>=0) then
|
||||
if (QF_checkQuestCondition("2752-03")~=0) then
|
||||
if (QF_findQuest(2753)>=0) then
|
||||
if (QF_checkQuestCondition("2753-03")==0) then
|
||||
end
|
||||
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_2751_end()
|
||||
if (QF_findQuest(2751)>=0) then
|
||||
if (QF_checkQuestCondition("2751-03")~=1) then
|
||||
if (QF_findQuest(2752)>=0) then
|
||||
if (QF_checkQuestCondition("2752-03")~=1) then
|
||||
if (QF_findQuest(2753)>=0) then
|
||||
if (QF_checkQuestCondition("2753-03")==1) then
|
||||
end
|
||||
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_2751_start()
|
||||
if (QF_checkQuestCondition("2751-01")==1) then
|
||||
QF_doQuestTrigger("2751-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_2752_start()
|
||||
if (QF_checkQuestCondition("2752-01")==1) then
|
||||
QF_doQuestTrigger("2752-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_2753_start()
|
||||
if (QF_checkQuestCondition("2753-01")==1) then
|
||||
QF_doQuestTrigger("2753-01");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_2751_end()
|
||||
if (QF_checkQuestCondition("2751-02")==1) then
|
||||
QF_doQuestTrigger("2751-02");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_agitskill()
|
||||
if (QF_checkQuestCondition("Clan-031")==1) then
|
||||
if (QF_checkQuestCondition("Clan-032")==0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_agitskill_yet()
|
||||
if (QF_checkQuestCondition("Clan-031")==0) then
|
||||
if (QF_checkQuestCondition("Clan-032")==0) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_agitskill_already()
|
||||
if (QF_checkQuestCondition("Clan-032")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_agitskill()
|
||||
if (QF_checkQuestCondition("Clan-031")==1) then
|
||||
if (QF_checkQuestCondition("Clan-032")==0) then
|
||||
QF_doQuestTrigger("Clan-031");
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function TA_agitwarp()
|
||||
if (QF_checkQuestCondition("Clan-033")==1) then
|
||||
return 1;
|
||||
|
||||
else
|
||||
return 0;
|
||||
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
function AT_agitwarp()
|
||||
if (QF_checkQuestCondition("Clan-033")==1) then
|
||||
QF_doQuestTrigger("Clan-033");
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
|
||||
Binary file not shown.
Reference in new issue
Block a user