[1] | 1 | //===== eAthena Script ======================================= |
---|
| 2 | //= War of Emperium (Payon) |
---|
| 3 | //===== By: ================================================== |
---|
| 4 | //= L0ne_W0lf |
---|
| 5 | //===== Current Version: ===================================== |
---|
| 6 | //= 1.0 |
---|
| 7 | //===== Compatible With: ===================================== |
---|
| 8 | //= eAthena SVN |
---|
| 9 | //===== Description: ========================================= |
---|
| 10 | //= NPCs that relate to Payon Guild Castle 4 |
---|
| 11 | //===== Additional Comments: ================================= |
---|
| 12 | //= 1.0 First Version. No longer uses functions. [L0ne_W0lf] |
---|
| 13 | //============================================================ |
---|
| 14 | |
---|
| 15 | // Guild Flag (Town) |
---|
| 16 | //============================================================ |
---|
| 17 | payon,166,169,3 script Sacred Altar#f4-1::SacredAltar 722,{ |
---|
| 18 | end; |
---|
| 19 | |
---|
| 20 | OnRecvCastlePy04: |
---|
| 21 | FlagEmblem GetCastleData("payg_cas04",1); |
---|
| 22 | end; |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | payon,118,322,4 duplicate(SacredAltar) Sacred Altar#f4-2 722 |
---|
| 26 | |
---|
| 27 | // Guild Flag (Outside Castle) |
---|
| 28 | //============================================================ |
---|
| 29 | pay_gld,137,160,0 script Sacred Altar#f4-3::SacredAltar2 722,{ |
---|
| 30 | set .@GID, GetCastleData("payg_cas04",1); |
---|
| 31 | if (.@GID == 0) { |
---|
| 32 | mes " [ Edict of the Divine Rune Midgard Kingdom ]"; |
---|
| 33 | mes " "; |
---|
| 34 | mes "1. Follow the ordinance of The Divine Rune Midgard Kingdom, "; |
---|
| 35 | mes "We declare that"; |
---|
| 36 | mes "there is no formal master of this castle."; |
---|
| 37 | mes " "; |
---|
| 38 | mes "2. To the one who can "; |
---|
| 39 | mes "overcome all trials"; |
---|
| 40 | mes "and destroy the Emperium,"; |
---|
| 41 | mes "the king will endow the one with"; |
---|
| 42 | mes "ownership of this castle."; |
---|
| 43 | } |
---|
| 44 | else { |
---|
| 45 | if (getcharid(2) == .@GID) { |
---|
| 46 | mes "Brave ones..."; |
---|
| 47 | mes "Do you wish to return to your honorable place?"; |
---|
| 48 | next; |
---|
| 49 | if (select("Return to the guild castle.:Quit.") == 1) { |
---|
| 50 | if (getcharid(2) == GetCastleData("payg_cas04",1)) { |
---|
| 51 | warp "payg_cas04",40,235; |
---|
| 52 | end; |
---|
| 53 | } |
---|
| 54 | } |
---|
| 55 | close; |
---|
| 56 | } |
---|
| 57 | mes "[ Edict of the Divine Rune Midgard Kingdom ]"; |
---|
| 58 | mes " "; |
---|
| 59 | mes "1. Following the ordinance of the"; |
---|
| 60 | mes "Divine Rune Midgard Kingdom,"; |
---|
| 61 | mes "we approve that this place is in"; |
---|
| 62 | mes "the private possession of ^ff0000" + GetGuildName(.@GID) + "^000000 Guild."; |
---|
| 63 | mes " "; |
---|
| 64 | mes "2. The guild Master of ^ff0000"+ GetGuildName(.@GID) + "^000000 Guild is"; |
---|
| 65 | mes "^FF0000" + GetGuildMaster(.@GID) + "^000000"; |
---|
| 66 | mes "If there is anyone who objects to this,"; |
---|
| 67 | mes " prove your strength and honor with a steel blade in your hand."; |
---|
| 68 | } |
---|
| 69 | close; |
---|
| 70 | |
---|
| 71 | OnRecvCastlePy04: |
---|
| 72 | FlagEmblem GetCastleData("payg_cas04",1); |
---|
| 73 | end; |
---|
| 74 | } |
---|
| 75 | |
---|
| 76 | pay_gld,143,160,0 duplicate(SacredAltar2) Sacred Altar#f4-4 722 |
---|
| 77 | pay_gld,133,151,2 duplicate(SacredAltar2) Sacred Altar#f4-5 722 |
---|
| 78 | pay_gld,153,166,1 duplicate(SacredAltar2) Sacred Altar#f4-6 722 |
---|
| 79 | |
---|
| 80 | // Guild Flag (Inside Castle) |
---|
| 81 | //============================================================ |
---|
| 82 | payg_cas04,255,259,0 script Sacred Altar#f4-7::SacredAltar3 722,{ |
---|
| 83 | set .@GID, GetCastleData("payg_cas04",1); |
---|
| 84 | if (.@GID == 0) { |
---|
| 85 | mes " [ Edict of the Divine Rune Midgard Kingdom ]"; |
---|
| 86 | mes " "; |
---|
| 87 | mes "1. Follow the ordinance of The Divine Rune Midgard Kingdom, "; |
---|
| 88 | mes "We declare that"; |
---|
| 89 | mes "there is no formal master of this castle."; |
---|
| 90 | mes " "; |
---|
| 91 | mes "2. To the one who can "; |
---|
| 92 | mes "overcome all trials"; |
---|
| 93 | mes "and destroy the Emperium,"; |
---|
| 94 | mes "the king will endow the one with"; |
---|
| 95 | mes "ownership of this castle."; |
---|
| 96 | } |
---|
| 97 | else { |
---|
| 98 | mes "[ Edict of the Divine Rune Midgard Kingdom ]"; |
---|
| 99 | mes " "; |
---|
| 100 | mes "1. Following the ordinance of the"; |
---|
| 101 | mes "Divine Rune Midgard Kingdom,"; |
---|
| 102 | mes "we approve that this place is in"; |
---|
| 103 | mes "the private possession of ^ff0000" + GetGuildName(.@GID) + "^000000 Guild."; |
---|
| 104 | mes " "; |
---|
| 105 | mes "2. The guild Master of ^ff0000"+ GetGuildName(.@GID) + "^000000 Guild is"; |
---|
| 106 | mes "^FF0000" + GetGuildMaster(.@GID) + "^000000"; |
---|
| 107 | mes "If there is anyone who objects to this,"; |
---|
| 108 | mes " prove your strength and honor with a steel blade in your hand."; |
---|
| 109 | } |
---|
| 110 | close; |
---|
| 111 | |
---|
| 112 | OnRecvCastlePy04: |
---|
| 113 | FlagEmblem GetCastleData("payg_cas04",1); |
---|
| 114 | end; |
---|
| 115 | } |
---|
| 116 | |
---|
| 117 | payg_cas04,248,259,0 duplicate(SacredAltar3) Sacred Altar#f4-8 722 |
---|
| 118 | payg_cas04,248,168,6 duplicate(SacredAltar3) Sacred Altar#f4-9 722 |
---|
| 119 | payg_cas04,248,160,6 duplicate(SacredAltar3) Sacred Altar#f4-10 722 |
---|
| 120 | payg_cas04,232,181,4 duplicate(SacredAltar3) Sacred Altar#f4-11 722 |
---|
| 121 | payg_cas04,239,181,4 duplicate(SacredAltar3) Sacred Altar#f4-12 722 |
---|
| 122 | |
---|
| 123 | // AGIT Manager |
---|
| 124 | //============================================================ |
---|
| 125 | payg_cas04,271,29,0 duplicate(Gld_Agit_Manager) Agit#payg_cas04 -1 |
---|
| 126 | |
---|
| 127 | // Steward |
---|
| 128 | //============================================================ |
---|
| 129 | payg_cas04,38,284,3 duplicate(Gld_Mngr_Template) DJ#payg_cas04 55 |
---|
| 130 | |
---|
| 131 | // Guardians |
---|
| 132 | //============================================================ |
---|
| 133 | payg_cas04,38,284,3 duplicate(Gld_Guard_Template) Guardian#payg_cas04 -1 |
---|
| 134 | |
---|
| 135 | // Kafra Staff |
---|
| 136 | //============================================================ |
---|
| 137 | payg_cas04,40,235,1 duplicate(Gld_Kafra_Template) Kafra Staff#payg_cas04 117 |
---|
| 138 | |
---|
| 139 | // Master's Room Exit |
---|
| 140 | //============================================================ |
---|
| 141 | payg_cas04,151,47,0 script #switch_Py04 111,{ |
---|
| 142 | mes " "; |
---|
| 143 | mes "There's a small lever. Will you pull it? "; |
---|
| 144 | next; |
---|
| 145 | switch(select("Pull.:Do not.")) { |
---|
| 146 | case 1: |
---|
| 147 | warp "payg_cas04",38,285; |
---|
| 148 | break; |
---|
| 149 | case 2: |
---|
| 150 | break; |
---|
| 151 | } |
---|
| 152 | end; |
---|
| 153 | } |
---|
| 154 | |
---|
| 155 | // Guild Treasure Protection |
---|
| 156 | //============================================================ |
---|
| 157 | payg_cas04,147,48,0 duplicate(Gld_Trea_Protect) ban_warp#payg_cas04 -1,6,6 |
---|
| 158 | |
---|
| 159 | // Guild Treasure Spawns |
---|
| 160 | //============================================================ |
---|
| 161 | payg_cas04,147,48,0 duplicate(Gld_Trea_Spawn) Treasure#payg_cas04 -1 |
---|
| 162 | |
---|
| 163 | // Guild Dungeon Switch |
---|
| 164 | //============================================================ |
---|
| 165 | payg_cas04,52,48,0 duplicate(Gld_Dun_Template) #payg_cas04 111 |
---|