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