Headcrab

Untitled

May 6th, 2014
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 18.08 KB | None | 0 0
  1. //You'll need a lot of cleaning and tweaking (and there's some optimising to be done) to get this good.
  2. //Unity + C#
  3. //I MADE THIS www.totalwarp.co.uk
  4.  
  5. PlayerVARSTORE.cs
  6.  
  7.     //Quests
  8.     public static int OnQuest = 0;
  9.     public static string ActiveQuest = "None";
  10.     public static string QuestType = "";
  11.     public static string QuestLocation = "";
  12.     public static string QuestKillMob1 = "";
  13.     public static int QuestCollectAmount = 0;
  14.     public static int QuestKillAmount = 0;
  15.     public static int QuestAmountKilled = 0;
  16.     public static int QuestAmountCollected = 0;
  17.     public static int QuestsCompleted = 0;
  18.     public static int QuestsFailed = 0;
  19.     public static string QuestCollectName = "";
  20.     public static int StoryQuest = 0;
  21.     public static int QuestTurninRequired = 0;
  22.  
  23.  
  24.  
  25. TestKillQuest01.cs
  26.  
  27.     public int Questinternalnum = 2;
  28.     public static string QuestName = "Test Kill Quest";
  29.     public static string QuestDifficulty = "Easy";
  30.     public static string QuestType = "Kill";
  31.     public static string QuestKillMob1 = "Test Enemy";
  32.     public static string QuestCollectName = "Disrupted Cubes";
  33.     public static string QuestLocation = "Protective / Beacons / Cave ";
  34.     public static int QuestRequirementLVL = 2;
  35.     public static string QuestRequirementMisc = "";
  36.     public static int KillAmount = 5;
  37.     public static int StoryQuest = 0;
  38.  
  39.     public static int QuestRewardexp = 30;
  40.     public static string QuestRewardItem = "None";
  41.     public static int QuestRewardMoney = 50;
  42.    
  43.     public static int QuestTurninRequired = 0; //Formally "QuestCompleteAction" m = move out of area to town hub | n = Do nothing
  44.     public static string QuestCompleteTextN = "Defaults.DefaultQuestTurnInText"; //Text to display when quest complete and no need to turn in
  45.     public static string QuestCompleteTextM = "Defaults.DefaultQuestCompleteTextN"; //Text to display when quest complete turn in required
  46.     public static string QuestText = "This is a Test Mission. \n \nKill "+ KillAmount +" of "+QuestKillMob1+"\n \nTeleport Location: "+QuestLocation+"";
  47.  
  48.  
  49. Defaults.cs
  50.  
  51.     public static string DefaultQuestCompleteTextN = "Quest Complete! Returning to town in:";
  52.     public static string DefaultQuestTurnInText = "Active Quest Completed!";
  53.     public static string QuestErrorBROKEN = "QUEST HAS BROKEN Please note the following: "+ PlayerVARStore.ActiveQuest +""+ PlayerVARStore.QuestType +""+ PlayerVARStore.QuestCollectAmount +""+ PlayerVARStore.QuestAmountCollected +"";
  54.     public static string DefaultQuestFail = "You have failed "+ PlayerVARStore.ActiveQuest +".";
  55.     public static string DefaultQuestImpossible = "Your quest has been rendered impossible.";
  56.  
  57. Enemy (I only had one enemy in my game at the time so this only really works as a basis.)
  58.  
  59.         if(PlayerVARStore.QuestType == "Kill"){
  60.         if(PlayerVARStore.QuestKillMob1 == EnemyName | PlayerVARStore.QuestKillAmount != PlayerVARStore.QuestAmountKilled ) {
  61.         MessageDisplayerg.DisplayMessage("Mission Updated: "+EnemyName+" Killed");
  62.         PlayerVARStore.QuestAmountKilled += 1;
  63.         }
  64.         } else {
  65.         if(PlayerVARStore.QuestAmountCollected < PlayerVARStore.QuestCollectAmount ) {
  66.         MessageDisplayerg.DisplayMessage("Mission Update: Obtained "+PlayerVARStore.QuestCollectName+ "");
  67.         PlayerVARStore.QuestAmountCollected += 1;
  68.         }
  69.         }
  70.  
  71.  
  72. MISSION VENDOR.cs
  73.  
  74. public class MissionVendor : MonoBehaviour {
  75.     string selectedquest = "None";
  76.     public string selectedquestQuestText = "None";
  77.     int selectedquestQuestRewardExp = 0;
  78.     int selectedquestQuestRewardMoney = 0;
  79.     int selectedquestQuestReqLVL = 0;
  80.     int selectedquestStoryQuest = 0;
  81.     string selectedquestFullQuestName = "";
  82.     string selectedquestQuestLocation = "";
  83.     string selectedquestQuestKillMob1 = "";
  84.     string selectedquestQuestCollectName = "";
  85.     int selectedquestCollectAmount = 0;
  86.     int hidequitmission = 0;
  87.     int selectedQuestKillAmount = 0;
  88.     string selectedQuestType = "";
  89.     int selectedQuestTurninRequired = 0;
  90.     string selectedQuestRewardItem = "";
  91.     int selectedQuestRewardAmountItem1 = 0;
  92.     string selectedQuestRewardItem2 = "";
  93.     int selectedQuestRewardAmountItem2 = 0;
  94.    
  95. void OnGUI (){
  96.     //left-most position, top-most position, total width, total height
  97.     //background boxes
  98.     //GUI
  99.     GUI.Box ( new Rect(120,100,700,490),"MISSION VENDOR");
  100.     GUI.Label ( new Rect(150, 130, 100, 20), "Mission List");
  101.     //GUI.Label ( new Rect(380, 130, 150, 20), "Mission Description");
  102.     //GUI.Label ( new Rect(380, 130, 150, 20), "Story Missions");
  103.     GUI.Box(new Rect(160, 150, 200, 400), "");
  104.     GUI.Box(new Rect(390, 150, 400, 300), "Mission Details");
  105.     GUI.Box(new Rect(390, 460, 400, 90), "Quest Rewards");
  106.     GUI.Box(new Rect(404, 180, 370, 260), ""+selectedquestFullQuestName+"");
  107.     GUI.Box(new Rect(404, 480, 370, 60), "");
  108.    
  109.     //QUEST BUTTONS TODO: REPLACE
  110.     if( GUI.Button(new Rect(170,160,150,20),""+TestCollectQuest01.QuestName+"", "Label" ) ) {
  111.     if (PlayerVARStore.OnQuest == 0){
  112.     selectedquest = "TestCollectQuest01";
  113.     selectedquestQuestText = TestCollectQuest01.QuestText;
  114.     selectedquestQuestRewardExp = TestCollectQuest01.QuestRewardexp;
  115.     selectedquestQuestRewardMoney = TestCollectQuest01.QuestRewardMoney;
  116.     selectedquestQuestReqLVL = TestCollectQuest01.QuestRequirementLVL;
  117.     selectedquestFullQuestName = TestCollectQuest01.QuestName;
  118.     selectedquestQuestLocation = TestCollectQuest01.QuestLocation;
  119.     selectedquestStoryQuest = TestCollectQuest01.StoryQuest;
  120.     selectedquestQuestKillMob1 = TestCollectQuest01.QuestKillMob1;
  121.     selectedquestQuestCollectName = TestCollectQuest01.QuestCollectName;
  122.     selectedquestCollectAmount = TestCollectQuest01.CollectAmount;
  123.     selectedQuestType = TestCollectQuest01.QuestType;
  124.     selectedQuestTurninRequired = TestCollectQuest01.QuestTurninRequired;
  125.     }
  126.     }
  127.    
  128.     if( GUI.Button(new Rect(170,175,150,20),""+TestKillQuest01.QuestName+"", "Label" ) ) {
  129.     if (PlayerVARStore.OnQuest == 0){
  130.     selectedquest = "TestKillQuest01";
  131.     selectedquestQuestText = TestKillQuest01.QuestText;
  132.     selectedquestQuestRewardExp = TestKillQuest01.QuestRewardexp;
  133.     selectedquestQuestRewardMoney = TestKillQuest01.QuestRewardMoney;
  134.     selectedquestQuestReqLVL = TestKillQuest01.QuestRequirementLVL;
  135.     selectedquestFullQuestName = TestKillQuest01.QuestName;
  136.     selectedquestQuestLocation = TestKillQuest01.QuestLocation;
  137.     selectedquestStoryQuest = TestKillQuest01.StoryQuest;
  138.     selectedquestQuestKillMob1 = TestKillQuest01.QuestKillMob1;
  139.     selectedQuestKillAmount = TestKillQuest01.KillAmount;
  140.     selectedQuestType = TestKillQuest01.QuestType;
  141.     selectedQuestTurninRequired = TestKillQuest01.QuestTurninRequired;
  142.     }
  143.     }
  144.    
  145.     if( GUI.Button(new Rect(170,190,150,20),""+TestStoryQuest01.QuestName+"", "Label" ) ) {
  146.     if (PlayerVARStore.OnQuest == 0){
  147.     selectedquest = "TestStoryQuest01";
  148.     selectedquestQuestText = TestStoryQuest01.QuestText;
  149.     selectedquestQuestRewardExp = TestStoryQuest01.QuestRewardexp;
  150.     selectedquestQuestRewardMoney = TestStoryQuest01.QuestRewardMoney;
  151.     selectedquestQuestReqLVL = TestStoryQuest01.QuestRequirementLVL;
  152.     selectedquestFullQuestName = TestStoryQuest01.QuestName;
  153.     selectedquestQuestLocation = TestStoryQuest01.QuestLocation;
  154.     selectedquestStoryQuest = TestStoryQuest01.StoryQuest;
  155.     selectedQuestType = TestStoryQuest01.QuestType;
  156.     selectedQuestTurninRequired = TestStoryQuest01.QuestTurninRequired;
  157.     selectedQuestRewardItem = TestStoryQuest01.QuestRewardItem;
  158.     selectedQuestRewardAmountItem1  = TestStoryQuest01.QuestRewardAmountItem1;
  159.     selectedQuestRewardItem2 = TestStoryQuest01.QuestRewardItem2;
  160.     selectedQuestRewardAmountItem2  = TestStoryQuest01.QuestRewardAmountItem2;
  161.     }
  162.     }
  163.    
  164.     if (selectedquest != "None") {
  165.         GUI.Label ( new Rect(450, 280, 300, 200), "" +selectedquestQuestText+"");
  166.        
  167.         GUI.Label ( new Rect(450, 250, 300, 200), "Mission level: " +selectedquestQuestReqLVL+"");
  168.         if (PlayerVARStore.curLevel >= selectedquestQuestReqLVL) {
  169.         if (GUI.Button (new Rect (500,400,170,30), "Accept Mission")) {
  170.         AudioSource.PlayClipAtPoint (MenuClickSound, transform.position);
  171.         PlayerVARStore.QuestLocation = selectedquestQuestLocation;
  172.         PlayerVARStore.ActiveQuest = selectedquest;
  173.         PlayerVARStore.QuestKillMob1 = selectedquestQuestKillMob1;
  174.         PlayerVARStore.StoryQuest = selectedquestStoryQuest;
  175.         PlayerVARStore.QuestTurninRequired = selectedQuestTurninRequired;
  176.         PlayerVARStore.QuestType = selectedQuestType;
  177.         PlayerVARStore.OnQuest = 1;
  178.         if (selectedQuestType == "Collect") {
  179.         PlayerVARStore.QuestCollectName = selectedquestQuestCollectName;
  180.         PlayerVARStore.QuestCollectAmount = selectedquestCollectAmount;
  181.         }
  182.         if (selectedQuestType == "Kill") {
  183.         PlayerVARStore.QuestKillAmount = selectedQuestKillAmount;
  184.         }
  185.         MessageDisplayerg.DisplayMessage("" +PlayerVARStore.LocalName+ " has taken the mission - "+selectedquestFullQuestName+"");
  186.         selectedquest = "None";
  187.             }
  188.         } else {
  189.         if (GUI.Button (new Rect (500,400,170,30), "Your level is too low.")) {
  190.             }
  191.         }
  192.        
  193.         if (selectedquestQuestRewardMoney != 0) {
  194.         GUI.Label(new Rect(425, 485, money.width+5, money.height+5), money);
  195.         GUI.Label ( new Rect(430, 520, 300, 200), ""+selectedquestQuestRewardMoney+"");
  196.         }
  197.         if (selectedquestQuestRewardExp != 0) {
  198.         GUI.Label(new Rect(470, 485, exp.width+5, exp.height+5), exp);
  199.         GUI.Label ( new Rect(477, 520, 300, 200), ""+selectedquestQuestRewardExp+"");
  200.             }
  201.         if (selectedQuestRewardItem == "HP Potion") {
  202.         GUI.Label(new Rect(510, 485, healthpotion.width+5, healthpotion.height+5), healthpotion);
  203.         GUI.Label ( new Rect(520, 520, 300, 200), ""+selectedQuestRewardAmountItem1+"");
  204.             }
  205.         if (selectedQuestRewardItem2 == "Energy Potion") {
  206.         GUI.Label(new Rect(550, 485, energypotion.width+5, energypotion.height+5), energypotion);
  207.         GUI.Label ( new Rect(560, 520, 300, 200), ""+selectedQuestRewardAmountItem2+"");
  208.             }
  209.     } else {
  210.     if (PlayerVARStore.ActiveQuest == "None") {
  211.     hidequitmission = 0;
  212.         GUI.Label ( new Rect(450, 280, 300, 30), "NO ACTIVE MISSION");
  213.         GUI.Label ( new Rect(450, 300, 300, 30), "Select a mission from the left.");
  214.     }
  215.     else
  216.     {
  217.         if (PlayerVARStore.QuestType == "Collect") {
  218.         if (PlayerVARStore.QuestCollectAmount == PlayerVARStore.QuestAmountCollected) {
  219.         GUI.Label ( new Rect(450, 230, 300, 30), "Mission Complete!: " + PlayerVARStore.ActiveQuest + "");
  220.         GUI.Label ( new Rect(450, 250, 300, 30), "You can now turn this in:");
  221.         } else {
  222.         GUI.Label ( new Rect(450, 270, 300, 30), "Active Mission: " + PlayerVARStore.ActiveQuest + "");
  223.         GUI.Label ( new Rect(450, 290, 300, 30), "You may not have multiple active missions.");
  224.         GUI.Label ( new Rect(450, 310, 300, 35), "Abandoning will count as a failure, But you can retake the mission.");
  225.         }
  226.         } else {
  227.         if (PlayerVARStore.QuestType == "Kill") {
  228.         if (PlayerVARStore.QuestKillAmount == PlayerVARStore.QuestAmountKilled) {
  229.         GUI.Label ( new Rect(450, 230, 300, 30), "Mission Complete!: " + PlayerVARStore.ActiveQuest + "");
  230.         GUI.Label ( new Rect(450, 250, 300, 30), "You can now turn this in:");
  231.         } else {
  232.         GUI.Label ( new Rect(450, 270, 300, 30), "Active Mission: " + PlayerVARStore.ActiveQuest + "");
  233.         GUI.Label ( new Rect(450, 290, 300, 30), "You may not have multiple active missions.");
  234.         GUI.Label ( new Rect(450, 310, 300, 35), "Abandoning will count as a failure, But you can retake the mission.");
  235.         }
  236.         }
  237.                 }
  238.        
  239.        
  240.         if (PlayerVARStore.QuestType == "Collect") {
  241.         if (PlayerVARStore.QuestCollectAmount == PlayerVARStore.QuestAmountCollected) {
  242.         if (PlayerVARStore.QuestTurninRequired == 0) {
  243.         GUI.Label ( new Rect(450, 390, 300, 35), "THIS SHOULDN'T HAVE HAPPENED! AUTO TURN IN.");
  244.         } else {
  245.         if (selectedquestQuestRewardMoney != 0) {
  246.         GUI.Label(new Rect(425, 485, money.width+5, money.height+5), money);
  247.         GUI.Label ( new Rect(430, 520, 300, 200), ""+selectedquestQuestRewardMoney+"");
  248.         }
  249.         if (selectedquestQuestRewardExp != 0) {
  250.         GUI.Label(new Rect(470, 485, exp.width+5, exp.height+5), exp);
  251.         GUI.Label ( new Rect(477, 520, 300, 200), ""+selectedquestQuestRewardExp+"");
  252.             }
  253.         if (selectedQuestRewardItem == "HP Potion") {
  254.         GUI.Label(new Rect(510, 485, healthpotion.width+5, healthpotion.height+5), healthpotion);
  255.         GUI.Label ( new Rect(520, 520, 300, 200), ""+selectedQuestRewardAmountItem1+"");
  256.             }
  257.         if (selectedQuestRewardItem2 == "Energy Potion") {
  258.         GUI.Label(new Rect(550, 485, energypotion.width+5, energypotion.height+5), energypotion);
  259.         GUI.Label ( new Rect(560, 520, 300, 200), ""+selectedQuestRewardAmountItem2+"");
  260.             }
  261.         GUI.Label (new Rect(450,300,200,30), ""+selectedquestQuestText+"");
  262.         hidequitmission = 1;
  263.         if (GUI.Button (new Rect (450, 360, 200, 30), "Turn in "+PlayerVARStore.ActiveQuest+"")) {
  264.        
  265.         if (selectedquestQuestRewardMoney != 0) {
  266.         PlayerVARStore.Money += selectedquestQuestRewardMoney;
  267.         }
  268.        
  269.         if (selectedquestQuestRewardExp != 0) {
  270.         PlayerEXP ge = (PlayerEXP)target.GetComponent("PlayerEXP");
  271.         ge.AdjustCurrentEXP(selectedquestQuestRewardExp);
  272.         }
  273.         MessageDisplayerg.DisplayMessage("" +PlayerVARStore.LocalName+ " has completed the mission - "+selectedquestFullQuestName+"");
  274.         PlayerVARStore.ActiveQuest = "None";
  275.         selectedquest = "None";
  276.         selectedquestQuestText = "None";
  277.         selectedquestQuestRewardExp = 0;
  278.         selectedquestQuestRewardMoney = 0;
  279.         selectedquestQuestReqLVL = 0;
  280.         selectedquestFullQuestName = "";
  281.         selectedquestQuestLocation = "";
  282.         PlayerVARStore.QuestsCompleted += 1;
  283.         selectedquestStoryQuest = 0;
  284.         selectedquestQuestKillMob1 = "";
  285.         selectedquestQuestCollectName = "";
  286.         selectedquestCollectAmount = 0;
  287.         selectedQuestKillAmount = 0;
  288.         selectedQuestType = "";
  289.         selectedQuestTurninRequired = 0;
  290.         PlayerVARStore.OnQuest = 0;
  291.         PlayerVARStore.QuestType = "";
  292.         PlayerVARStore.QuestLocation = "";
  293.         PlayerVARStore.QuestKillMob1 = "";
  294.         PlayerVARStore.QuestCollectAmount = 0;
  295.         PlayerVARStore.QuestKillAmount = 0;
  296.         PlayerVARStore.QuestAmountKilled = 0;
  297.         PlayerVARStore.QuestAmountCollected = 0;
  298.         PlayerVARStore.QuestCollectName = "";
  299.         PlayerVARStore.StoryQuest = 0;
  300.         PlayerVARStore.QuestTurninRequired = 0;
  301.         } else {
  302.         if (PlayerVARStore.QuestTurninRequired == 0) {
  303.         GUI.Label ( new Rect(450, 390, 300, 35), "This mission will automatically turn in when completed.");
  304.         } else {
  305.         GUI.Label ( new Rect(450, 390, 300, 35), "This mission needs to be turned in.");
  306.         }
  307.         }
  308.         }
  309.         }
  310.         }
  311.        
  312.         if (PlayerVARStore.QuestType == "Kill") {
  313.         if (PlayerVARStore.QuestKillAmount == PlayerVARStore.QuestAmountKilled) {
  314.         if (PlayerVARStore.QuestTurninRequired == 0) {
  315.         GUI.Label ( new Rect(450, 390, 300, 35), "THIS SHOULDN'T HAVE HAPPENED! AUTO TURN IN.");
  316.         } else {   
  317.         if (selectedquestQuestRewardMoney != 0) {
  318.         GUI.Label(new Rect(425, 485, money.width+5, money.height+5), money);
  319.         GUI.Label ( new Rect(430, 520, 300, 200), ""+selectedquestQuestRewardMoney+"");
  320.         }
  321.         if (selectedquestQuestRewardExp != 0) {
  322.         GUI.Label(new Rect(470, 485, exp.width+5, exp.height+5), exp);
  323.         GUI.Label ( new Rect(477, 520, 300, 200), ""+selectedquestQuestRewardExp+"");
  324.             }
  325.         if (selectedQuestRewardItem == "HP Potion") {
  326.         GUI.Label(new Rect(510, 485, healthpotion.width+5, healthpotion.height+5), healthpotion);
  327.         GUI.Label ( new Rect(520, 520, 300, 200), ""+selectedQuestRewardAmountItem1+"");
  328.             }
  329.         if (selectedQuestRewardItem2 == "Energy Potion") {
  330.         GUI.Label(new Rect(550, 485, energypotion.width+5, energypotion.height+5), energypotion);
  331.         GUI.Label ( new Rect(560, 520, 300, 200), ""+selectedQuestRewardAmountItem2+"");
  332.             }
  333.        
  334.         GUI.Label (new Rect(450, 300,200,30), ""+selectedquestQuestText+"");
  335.         hidequitmission = 1;
  336.         if (GUI.Button (new Rect (450, 360, 200, 30), "Turn in "+PlayerVARStore.ActiveQuest+"")) {
  337.         if (selectedquestQuestRewardMoney != 0) {
  338.         PlayerVARStore.Money += selectedquestQuestRewardMoney;
  339.         }
  340.         if (selectedquestQuestRewardExp != 0) {
  341.         PlayerEXP ge = (PlayerEXP)target.GetComponent("PlayerEXP");
  342.         ge.AdjustCurrentEXP(selectedquestQuestRewardExp);
  343.         }
  344.         PlayerVARStore.ActiveQuest = "None";
  345.         selectedquest = "None";
  346.         selectedquestQuestText = "None";
  347.         selectedquestQuestRewardExp = 0;
  348.         selectedquestQuestRewardMoney = 0;
  349.         selectedquestQuestReqLVL = 0;
  350.         selectedquestFullQuestName = "";
  351.         selectedquestQuestLocation = "";
  352.         PlayerVARStore.QuestsCompleted += 1;
  353.         selectedquestStoryQuest = 0;
  354.         selectedquestQuestKillMob1 = "";
  355.         selectedquestQuestCollectName = "";
  356.         selectedquestCollectAmount = 0;
  357.         selectedQuestKillAmount = 0;
  358.         selectedQuestType = "";
  359.         selectedQuestTurninRequired = 0;
  360.         PlayerVARStore.OnQuest = 0;
  361.         PlayerVARStore.QuestType = "";
  362.         PlayerVARStore.QuestLocation = "";
  363.         PlayerVARStore.QuestKillMob1 = "";
  364.         PlayerVARStore.QuestCollectAmount = 0;
  365.         PlayerVARStore.QuestKillAmount = 0;
  366.         PlayerVARStore.QuestAmountKilled = 0;
  367.         PlayerVARStore.QuestAmountCollected = 0;
  368.         PlayerVARStore.QuestCollectName = "";
  369.         PlayerVARStore.StoryQuest = 0;
  370.         PlayerVARStore.QuestTurninRequired = 0;
  371.         } else {
  372.         if (PlayerVARStore.QuestTurninRequired == 0) {
  373.         GUI.Label ( new Rect(450, 390, 300, 35), "This mission will automatically turn in when completed.");
  374.         } else {
  375.         GUI.Label ( new Rect(450, 390, 300, 35), "This mission needs to be turned in.");
  376.         }
  377.         }
  378.         }
  379.         }
  380.         }
  381.        
  382.        
  383.         if (hidequitmission == 0) {
  384.         if (GUI.Button (new Rect (450, 360, 170, 30), "End Current Mission")) {
  385.         AudioSource.PlayClipAtPoint (MenuClickSound, transform.position);
  386.         MessageDisplayerg.DisplayMessage("" +PlayerVARStore.LocalName+ " has ended the mission - "+selectedquestFullQuestName+"");
  387.         PlayerVARStore.ActiveQuest = "None";
  388.         selectedquest = "None";
  389.         selectedquestQuestText = "None";
  390.         selectedquestQuestRewardExp = 0;
  391.         selectedquestQuestRewardMoney = 0;
  392.         selectedquestQuestReqLVL = 0;
  393.         selectedquestFullQuestName = "";
  394.         selectedquestQuestLocation = "";
  395.         PlayerVARStore.QuestsFailed += 1;
  396.         selectedquestStoryQuest = 0;
  397.         selectedquestQuestKillMob1 = "";
  398.         selectedquestQuestCollectName = "";
  399.         selectedquestCollectAmount = 0;
  400.         selectedQuestKillAmount = 0;
  401.         selectedQuestType = "";
  402.         selectedQuestTurninRequired = 0;
  403.         PlayerVARStore.OnQuest = 0;
  404.         PlayerVARStore.QuestType = "";
  405.         PlayerVARStore.QuestLocation = "";
  406.         PlayerVARStore.QuestKillMob1 = "";
  407.         PlayerVARStore.QuestCollectAmount = 0;
  408.         PlayerVARStore.QuestKillAmount = 0;
  409.         PlayerVARStore.QuestAmountKilled = 0;
  410.         PlayerVARStore.QuestAmountCollected = 0;
  411.         PlayerVARStore.QuestCollectName = "";
  412.         PlayerVARStore.StoryQuest = 0;
  413.         PlayerVARStore.QuestTurninRequired = 0;
  414.                 }
  415.             }
  416.         }
  417.     }
Advertisement
Add Comment
Please, Sign In to add comment