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