class prepForDelivery{ author = "axeman"; title = "Prep for Delivery"; desc = ""; img = ""; simpleTask = 0; triggerCondition = ""; taskLimit = 3; taskCheckTime = 16; triggerDelay = 0; items[] = {"ItemDocumentMission"}; itemSpawn = 3; markerType = 0; markerRadius = 0; markerText = ""; initfsm = ""; initsqf = ""; initcall = "axeDocDeliveryStart = diag_tickTime"; callEventBinTask = 0; callEventCondition1 = "(""ItemDocumentMission"" in magazines player)"; callEventCondition2 = ""; callEventCondition3 = ""; callEventCALL1 = "uiNameSpace setVariable ['axeStartTraders',(player nearentities [[""C_Man_1""],500]) apply {_x getVariable [""AI_SLOT"",-1]}]"; callEventFSM1 = ""; callEventSQF1 = ""; callEventTask1 = ""; callEventCALL2 = ""; callEventFSM2 = ""; callEventSQF2 = ""; callEventTask2 = ""; callEventCALL3 = ""; callEventFSM3 = ""; callEventSQF3 = ""; callEventTask3 = ""; diag1Condition = "true"; dialogue1[] = {"Pick up the Document to Start."}; diagSquelch = 60; diag2Condition = "!(""ItemDocumentMission"" in magazines player)"; dialogue2[] = {"Come on Buddy, Pick it up !","It's right next to you on the floor, pick it up to start."}; diag3Condition = ""; dialogue3[] = {""}; failedCondition = ""; abandonDist = 100; abandonTime = 240; failed[] = {"I guess you have better things to do.","Try again later.","You didn't pick up the document. Misison Failed !"}; failedFSM = ""; failedSQF = ""; failedCall = ""; failedTask[] = {""}; cleanUp = 1; cleanUpCalls[] = {"uiNameSpace setVariable ['axeStartTraders', nil]"}; completeCondition = "('ItemDocumentMission' in magazines player)"; reward[] = {}; completed1[] = {"That's great, let's get out of here.","Good, you have the document, let's move on.","Ok, well done. We can start now."}; completed2[] = {""}; reminder[] = {""}; nextTask[] = {"doDelivery"}; }; class doDelivery{ author = "axeman"; title = "Do Delivery"; desc = ""; img = ""; simpleTask = 0; triggerCondition = "(""ItemDocumentMission"" in magazines player)"; taskLimit = 3; taskCheckTime = 16; triggerDelay = 3; items[] = {""}; itemSpawn = 0; markerType = 0; markerRadius = 0; markerText = ""; initfsm = ""; initsqf = ""; initcall = ""; callEventBinTask = 0; callEventCondition1 = "(axeDocDeliveryStart + 480 < diag_tickTime) && ((player nearentities [[""C_Man_1""],500]) apply {_x getVariable [""AI_SLOT"",-1]} isEqualTo (uiNameSpace getVariable [""axeStartTraders"",[]]))"; callEventCondition2 = ""; callEventCondition3 = ""; callEventCALL1 = "[""Hey, what are you doing here ? Get on with your task !"", 5] call Epoch_message"; callEventFSM1 = ""; callEventSQF1 = ""; callEventTask1 = ""; callEventCALL2 = ""; callEventFSM2 = ""; callEventSQF2 = ""; callEventTask2 = ""; callEventCALL3 = ""; callEventFSM3 = ""; callEventSQF3 = ""; callEventTask3 = ""; diag1Condition = "(""ItemDocumentMission"" in magazines player)"; dialogue1[] = {"Ok, head off to another trader, you can't deliver to any nearby.","All set. Now take that document to another trader further away.","Take that message to another trader or trader city."}; diagSquelch = 40; diag2Condition = "!('ItemDocumentMission' in magazines player)"; dialogue2[] = {"Don't leave that document anywhere.","If you lose that document you will fail the mission."}; diag3Condition = "(count (player nearentities [[""C_Man_1""],42]) > 0) && (count (((player nearentities [[""C_Man_1""],42]) apply {_x getVariable [""AI_SLOT"",-1]}) select {_x in (uiNameSpace getVariable [""axeStartTraders"",[]])}) < 1)"; dialogue3[] = {"Well done, you have a trader nearby, go see him","Looks like you found another trader, well done, deliver the message.","UAV has spotted another trader nearby, go deliver the message."}; failedCondition = ""; abandonDist = 0; abandonTime = 1800; failed[] = {"Looks like you took too long buddy, Mission Over.","You need to be quicker next time, Mission Over !","Misison Failed - You took too long, better luck next time."}; failedFSM = ""; failedSQF = ""; failedCall = ""; failedTask[] = {""}; cleanUp = 0; cleanUpCalls[] = {"uiNameSpace setVariable ['axeStartTraders', nil]"}; completeCondition = "(count (player nearentities [[""C_Man_1""],6]) > 0) && (count (((player nearentities [[""C_Man_1""],6]) apply {_x getVariable [""AI_SLOT"",-1]}) select {_x in (uiNameSpace getVariable [""axeStartTraders"",[]])}) < 1)"; reward[] = {}; completed1[] = {"Hey there pal, it looks like you have something for me ?","Great Job there. Step into my office traveller.","You made it, time to take a look at that message."}; completed2[] = {""}; reminder[] = {""}; nextTask[] = {"finishDelivery"}; }; class finishDelivery{ author = "axeman"; title = "Finish Delivery"; desc = ""; img = ""; simpleTask = 0; triggerCondition = "(""ItemDocumentMission"" in magazines player)"; taskLimit = 3; taskCheckTime = 16; triggerDelay = 3; items[] = {""}; itemSpawn = 0; markerType = 0; markerRadius = 0; markerText = ""; initfsm = ""; initsqf = ""; initcall = "axeRndBadNews = floor random 100"; callEventBinTask = 1; callEventCondition1 = "(""ItemDocumentMission"" in magazines player)"; callEventCondition2 = "axeRndBadNews < 6"; callEventCondition3 = ""; callEventCALL1 = "player removeMagazine ""ItemDocumentMission"""; callEventFSM1 = ""; callEventSQF1 = ""; callEventTask1 = ""; callEventCALL2 = ""; callEventFSM2 = ""; callEventSQF2 = ""; callEventTask2 = "deliveryMissionBadNews"; callEventCALL3 = ""; callEventFSM3 = ""; callEventSQF3 = ""; callEventTask3 = ""; diag1Condition = "axeRndBadNews > 5"; dialogue1[] = {"That's interesting news. Thanks for bringing this.","Great news, you did well to bring this to me."}; diagSquelch = 60; diag2Condition = ""; dialogue2[] = {""}; diag3Condition = ""; dialogue3[] = {""}; failedCondition = ""; abandonDist = 0; abandonTime = 240; failed[] = {""}; failedFSM = ""; failedSQF = ""; failedCall = ""; failedTask[] = {}; cleanUp = 0; cleanUpCalls[] = {"uiNameSpace setVariable ['axeStartTraders', nil]"}; completeCondition = "axeRndBadNews > 5"; reward[] = {}; completed1[] = {"Take your reward, you have earnt it","Here is your reward, you are a great courier.","Any time you need work, come and see me, great job."}; completedCALL = "axeRewardWH = createVehicle[""groundWeaponHolder"",getPosATL player,[],0,""CAN_COLLIDE""];[axeRewardWH,""Pelican_EPOCH""] remoteExec [""EPOCH_serverLootObject"",2];"; reminder[] = {""}; nextTask[] = {}; }; class deliveryMissionBadNews{ author = "axeman"; title = "Delivery Gone Bad"; desc = ""; img = ""; simpleTask = 0; triggerCondition = ""; taskLimit = 3; taskCheckTime = 4; triggerDelay = 3; items[] = {""}; itemSpawn = 0; markerType = 0; markerRadius = 50; markerText = ""; initfsm = ""; initsqf = ""; initcall = "[player,6] call EPOCH_callSapperMigration"; callEventBinTask = 0; callEventCondition1 = ""; callEventCondition2 = ""; callEventCondition3 = ""; callEventCALL1 = ""; callEventFSM1 = ""; callEventSQF1 = ""; callEventTask1 = ""; callEventCALL2 = ""; callEventFSM2 = ""; callEventSQF2 = ""; callEventTask2 = ""; callEventCALL3 = ""; callEventFSM3 = ""; callEventSQF3 = ""; callEventTask3 = ""; diag1Condition = "true"; dialogue1[] = {"Oh my, that's terrible, why did you bring me this news ?","No no no, why would you do this to me, this is awful news."}; diagSquelch = 60; diag2Condition = ""; dialogue2[] = {""}; diag3Condition = ""; dialogue3[] = {""}; failedCondition = ""; abandonDist = 100; abandonTime = 240; failed[] = {""}; failedFSM = ""; failedSQF = ""; failedCall = ""; failedTask[] = {""}; cleanUp = 1; cleanUpCalls[] = {"uiNameSpace setVariable ['axeStartTraders', nil]"}; completeCondition = "true"; reward[] = {""}; completed1[] = {"You are going to pay for that, get out of my sight","Nobody does that to me, go away.","I would run buddy, I am not pleased."}; completed2[] = {""}; reminder[] = {""}; nextTask[] = {}; };