- Timestamp:
- Jan 16, 2012 7:56:19 AM (4 months ago)
- Location:
- trunk/L2J_DataPack
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
dist/game/data/scripts/custom/MissQueen/MissQueen.java (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/L2J_DataPack
- Property svn:mergeinfo changed
/branches/unstable/L2J_DataPack_BETA merged: 8407-8426,8428-8480,8482-8491,8493-8588,8590-8629
- Property svn:mergeinfo changed
-
trunk/L2J_DataPack/dist/game/data/scripts/custom/MissQueen/MissQueen.java
r8406 r8630 38 38 39 39 // enable/disable coupon give 40 private static finalboolean QUEEN_ENABLED = false;40 private static boolean QUEEN_ENABLED = false; 41 41 // Newbie/one time rewards section 42 42 // Any quest should rely on a unique bit, but … … 66 66 67 67 if (!QUEEN_ENABLED) 68 { 68 69 return htmltext; 69 else 70 } 71 72 QuestState st = player.getQuestState(qn); 73 int newbie = player.getNewbie(); 74 int level = player.getLevel(); 75 int occupation_level = player.getClassId().level(); 76 int pkkills = player.getPkKills(); 77 if (event.equals("newbie_give_coupon")) 70 78 { 71 QuestState st = player.getQuestState(qn); 72 int newbie = player.getNewbie(); 73 int level = player.getLevel(); 74 int occupation_level = player.getClassId().level(); 75 int pkkills = player.getPkKills(); 76 if (event.equals("newbie_give_coupon")) 79 /* 80 * TODO: check if this is the very first character for this account would need a bit of SQL, or a core method to determine it. This condition should be stored by the core in the account_data table upon character creation. 81 */ 82 if (level >= 6 && level <= 25 && pkkills == 0 && occupation_level == 0) 77 83 { 78 /* 79 * TODO: check if this is the very first charactr for this account would need a bit of SQL, or a core method to determine it. This condition should be stored by the core in the account_data table upon character creation. 80 */ 81 if (level >= 6 && level <= 25 && pkkills == 0 && occupation_level == 0) 84 if ((newbie | NEWBIE_REWARD) != newbie) 82 85 { 83 if ((newbie | NEWBIE_REWARD) != newbie) 84 { 85 player.setNewbie(newbie | NEWBIE_REWARD); 86 st.giveItems(COUPNE_ONE, 1); 87 htmltext = "31760-2.htm"; // here's the coupon you requested 88 } 89 else 90 htmltext = "31760-1.htm"; // you got a coupon already! 86 player.setNewbie(newbie | NEWBIE_REWARD); 87 st.giveItems(COUPNE_ONE, 1); 88 htmltext = "31760-2.htm"; // here's the coupon you requested 91 89 } 92 90 else 93 htmltext = "31760- 3.htm"; // you're not eligible to get a coupon (level caps, pkkills or already changed class)91 htmltext = "31760-1.htm"; // you got a coupon already! 94 92 } 95 else if (event.equals("traveller_give_coupon"))96 {97 if (level >= 6 && level <= 25 && pkkills == 0 && occupation_level == 1)98 { // check the player state against this quest newbie rewarding mark.99 if ((newbie | TRAVELER_REWARD) != newbie)100 {101 player.setNewbie(newbie | TRAVELER_REWARD);102 st.giveItems(COUPNE_TWO, 1);103 htmltext = "31760-5.htm"; // here's the coupon you requested104 }105 else106 htmltext = "31760-4.htm"; // you got a coupon already!93 else 94 htmltext = "31760-3.htm"; // you're not eligible to get a coupon (level caps, pkkills or already changed class) 95 } 96 else if (event.equals("traveller_give_coupon")) 97 { 98 if (level >= 6 && level <= 25 && pkkills == 0 && occupation_level == 1) 99 { // check the player state against this quest newbie rewarding mark. 100 if ((newbie | TRAVELER_REWARD) != newbie) 101 { 102 player.setNewbie(newbie | TRAVELER_REWARD); 103 st.giveItems(COUPNE_TWO, 1); 104 htmltext = "31760-5.htm"; // here's the coupon you requested 107 105 } 108 106 else 109 htmltext = "31760- 6.htm"; // you're not eligible to get a coupon (level caps, pkkills or already changed class)107 htmltext = "31760-4.htm"; // you got a coupon already! 110 108 } 111 112 return htmltext;109 else 110 htmltext = "31760-6.htm"; // you're not eligible to get a coupon (level caps, pkkills or already changed class) 113 111 } 112 113 return htmltext; 114 114 } 115 115 … … 119 119 QuestState st = player.getQuestState(qn); 120 120 if (st == null) 121 st = this.newQuestState(player);121 st = newQuestState(player); 122 122 return "31760.htm"; 123 123 }
Note: See TracChangeset
for help on using the changeset viewer.
