diff --git a/L2J_DataPack_BETA/dist/game/data/html/chamberlain/chamberlain-products.htm b/L2J_DataPack_BETA/dist/game/data/html/chamberlain/chamberlain-products.htm index 806875e28c56fa8b1f976bc458f44c5b0d8a63c6..11db4b6cdb6f8f5261e0ee065279f0857a81408a 100644 --- a/L2J_DataPack_BETA/dist/game/data/html/chamberlain/chamberlain-products.htm +++ b/L2J_DataPack_BETA/dist/game/data/html/chamberlain/chamberlain-products.htm @@ -1,7 +1,7 @@ <html><body> You can obtain the following from the castle:<br><br> <center> -<a action="bypass -h npc_%objectId%_Link chamberlain/chamberlain-products.htm">Lord of the Manor's Certificate of Approval</a><br> +<a action="bypass -h npc_%objectId%_manors_cert">Lord of the Manor's Certificate of Approval</a><br> <a action="bypass -h npc_%objectId%_items %npcId%">General Items</a><br> <a action="bypass -h npc_%objectId%_give_crown">Castle Lord's Crown</a><br> <a action="bypass -h npc_%objectId%_Link chamberlain/chamberlain.htm">Back</a> diff --git a/L2J_DataPack_BETA/dist/game/data/html/chamberlain/chamberlain_noadena.htm b/L2J_DataPack_BETA/dist/game/data/html/chamberlain/chamberlain_noadena.htm new file mode 100644 index 0000000000000000000000000000000000000000..c22c5e385fb5e5dacfd1a61dad3591f7e6c6b060 --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/html/chamberlain/chamberlain_noadena.htm @@ -0,0 +1,7 @@ +<html><body> +My Lord, I regret to inform you that you do not currently have enough Adena to set this function.<br> +You may find the money you need in the warehouse.<br> +<center> +<a action="bypass -h npc_%objectId%_Link chamberlain/chamberlain.htm">Return</a> +</center> +</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/html/chamberlain/ssq_notdawnorevent.htm b/L2J_DataPack_BETA/dist/game/data/html/chamberlain/ssq_notdawnorevent.htm new file mode 100644 index 0000000000000000000000000000000000000000..81b28f31b24c81c84da0cb6eb8c3f0131b3853e1 --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/html/chamberlain/ssq_notdawnorevent.htm @@ -0,0 +1,6 @@ +<html><body> +<font color="LEVEL">[Sale of Certificates of Approval]</font><br> +It is either not currently a competition period, or you did not join the Rulers of Dawn.<br> +<br> +<button action="bypass -h npc_%objectId%_Link chamberlain/chamberlain.htm" value="Main screen" width="80" height="27" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"> +</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/html/chamberlain/ssq_notenoughticket.htm b/L2J_DataPack_BETA/dist/game/data/html/chamberlain/ssq_notenoughticket.htm new file mode 100644 index 0000000000000000000000000000000000000000..084f540f0a3afb38bc94f4651b3e0f3129bfb62d --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/html/chamberlain/ssq_notenoughticket.htm @@ -0,0 +1,5 @@ +<html><body> +<font color="LEVEL">[Sale of Certificates of Approval]</font><br> +All available Certificates of Approval have been issued.<br> +<br><button action="bypass -h npc_%objectId%_Link chamberlain/chamberlain.htm" value="Initial Screen" width="80" height="27" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"> +</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/game/data/html/chamberlain/ssq_selldawnticket.htm b/L2J_DataPack_BETA/dist/game/data/html/chamberlain/ssq_selldawnticket.htm new file mode 100644 index 0000000000000000000000000000000000000000..c2e730b03c52efba3dfa0aa25b0a6ec46c07ce0f --- /dev/null +++ b/L2J_DataPack_BETA/dist/game/data/html/chamberlain/ssq_selldawnticket.htm @@ -0,0 +1,9 @@ +<html><body> +<font color="LEVEL">[Sale of Certificates of Approval]</font><br> +Currently, you have <font color="00FFFF">%DawnTicketLeft%</font> Certificates of Approval remaining.<br> +The Certificate of Approval is issued <font color="00FFFF">%DawnTicketBundle%</font> at a time, and each certificate costs <font color="00FFFF">%DawnTicketPrice%</font> Adena.<br> +Do you wish to buy a Certificate of Approval?<br> +<br> +<button action="bypass -h npc_%objectId%_manors_cert_confirm" value="Confirm" width="80" height="27" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"><br> +<button action="bypass -h npc_%objectId%_Link chamberlain/chamberlain.htm" value="Cancel" width="80" height="27" back="L2UI_CT1.Button_DF_Down" fore="L2UI_CT1.Button_DF"> +</body></html> \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/castle.sql b/L2J_DataPack_BETA/dist/sql/game/castle.sql index e1cb88731717bf9dd268ea924021a7e8947e3025..d77407d51be4a09e07665ebf97bf312a25d9454f 100644 --- a/L2J_DataPack_BETA/dist/sql/game/castle.sql +++ b/L2J_DataPack_BETA/dist/sql/game/castle.sql @@ -8,17 +8,18 @@ CREATE TABLE IF NOT EXISTS `castle` ( `regTimeEnd` bigint(13) unsigned NOT NULL DEFAULT '0', `showNpcCrest` enum('true','false') DEFAULT 'false' NOT NULL, `bloodAlliance` int(3) NOT NULL default 0, + `ticketBuyCount` smallint(3) NOT NULL default 0, PRIMARY KEY (`name`), KEY `id` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT IGNORE INTO `castle` VALUES -(1,'Gludio',0,0,0,'true',0,'false',0), -(2,'Dion',0,0,0,'true',0,'false',0), -(3,'Giran',0,0,0,'true',0,'false',0), -(4,'Oren',0,0,0,'true',0,'false',0), -(5,'Aden',0,0,0,'true',0,'false',0), -(6,'Innadril',0,0,0,'true',0,'false',0), -(7,'Goddard',0,0,0,'true',0,'false',0), -(8,'Rune',0,0,0,'true',0,'false',0), -(9,'Schuttgart',0,0,0,'true',0,'false',0); \ No newline at end of file +(1,'Gludio',0,0,0,'true',0,'false',0,0), +(2,'Dion',0,0,0,'true',0,'false',0,0), +(3,'Giran',0,0,0,'true',0,'false',0,0), +(4,'Oren',0,0,0,'true',0,'false',0,0), +(5,'Aden',0,0,0,'true',0,'false',0,0), +(6,'Innadril',0,0,0,'true',0,'false',0,0), +(7,'Goddard',0,0,0,'true',0,'false',0,0), +(8,'Rune',0,0,0,'true',0,'false',0,0), +(9,'Schuttgart',0,0,0,'true',0,'false',0,0); \ No newline at end of file diff --git a/L2J_DataPack_BETA/dist/sql/game/updates/20121029update.sql b/L2J_DataPack_BETA/dist/sql/game/updates/20121029update.sql new file mode 100644 index 0000000000000000000000000000000000000000..3ec6ef8ff0cbfd5037b83aa24953ef7758db9b9a --- /dev/null +++ b/L2J_DataPack_BETA/dist/sql/game/updates/20121029update.sql @@ -0,0 +1 @@ +ALTER TABLE `castle` ADD `ticketBuyCount` SMALLINT(3) NOT NULL default 0 AFTER `bloodAlliance`; \ No newline at end of file