;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
[@Castle_Execution]
{

#SAY
I can deal with all of your guild requirements\
<[ Make Guild ]/@MakeGuild>\
<[ Make Guild Help ]/@buildguildexp>\
<[ Apply for Guild War]/@guildwar>\
<[ Guild War Help ]/@guildwarexp>\
<[ Change Guild Flag ]/@UserChangeFlag>\
<[ Exit ]/@exit>\

[@UserChangeFlag]
#IF
IsGuildMaster

#SAY
It costs {FCOLOR/12}10,000{FCOLOR/10} Gold to change the guild flag\
<[ Change Guild Flag ]/@UserChangeFlag_next>\
<[ Back ]/@Main>\


#ELSESAY
You must be a guild leader to change the Flag\
<[ Exit ]/@exit>\

[@UserChangeFlag_next]
#ACT
SendCmd "10,315,240,1" Flag @TestUserFlag


[@MakeGuild]
#IF
!CheckLevel 30
#SAY
You must be level 30 or over!\
<[ Exit ]/@exit>\

#ACT
break


#IF
HasGuild

#SAY
You cannot create a guild if you are already in one!\
<[ Exit ]/@exit>\

#ACT
break

#IF
!checkgold 1000000

#SAY
You do not have enough Gold!\
<[ Exit ]/@exit>\

#ACT
break

#IF
checkitem WoomaHorn 1
checkgold 1000000
#ACT
EnableCmd @@buildguild
break

#SAY
<[ Please Enter the Name of the Guild you wish to create ]/@@BuildGuild>\
<[ Back ]/@Main>\

#IF

#SAY
You do not have a WoomaHorn!\
<[ Exit ]/@exit>\

[@@buildguild]
#IF
checkitem WoomaHorn 1
checkgold 1000000
#ACT
take Gold 1000000
take WoomaHorn 1
BuildGuild @MakeGuildOK

#ELSESAY
You do not have a WoomaHorn!\
<[ Exit ]/@exit>\

[@MakeGuildOK]

#SAY
You are now the leader of the {FCOLOR/12}<$INPUTSTR>{FCOLOR/10} guild.\
<[ Exit ]/@exit>\

[@MakeGuildOK~]

#SAY
Please choose another name\
<[ Exit ]/@exit>\

#ACT
give WoomaHorn 1
give Gold 1000000

[@buildguildexp]

#SAY
You need to satisfy the following to Create a Guild : \
WoomaHorn - Obtained from WoomaTaurus\
1,000,000 Gold\
Level 30+\
<[ Exit ]/@exit>\

[@guildwar]

#SAY
Are you sure you want to start a Guild War?\
It costs {FCOLOR/12}5,000,000{FCOLOR/10} Gold\
<[ Confirm Guild War ]/@comfirmGuildWar>\
<[ Exit ]/@exit>\

[@ComfirmGuildWar]
#IF
checkgold 5000000
#ACT
EnableCmd @@guildwar

#SAY
<[ Input Guild Name ]/@@guildwar>\

#ELSESAY
You do not have enough Gold!\
<[ Exit ]/@exit>\

[@@GuildWar]
#IF
checkgold 5000000
#ACT
Mov A1 %INPUTSTR
#ELSEACT
break
#ELSESAY
You do not have enough Gold!\
<[ Exit ]/@exit>\

#IF
Equal A1 %GUILDNAME
#ACT
break

#SAY
You cannot battle your own guild!\
<[ Exit ]/@exit>\

#ELSEACT
take Gold 5000000
GuildWar @GuildMakeWarOK

[@GuildMakeWarOK]

#SAY
{FCOLOR/12}<$GUILD>{FCOLOR/10} has Declared War on {FCOLOR/12}<$INPUTSTR>{FCOLOR/10} Guild\
<[ Exit ]/@exit>\

[@GuildMakeWarOK~]

#SAY
Guild name error\
<[ Exit ]/@exit>\

#ACT
give Gold 30000

[@guildwarexp]

#SAY
With <[ Guild War ]/@guildwar2> you can battle another guild\
without fear of going Red!\
Please follow the <[ Rules ]/@warrule> to ensure a legitimate war!\
<[ Propose War ]/@ComfirmGuildWar> Will last for 1 hour, it will cost you 10,000,000\
<[ Exit ]/@exit>

[@guildwar2]

#SAY
Your Guilds names will go Blue\
The Enemy Guild names will go Red\
You can kill members of the Enemy Guild\
without going Red!\
<[ Guild War Explanation ]/@guildwarexp>\
<[ Exit ]/@exit>\

[@warrule]

#SAY
You must war outside of town areas to be safe from\ reprisal\
<[ Guild War Explanation ]/@guildwarexp>\
<[ Exit ]/@exit>

[@propose]

#SAY
You must be Guild Leaders to start a war\
<[ Guild War Explanation ]/@guildwarexp>\
<[ Exit ]/@exit>

}
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;