Removed Lottery.

This commit is contained in:
MobiusDev
2016-08-27 18:04:48 +00:00
parent e2bfda977f
commit ffb4b42633
53 changed files with 12 additions and 1519 deletions

View File

@@ -1,9 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
Welcome! Want a lottery ticket?<br>
One costs 2,000 Adena.<br>
Wanna buy? Then choose to proceed!<br>
If you don't know the game rules, refer to the instructions!<br>
<center><Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 21">"I want to proceed."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 25">"Okay, I'll take a look at the instructions."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">"I want to quit."</Button></center>
</body></html>

View File

@@ -1,14 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
Here is how to play the lottery:<br>
Select five numbers between 1 and 20. Your prize is determined by how many winning numbers you match.<br>
First place goes to those who pick all five winning numbers. First place prize amount is 60% of the total jackpot amount, minus the fourth place prize.<br>
Second place goes to those who pick four out of the five winning numbers. Second place prize amount is 20% of the total jackpot amount, minus the fourth place prize.<br>
Third place goes to those who pick three out of the five winning numbers. Third place prize amount is 20% of the total jackpot amount, minus the fourth place prize.<br>
Those who pick two or less of the winning number may receive 200 Adena.<br>
The prize money for each category will be divided equally amongst winners. If there are no winners in any category, those winnings are transferred to the next jackpot.<br>
Lottery Tickets are sold on a weekly basis, starting at 7:10 pm every Saturday until 6:50 pm the following Saturday.<br>
The winning numbers are announced at 7:00 pm every Saturday. All times are subject to change.<br>
I wish you luck! Enjoy the lottery.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">"Can I buy a lottery ticket?"</Button>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Back</Button>
</body></html>

View File

@@ -1,8 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
Welcome to the Aden Lottery owned and operated by the Innadril Merchants Association!<br>
May I have your attention please!<br>
The total jackpot amount so far for the Round 160 Lottery is %adena% Adena.<br>
<center>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">Back</Button>
</center>
</body></html>

View File

@@ -1,5 +0,0 @@
<html><body>
Lottery Ticket Seller:<br>
%result%
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">Return</Button>
</body></html>

View File

@@ -1,55 +0,0 @@
<html><body>
Lottery Ticket Seller:<br>
This is Round %race% of Lottery. Choose five numbers:<br>
<center>
<table width=240 height=120 border=0 cellspacing=0 cellpadding=0>
<tr>
<td><img src="L2UI.lottotl" width=20 height=20></td>
<td><img src="L2UI.lottotc" width=200 height=22></td>
<td><img src="L2UI.lottotr" width=20 height=20></td>
</tr>
<tr>
<td><img src="L2UI.lottoml" width=20 height=80></td>
<td align=center valign=top>
<table width=200 height=80 border=0 cellspacing=0 cellpadding=0>
<tr>
<td><button value="" action="bypass -h npc_%objectId%_Loto 1" fore="L2UI.lottoNum01" back="L2UI.lottoNum01a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 2" fore="L2UI.lottoNum02" back="L2UI.lottoNum02a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 3" fore="L2UI.lottoNum03" back="L2UI.lottoNum03a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 4" fore="L2UI.lottoNum04" back="L2UI.lottoNum04a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 5" fore="L2UI.lottoNum05" back="L2UI.lottoNum05a_check" width=40 height=20></td>
</tr>
<tr>
<td><button value="" action="bypass -h npc_%objectId%_Loto 6" fore="L2UI.lottoNum06" back="L2UI.lottoNum06a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 7" fore="L2UI.lottoNum07" back="L2UI.lottoNum07a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 8" fore="L2UI.lottoNum08" back="L2UI.lottoNum08a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 9" fore="L2UI.lottoNum09" back="L2UI.lottoNum09a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 10" fore="L2UI.lottoNum10" back="L2UI.lottoNum10a_check" width=40 height=20></td>
</tr>
<tr>
<td><button value="" action="bypass -h npc_%objectId%_Loto 11" fore="L2UI.lottoNum11" back="L2UI.lottoNum11a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 12" fore="L2UI.lottoNum12" back="L2UI.lottoNum12a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 13" fore="L2UI.lottoNum13" back="L2UI.lottoNum13a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 14" fore="L2UI.lottoNum14" back="L2UI.lottoNum14a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 15" fore="L2UI.lottoNum15" back="L2UI.lottoNum15a_check" width=40 height=20></td>
</tr>
<tr>
<td><button value="" action="bypass -h npc_%objectId%_Loto 16" fore="L2UI.lottoNum16" back="L2UI.lottoNum16a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 17" fore="L2UI.lottoNum17" back="L2UI.lottoNum17a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 18" fore="L2UI.lottoNum18" back="L2UI.lottoNum18a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 19" fore="L2UI.lottoNum19" back="L2UI.lottoNum19a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 20" fore="L2UI.lottoNum20" back="L2UI.lottoNum20a_check" width=40 height=20></td>
</tr>
</table>
</td>
<td><img src="L2UI.lottomr" width=20 height=80></td>
</tr>
<tr>
<td><img src="L2UI.lottobl" width=20 height=20></td>
<td><img src="L2UI.lottobc" width=200 height=22></td>
<td><img src="L2UI.lottobr" width=20 height=20></td>
</tr>
</table>
</center><br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 0">Return</Button>
</body></html>

View File

@@ -1,7 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
Thank you for playing the lottery.<br>
The winners will be announced at 7:00 pm on Saturday<br>
<center>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">Return</Button>
</center>
</body></html>

View File

@@ -1,7 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
Hello! Welcome to the Aden Lottery owned and operated by the Innadril Merchants Association!<br>
Every ticket is a potential winner! Step right up!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 0">"Let me buy a lottery ticket."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 23">"How big is the jackpot?"</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 24">"What were the previous winning ticket numbers?"</Button>
</body></html>

View File

@@ -1,10 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
Thank you for playing the lottery.<br>
One lottery Ticket costs %ticket_price% Adena.<br>
If you wish to play the lottery, press the button.<br>
<center>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 21">Continue</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 25">Lottery instructions</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">Quit</Button>
</center>
</body></html>

View File

@@ -1,14 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
Here is how to play the lottery:<br>
Select five numbers between 1 and 20. Your prize is determined by how many winning numbers you match.<br>
First place goes to those who pick all five winning numbers. First place prize amount is %prize5% % of the total jackpot amount, minus the fourth place prize.<br>
Second place goes to those who pick four out of the five winning numbers. Second place prize amount is %prize4% % of the total jackpot amount, minus the fourth place prize.<br>
Third place goes to those who pick three out of the five winning numbers. Third place prize amount is %prize3% % of the total jackpot amount, minus the fourth place prize.<br>
Those who pick two or less of the winning number may receive %prize2% Adena.<br>
The prize money for each category will be divided equally amongst winners. If there are no winners in any category, those winnings are transferred to the next jackpot.<br>
Lottery Tickets are sold on a weekly basis, starting at 7:10 pm every Saturday until 6:50 pm the following Saturday.<br>
The winning numbers are announced at 7:00 pm every Saturday. All times are subject to change.<br>
I wish you luck! Enjoy the lottery.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 0">Buy a Lottery Ticket.</Button>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Back</Button>
</body></html>

View File

@@ -1,8 +0,0 @@
<html><body>
Lottery Ticket Seller:<br>
May I have your attention please!<br>
The total jackpot amount so far for the Round %race% Lottery is %adena% Adena.<br><br>
<center>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">Return</Button>
</center>
</body></html>

View File

@@ -1,5 +0,0 @@
<html><body>
Lottery Ticket Seller:<br>
%result%
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">Return</Button>
</body></html>

View File

@@ -1,54 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
This is Round %race% of Lottery. Choose five numbers:<br>
<center>
<table width=240 height=120 border=0 cellspacing=0 cellpadding=0>
<tr>
<td><img src="L2UI.lottotl" width=20 height=20></td>
<td><img src="L2UI.lottotc" width=200 height=22></td>
<td><img src="L2UI.lottotr" width=20 height=20></td>
</tr>
<tr>
<td><img src="L2UI.lottoml" width=20 height=80></td>
<td align=center valign=top>
<table width=200 height=80 border=0 cellspacing=0 cellpadding=0>
<tr>
<td><button value="" action="bypass -h npc_%objectId%_Loto 1" fore="L2UI.lottoNum01" back="L2UI.lottoNum01a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 2" fore="L2UI.lottoNum02" back="L2UI.lottoNum02a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 3" fore="L2UI.lottoNum03" back="L2UI.lottoNum03a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 4" fore="L2UI.lottoNum04" back="L2UI.lottoNum04a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 5" fore="L2UI.lottoNum05" back="L2UI.lottoNum05a_check" width=40 height=20></td>
</tr>
<tr>
<td><button value="" action="bypass -h npc_%objectId%_Loto 6" fore="L2UI.lottoNum06" back="L2UI.lottoNum06a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 7" fore="L2UI.lottoNum07" back="L2UI.lottoNum07a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 8" fore="L2UI.lottoNum08" back="L2UI.lottoNum08a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 9" fore="L2UI.lottoNum09" back="L2UI.lottoNum09a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 10" fore="L2UI.lottoNum10" back="L2UI.lottoNum10a_check" width=40 height=20></td>
</tr>
<tr>
<td><button value="" action="bypass -h npc_%objectId%_Loto 11" fore="L2UI.lottoNum11" back="L2UI.lottoNum11a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 12" fore="L2UI.lottoNum12" back="L2UI.lottoNum12a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 13" fore="L2UI.lottoNum13" back="L2UI.lottoNum13a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 14" fore="L2UI.lottoNum14" back="L2UI.lottoNum14a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 15" fore="L2UI.lottoNum15" back="L2UI.lottoNum15a_check" width=40 height=20></td>
</tr>
<tr>
<td><button value="" action="bypass -h npc_%objectId%_Loto 16" fore="L2UI.lottoNum16" back="L2UI.lottoNum16a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 17" fore="L2UI.lottoNum17" back="L2UI.lottoNum17a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 18" fore="L2UI.lottoNum18" back="L2UI.lottoNum18a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 19" fore="L2UI.lottoNum19" back="L2UI.lottoNum19a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 20" fore="L2UI.lottoNum20" back="L2UI.lottoNum20a_check" width=40 height=20></td>
</tr>
</table>
</td>
<td><img src="L2UI.lottomr" width=20 height=80></td>
</tr>
<tr>
<td><img src="L2UI.lottobl" width=20 height=20></td>
<td><img src="L2UI.lottobc" width=200 height=22></td>
<td><img src="L2UI.lottobr" width=20 height=20></td>
</tr>
</table>
</center><br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 0">Return</Button>
</body></html>

View File

@@ -1,8 +0,0 @@
<html><body>
Lottery Ticket Seller:<br>
Thank you for playing the lottery.<br>
The winners will be announced at 7:00 pm on Saturday<br>
<center>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">Return</Button>
</center>
</body></html>

View File

@@ -1,7 +0,0 @@
<html><body>
Lottery Ticket Seller:<br>
Every ticket is a potential winner! Step right up!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 0">Purchase Lottery Ticket</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 23">Current lottery jackpot</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 24">Previous winning numbers/Prize claim</Button>
</body></html>

View File

@@ -1,9 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
Welcome! Want a lottery ticket?<br>
One costs %ticket_price% Adena.<br>
Wanna buy? Then choose to proceed!<br>
If you don't know the game rules, refer to the instructions!<br>
<center><Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 21">"I want to proceed."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 25">"Okay, I'll take a look at the instructions."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 0">"I want to quit."</Button></center>
</body></html>

View File

@@ -1,14 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
Here is how to play the lottery:<br>
Select five numbers between 1 and 20. Your prize is determined by how many winning numbers you match.<br>
First place goes to those who pick all five winning numbers. First place prize amount is %prize5%% of the total jackpot amount, minus the fourth place prize.<br>
Second place goes to those who pick four out of the five winning numbers. Second place prize amount is %prize4%% of the total jackpot amount, minus the fourth place prize.<br>
Third place goes to those who pick three out of the five winning numbers. Third place prize amount is %prize3%% of the total jackpot amount, minus the fourth place prize.<br>
Those who pick two or less of the winning number may receive %prize2% Adena.<br>
The prize money for each category will be divided equally amongst winners. If there are no winners in any category, those winnings are transferred to the next jackpot.<br>
Lottery Tickets are sold on a weekly basis, starting at 7:10 pm every Saturday until 6:50 pm the following Saturday.<br>
The winning numbers are announced at 7:00 pm every Saturday. All times are subject to change.<br>
I wish you luck! Enjoy the lottery.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 0">"Can I buy a lottery ticket?"</Button>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Back</Button>
</body></html>

View File

@@ -1,9 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
Welcome to the Aden Lottery owned and operated by the Innadril Merchants Association!<br>
May I have your attention please!<br>
The total jackpot amount so far for the Round %race% Lottery is %adena% Adena.<br>
<center>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">Back</Button>
</center>
</body></html>

View File

@@ -1,5 +0,0 @@
<html><body>
Lottery Ticket Seller:<br>
%result%
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">Return</Button>
</body></html>

View File

@@ -1,54 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
This is Round %race% of Lottery. Choose five numbers:<br>
<center>
<table width=240 height=120 border=0 cellspacing=0 cellpadding=0>
<tr>
<td><img src="L2UI.lottotl" width=20 height=20></td>
<td><img src="L2UI.lottotc" width=200 height=22></td>
<td><img src="L2UI.lottotr" width=20 height=20></td>
</tr>
<tr>
<td><img src="L2UI.lottoml" width=20 height=80></td>
<td align=center valign=top>
<table width=200 height=80 border=0 cellspacing=0 cellpadding=0>
<tr>
<td><button value="" action="bypass -h npc_%objectId%_Loto 1" fore="L2UI.lottoNum01" back="L2UI.lottoNum01a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 2" fore="L2UI.lottoNum02" back="L2UI.lottoNum02a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 3" fore="L2UI.lottoNum03" back="L2UI.lottoNum03a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 4" fore="L2UI.lottoNum04" back="L2UI.lottoNum04a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 5" fore="L2UI.lottoNum05" back="L2UI.lottoNum05a_check" width=40 height=20></td>
</tr>
<tr>
<td><button value="" action="bypass -h npc_%objectId%_Loto 6" fore="L2UI.lottoNum06" back="L2UI.lottoNum06a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 7" fore="L2UI.lottoNum07" back="L2UI.lottoNum07a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 8" fore="L2UI.lottoNum08" back="L2UI.lottoNum08a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 9" fore="L2UI.lottoNum09" back="L2UI.lottoNum09a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 10" fore="L2UI.lottoNum10" back="L2UI.lottoNum10a_check" width=40 height=20></td>
</tr>
<tr>
<td><button value="" action="bypass -h npc_%objectId%_Loto 11" fore="L2UI.lottoNum11" back="L2UI.lottoNum11a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 12" fore="L2UI.lottoNum12" back="L2UI.lottoNum12a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 13" fore="L2UI.lottoNum13" back="L2UI.lottoNum13a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 14" fore="L2UI.lottoNum14" back="L2UI.lottoNum14a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 15" fore="L2UI.lottoNum15" back="L2UI.lottoNum15a_check" width=40 height=20></td>
</tr>
<tr>
<td><button value="" action="bypass -h npc_%objectId%_Loto 16" fore="L2UI.lottoNum16" back="L2UI.lottoNum16a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 17" fore="L2UI.lottoNum17" back="L2UI.lottoNum17a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 18" fore="L2UI.lottoNum18" back="L2UI.lottoNum18a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 19" fore="L2UI.lottoNum19" back="L2UI.lottoNum19a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 20" fore="L2UI.lottoNum20" back="L2UI.lottoNum20a_check" width=40 height=20></td>
</tr>
</table>
</td>
<td><img src="L2UI.lottomr" width=20 height=80></td>
</tr>
<tr>
<td><img src="L2UI.lottobl" width=20 height=20></td>
<td><img src="L2UI.lottobc" width=200 height=22></td>
<td><img src="L2UI.lottobr" width=20 height=20></td>
</tr>
</table>
</center><br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 0">Return</Button>
</body></html>

View File

@@ -1,8 +0,0 @@
<html><body>
Lottery Ticket Seller:<br>
Thank you for playing the lottery.<br>
The winners will be announced at 7:00 pm on Saturday<br>
<center>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">Return</Button>
</center>
</body></html>

View File

@@ -1,7 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
Hello! Welcome to the Aden Lottery owned and operated by the Innadril Merchants Association!<br>
Every ticket is a potential winner! Step right up!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 0">"Let me buy a lottery ticket."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 23">"How big is the jackpot?"</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 24">"What were the previous winning ticket numbers?"</Button>
</body></html>

View File

@@ -1,11 +0,0 @@
<html><body>
Lottery Ticket Seller:<br>
Thank you for playing the lottery.<br>
One lottery Ticket costs %ticket_price% Adena.<br>
If you wish to play the lottery, press the button.<br>
<center>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 21">Continue</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 25">Lottery instructions</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">Quit</Button>
</center>
</body></html>

View File

@@ -1,14 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
Here is how to play the lottery:<br>
Select five numbers between 1 and 20. Your prize is determined by how many winning numbers you match.<br>
First place goes to those who pick all five winning numbers. First place prize amount is %prize5% % of the total jackpot amount, minus the fourth place prize.<br>
Second place goes to those who pick four out of the five winning numbers. Second place prize amount is %prize4% % of the total jackpot amount, minus the fourth place prize.<br>
Third place goes to those who pick three out of the five winning numbers. Third place prize amount is %prize3% % of the total jackpot amount, minus the fourth place prize.<br>
Those who pick two or less of the winning number may receive %prize2% Adena.<br>
The prize money for each category will be divided equally amongst winners. If there are no winners in any category, those winnings are transferred to the next jackpot.<br>
Lottery Tickets are sold on a weekly basis, starting at 7:10 pm every Saturday until 6:50 pm the following Saturday.<br>
The winning numbers are announced at 7:00 pm every Saturday. All times are subject to change.<br>
I wish you luck! Enjoy the lottery.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 0">Buy a Lottery Ticket.</Button>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Back</Button>
</body></html>

View File

@@ -1,7 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
May I have your attention please!<br>
The total jackpot amount so far for the Round %race% Lottery is %adena% Adena.<br><br>
<center>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Return</Button>
</center>
</body></html>

View File

@@ -1,4 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
%result%
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Return</Button>
</body></html>

View File

@@ -1,54 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
This is Round %race% of Lottery. Choose five numbers:<br>
<center>
<table width=240 height=120 border=0 cellspacing=0 cellpadding=0>
<tr>
<td><img src="L2UI.lottotl" width=20 height=20></td>
<td><img src="L2UI.lottotc" width=200 height=22></td>
<td><img src="L2UI.lottotr" width=20 height=20></td>
</tr>
<tr>
<td><img src="L2UI.lottoml" width=20 height=80></td>
<td align=center valign=top>
<table width=200 height=80 border=0 cellspacing=0 cellpadding=0>
<tr>
<td><button value="" action="bypass -h npc_%objectId%_Loto 1" fore="L2UI.lottoNum01" back="L2UI.lottoNum01a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 2" fore="L2UI.lottoNum02" back="L2UI.lottoNum02a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 3" fore="L2UI.lottoNum03" back="L2UI.lottoNum03a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 4" fore="L2UI.lottoNum04" back="L2UI.lottoNum04a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 5" fore="L2UI.lottoNum05" back="L2UI.lottoNum05a_check" width=40 height=20></td>
</tr>
<tr>
<td><button value="" action="bypass -h npc_%objectId%_Loto 6" fore="L2UI.lottoNum06" back="L2UI.lottoNum06a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 7" fore="L2UI.lottoNum07" back="L2UI.lottoNum07a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 8" fore="L2UI.lottoNum08" back="L2UI.lottoNum08a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 9" fore="L2UI.lottoNum09" back="L2UI.lottoNum09a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 10" fore="L2UI.lottoNum10" back="L2UI.lottoNum10a_check" width=40 height=20></td>
</tr>
<tr>
<td><button value="" action="bypass -h npc_%objectId%_Loto 11" fore="L2UI.lottoNum11" back="L2UI.lottoNum11a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 12" fore="L2UI.lottoNum12" back="L2UI.lottoNum12a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 13" fore="L2UI.lottoNum13" back="L2UI.lottoNum13a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 14" fore="L2UI.lottoNum14" back="L2UI.lottoNum14a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 15" fore="L2UI.lottoNum15" back="L2UI.lottoNum15a_check" width=40 height=20></td>
</tr>
<tr>
<td><button value="" action="bypass -h npc_%objectId%_Loto 16" fore="L2UI.lottoNum16" back="L2UI.lottoNum16a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 17" fore="L2UI.lottoNum17" back="L2UI.lottoNum17a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 18" fore="L2UI.lottoNum18" back="L2UI.lottoNum18a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 19" fore="L2UI.lottoNum19" back="L2UI.lottoNum19a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 20" fore="L2UI.lottoNum20" back="L2UI.lottoNum20a_check" width=40 height=20></td>
</tr>
</table>
</td>
<td><img src="L2UI.lottomr" width=20 height=80></td>
</tr>
<tr>
<td><img src="L2UI.lottobl" width=20 height=20></td>
<td><img src="L2UI.lottobc" width=200 height=22></td>
<td><img src="L2UI.lottobr" width=20 height=20></td>
</tr>
</table>
</center><br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 0">Return</Button>
</body></html>

View File

@@ -1,7 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
Thank you for playing the lottery.<br>
The winners will be announced at 7:00 pm on Saturday<br>
<center>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Return</Button>
</center>
</body></html>

View File

@@ -1,7 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
Hello! Welcome to the Aden Lottery owned and operated by the Innadril Merchants Association!<br>
Every ticket is a potential winner! Step right up!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 0">"Let me buy a lottery ticket."</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 23">"How big is the jackpot?"</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 24">"What were the previous winning ticket numbers?"</Button>
</body></html>

View File

@@ -1,10 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
Thank you for playing the lottery.<br>
One lottery Ticket costs %ticket_price% Adena.<br>
If you wish to play the lottery, press the button.<br>
<center>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 21">Continue</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 25">Lottery instructions</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Chat 0">Quit</Button>
</center>
</body></html>

View File

@@ -1,14 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
Here is how to play the lottery:<br>
Select five numbers between 1 and 20. Your prize is determined by how many winning numbers you match.<br>
First place goes to those who pick all five winning numbers. First place prize amount is %prize5% % of the total jackpot amount, minus the fourth place prize.<br>
Second place goes to those who pick four out of the five winning numbers. Second place prize amount is %prize4% % of the total jackpot amount, minus the fourth place prize.<br>
Third place goes to those who pick three out of the five winning numbers. Third place prize amount is %prize3% % of the total jackpot amount, minus the fourth place prize.<br>
Those who pick two or less of the winning number may receive %prize2% Adena.<br>
The prize money for each category will be divided equally amongst winners. If there are no winners in any category, those winnings are transferred to the next jackpot.<br>
Lottery Tickets are sold on a weekly basis, starting at 7:10 pm every Saturday until 6:50 pm the following Saturday.<br>
The winning numbers are announced at 7:00 pm every Saturday. All times are subject to change.<br>
I wish you luck! Enjoy the lottery.<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 0">Buy a Lottery Ticket.</Button>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Back</Button>
</body></html>

View File

@@ -1,7 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
May I have your attention please!<br>
The total jackpot amount so far for the Round %race% Lottery is %adena% Adena.<br><br>
<center>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Back</Button>
</center>
</body></html>

View File

@@ -1,4 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
%result%
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Back</Button>
</body></html>

View File

@@ -1,54 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
This is Round %race% of Lottery. Choose five numbers:<br>
<center>
<table width=240 height=120 border=0 cellspacing=0 cellpadding=0>
<tr>
<td><img src="L2UI.lottotl" width=20 height=20></td>
<td><img src="L2UI.lottotc" width=200 height=22></td>
<td><img src="L2UI.lottotr" width=20 height=20></td>
</tr>
<tr>
<td><img src="L2UI.lottoml" width=20 height=80></td>
<td align=center valign=top>
<table width=200 height=80 border=0 cellspacing=0 cellpadding=0>
<tr>
<td><button value="" action="bypass -h npc_%objectId%_Loto 1" fore="L2UI.lottoNum01" back="L2UI.lottoNum01a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 2" fore="L2UI.lottoNum02" back="L2UI.lottoNum02a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 3" fore="L2UI.lottoNum03" back="L2UI.lottoNum03a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 4" fore="L2UI.lottoNum04" back="L2UI.lottoNum04a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 5" fore="L2UI.lottoNum05" back="L2UI.lottoNum05a_check" width=40 height=20></td>
</tr>
<tr>
<td><button value="" action="bypass -h npc_%objectId%_Loto 6" fore="L2UI.lottoNum06" back="L2UI.lottoNum06a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 7" fore="L2UI.lottoNum07" back="L2UI.lottoNum07a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 8" fore="L2UI.lottoNum08" back="L2UI.lottoNum08a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 9" fore="L2UI.lottoNum09" back="L2UI.lottoNum09a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 10" fore="L2UI.lottoNum10" back="L2UI.lottoNum10a_check" width=40 height=20></td>
</tr>
<tr>
<td><button value="" action="bypass -h npc_%objectId%_Loto 11" fore="L2UI.lottoNum11" back="L2UI.lottoNum11a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 12" fore="L2UI.lottoNum12" back="L2UI.lottoNum12a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 13" fore="L2UI.lottoNum13" back="L2UI.lottoNum13a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 14" fore="L2UI.lottoNum14" back="L2UI.lottoNum14a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 15" fore="L2UI.lottoNum15" back="L2UI.lottoNum15a_check" width=40 height=20></td>
</tr>
<tr>
<td><button value="" action="bypass -h npc_%objectId%_Loto 16" fore="L2UI.lottoNum16" back="L2UI.lottoNum16a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 17" fore="L2UI.lottoNum17" back="L2UI.lottoNum17a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 18" fore="L2UI.lottoNum18" back="L2UI.lottoNum18a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 19" fore="L2UI.lottoNum19" back="L2UI.lottoNum19a_check" width=40 height=20></td>
<td><button value="" action="bypass -h npc_%objectId%_Loto 20" fore="L2UI.lottoNum20" back="L2UI.lottoNum20a_check" width=40 height=20></td>
</tr>
</table>
</td>
<td><img src="L2UI.lottomr" width=20 height=80></td>
</tr>
<tr>
<td><img src="L2UI.lottobl" width=20 height=20></td>
<td><img src="L2UI.lottobc" width=200 height=22></td>
<td><img src="L2UI.lottobr" width=20 height=20></td>
</tr>
</table>
</center><br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 0">Return</Button>
</body></html>

View File

@@ -1,7 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
Thank you for playing the lottery.<br>
The winners will be announced at 7:00 pm on Saturday<br>
<center>
<Button ALIGN=LEFT ICON="RETURN" action="bypass -h npc_%objectId%_Chat 0">Back</Button>
</center>
</body></html>

View File

@@ -1,6 +0,0 @@
<html><body>Lottery Ticket Seller:<br>
Every ticket is a potential winner! Step right up!<br>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 0">Purchase Lottery Ticket</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 23">Current lottery jackpot</Button>
<Button ALIGN=LEFT ICON="NORMAL" action="bypass -h npc_%objectId%_Loto 24">Previous winning numbers/Prize claim</Button>
</body></html>

View File

@@ -142,7 +142,6 @@ import handlers.bypasshandlers.EventEngine;
import handlers.bypasshandlers.Freight;
import handlers.bypasshandlers.ItemAuctionLink;
import handlers.bypasshandlers.Link;
import handlers.bypasshandlers.Loto;
import handlers.bypasshandlers.Multisell;
import handlers.bypasshandlers.NpcViewMod;
import handlers.bypasshandlers.Observation;
@@ -447,7 +446,6 @@ public class MasterHandler
Freight.class,
ItemAuctionLink.class,
Link.class,
Loto.class,
Multisell.class,
NpcViewMod.class,
Observation.class,

View File

@@ -1,348 +0,0 @@
/*
* This file is part of the L2J Mobius project.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package handlers.bypasshandlers;
import java.text.DateFormat;
import com.l2jmobius.Config;
import com.l2jmobius.gameserver.handler.IBypassHandler;
import com.l2jmobius.gameserver.idfactory.IdFactory;
import com.l2jmobius.gameserver.instancemanager.games.Lottery;
import com.l2jmobius.gameserver.model.actor.L2Character;
import com.l2jmobius.gameserver.model.actor.L2Npc;
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
import com.l2jmobius.gameserver.network.SystemMessageId;
import com.l2jmobius.gameserver.network.serverpackets.ActionFailed;
import com.l2jmobius.gameserver.network.serverpackets.InventoryUpdate;
import com.l2jmobius.gameserver.network.serverpackets.NpcHtmlMessage;
import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public class Loto implements IBypassHandler
{
private static final String[] COMMANDS =
{
"Loto"
};
@Override
public boolean useBypass(String command, L2PcInstance activeChar, L2Character target)
{
if (!target.isNpc())
{
return false;
}
int val = 0;
try
{
val = Integer.parseInt(command.substring(5));
}
catch (IndexOutOfBoundsException ioobe)
{
}
catch (NumberFormatException nfe)
{
}
if (val == 0)
{
// new loto ticket
for (int i = 0; i < 5; i++)
{
activeChar.setLoto(i, 0);
}
}
showLotoWindow(activeChar, (L2Npc) target, val);
return false;
}
/**
* Open a Loto window on client with the text of the L2NpcInstance.<BR>
* <BR>
* <B><U> Actions</U> :</B><BR>
* <BR>
* <li>Get the text of the selected HTML file in function of the npcId and of the page number</li>
* <li>Send a Server->Client NpcHtmlMessage containing the text of the L2NpcInstance to the L2PcInstance</li>
* <li>Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet</li><BR>
* @param player The L2PcInstance that talk with the L2NpcInstance
* @param npc L2Npc loto instance
* @param val The number of the page of the L2NpcInstance to display
*/
// 0 - first buy lottery ticket window
// 1-20 - buttons
// 21 - second buy lottery ticket window
// 22 - selected ticket with 5 numbers
// 23 - current lottery jackpot
// 24 - Previous winning numbers/Prize claim
// >24 - check lottery ticket by item object id
public static final void showLotoWindow(L2PcInstance player, L2Npc npc, int val)
{
final int npcId = npc.getTemplate().getId();
String filename;
SystemMessage sm;
final NpcHtmlMessage html = new NpcHtmlMessage(npc.getObjectId());
if (val == 0) // 0 - first buy lottery ticket window
{
filename = (npc.getHtmlPath(npcId, 1));
html.setFile(player.getHtmlPrefix(), filename);
}
else if ((val >= 1) && (val <= 21)) // 1-20 - buttons, 21 - second buy lottery ticket window
{
if (!Lottery.getInstance().isStarted())
{
// tickets can't be sold
player.sendPacket(SystemMessageId.LOTTERY_TICKETS_ARE_NOT_CURRENTLY_BEING_SOLD);
return;
}
if (!Lottery.getInstance().isSellableTickets())
{
// tickets can't be sold
player.sendPacket(SystemMessageId.TICKETS_FOR_THE_CURRENT_LOTTERY_ARE_NO_LONGER_AVAILABLE);
return;
}
filename = (npc.getHtmlPath(npcId, 5));
html.setFile(player.getHtmlPrefix(), filename);
int count = 0;
int found = 0;
// counting buttons and unsetting button if found
for (int i = 0; i < 5; i++)
{
if (player.getLoto(i) == val)
{
// unsetting button
player.setLoto(i, 0);
found = 1;
}
else if (player.getLoto(i) > 0)
{
count++;
}
}
// if not rearched limit 5 and not unseted value
if ((count < 5) && (found == 0) && (val <= 20))
{
for (int i = 0; i < 5; i++)
{
if (player.getLoto(i) == 0)
{
player.setLoto(i, val);
break;
}
}
}
// setting pusshed buttons
count = 0;
for (int i = 0; i < 5; i++)
{
if (player.getLoto(i) > 0)
{
count++;
String button = String.valueOf(player.getLoto(i));
if (player.getLoto(i) < 10)
{
button = "0" + button;
}
final String search = "fore=\"L2UI.lottoNum" + button + "\" back=\"L2UI.lottoNum" + button + "a_check\"";
final String replace = "fore=\"L2UI.lottoNum" + button + "a_check\" back=\"L2UI.lottoNum" + button + "\"";
html.replace(search, replace);
}
}
if (count == 5)
{
final String search = "0\">Return";
final String replace = "22\">Your lucky numbers have been selected above.";
html.replace(search, replace);
}
}
else if (val == 22) // 22 - selected ticket with 5 numbers
{
if (!Lottery.getInstance().isStarted())
{
// tickets can't be sold
player.sendPacket(SystemMessageId.LOTTERY_TICKETS_ARE_NOT_CURRENTLY_BEING_SOLD);
return;
}
if (!Lottery.getInstance().isSellableTickets())
{
// tickets can't be sold
player.sendPacket(SystemMessageId.TICKETS_FOR_THE_CURRENT_LOTTERY_ARE_NO_LONGER_AVAILABLE);
return;
}
final long price = Config.ALT_LOTTERY_TICKET_PRICE;
final int lotonumber = Lottery.getInstance().getId();
int enchant = 0;
int type2 = 0;
for (int i = 0; i < 5; i++)
{
if (player.getLoto(i) == 0)
{
return;
}
if (player.getLoto(i) < 17)
{
enchant += Math.pow(2, player.getLoto(i) - 1);
}
else
{
type2 += Math.pow(2, player.getLoto(i) - 17);
}
}
if (player.getAdena() < price)
{
sm = SystemMessage.getSystemMessage(SystemMessageId.YOU_DO_NOT_HAVE_ENOUGH_ADENA);
player.sendPacket(sm);
return;
}
if (!player.reduceAdena("Loto", price, npc, true))
{
return;
}
Lottery.getInstance().increasePrize(price);
sm = SystemMessage.getSystemMessage(SystemMessageId.YOU_HAVE_EARNED_S1);
sm.addItemName(4442);
player.sendPacket(sm);
final L2ItemInstance item = new L2ItemInstance(IdFactory.getInstance().getNextId(), 4442);
item.setCount(1);
item.setCustomType1(lotonumber);
item.setEnchantLevel(enchant);
item.setCustomType2(type2);
player.getInventory().addItem("Loto", item, player, npc);
final InventoryUpdate iu = new InventoryUpdate();
iu.addItem(item);
final L2ItemInstance adenaupdate = player.getInventory().getAdenaInstance();
iu.addModifiedItem(adenaupdate);
player.sendInventoryUpdate(iu);
filename = (npc.getHtmlPath(npcId, 6));
html.setFile(player.getHtmlPrefix(), filename);
}
else if (val == 23) // 23 - current lottery jackpot
{
filename = (npc.getHtmlPath(npcId, 3));
html.setFile(player.getHtmlPrefix(), filename);
}
else if (val == 24) // 24 - Previous winning numbers/Prize claim
{
filename = (npc.getHtmlPath(npcId, 4));
html.setFile(player.getHtmlPrefix(), filename);
final int lotonumber = Lottery.getInstance().getId();
String message = "";
for (L2ItemInstance item : player.getInventory().getItems())
{
if (item == null)
{
continue;
}
if ((item.getId() == 4442) && (item.getCustomType1() < lotonumber))
{
message = message + "<a action=\"bypass -h npc_%objectId%_Loto " + item.getObjectId() + "\">" + item.getCustomType1() + " Event Number ";
final int[] numbers = Lottery.getInstance().decodeNumbers(item.getEnchantLevel(), item.getCustomType2());
for (int i = 0; i < 5; i++)
{
message += numbers[i] + " ";
}
final long[] check = Lottery.getInstance().checkTicket(item);
if (check[0] > 0)
{
switch ((int) check[0])
{
case 1:
message += "- 1st Prize";
break;
case 2:
message += "- 2nd Prize";
break;
case 3:
message += "- 3th Prize";
break;
case 4:
message += "- 4th Prize";
break;
}
message += " " + check[1] + "a.";
}
message += "</a><br>";
}
}
if (message.isEmpty())
{
message += "There has been no winning lottery ticket.<br>";
}
html.replace("%result%", message);
}
else if (val == 25) // 25 - lottery instructions
{
filename = (npc.getHtmlPath(npcId, 2));
html.setFile(player.getHtmlPrefix(), filename);
}
else if (val > 25) // >25 - check lottery ticket by item object id
{
final int lotonumber = Lottery.getInstance().getId();
final L2ItemInstance item = player.getInventory().getItemByObjectId(val);
if ((item == null) || (item.getId() != 4442) || (item.getCustomType1() >= lotonumber))
{
return;
}
final long[] check = Lottery.getInstance().checkTicket(item);
sm = SystemMessage.getSystemMessage(SystemMessageId.S1_DISAPPEARED);
sm.addItemName(4442);
player.sendPacket(sm);
final long adena = check[1];
if (adena > 0)
{
player.addAdena("Loto", adena, npc, true);
}
player.destroyItem("Loto", item, npc, false);
return;
}
html.replace("%objectId%", String.valueOf(npc.getObjectId()));
html.replace("%race%", "" + Lottery.getInstance().getId());
html.replace("%adena%", "" + Lottery.getInstance().getPrize());
html.replace("%ticket_price%", "" + Config.ALT_LOTTERY_TICKET_PRICE);
html.replace("%prize5%", "" + (Config.ALT_LOTTERY_5_NUMBER_RATE * 100));
html.replace("%prize4%", "" + (Config.ALT_LOTTERY_4_NUMBER_RATE * 100));
html.replace("%prize3%", "" + (Config.ALT_LOTTERY_3_NUMBER_RATE * 100));
html.replace("%prize2%", "" + Config.ALT_LOTTERY_2_AND_1_NUMBER_PRIZE);
html.replace("%enddate%", "" + DateFormat.getDateInstance().format(Lottery.getInstance().getEndDate()));
player.sendPacket(html);
// Send a Server->Client ActionFailed to the L2PcInstance in order to avoid that the client wait another packet
player.sendPacket(ActionFailed.STATIC_PACKET);
}
@Override
public String[] getBypassList()
{
return COMMANDS;
}
}

View File

@@ -47,7 +47,7 @@
<npc id="30875" x="142592" y="26564" z="-2392" heading="32768" respawnTime="60sec" /> <!-- Carlton -->
<npc id="30876" x="152007" y="24856" z="-2136" respawnTime="60sec" /> <!-- Eastan -->
<npc id="30877" x="152004" y="25352" z="-2128" respawnTime="60sec" /> <!-- Grayson -->
<npc id="30990" x="146738" y="25756" z="-2008" respawnTime="60sec" /> <!-- Lottery Ticket Seller -->
<!-- <npc id="30990" x="146738" y="25756" z="-2008" respawnTime="60sec" /> --> <!-- Lottery Ticket Seller -->
<npc id="31001" x="148700" y="16834" z="-1560" respawnTime="60sec" /> <!-- Claudia Athebaldt -->
<npc id="31031" x="144056" y="22996" z="-2136" respawnTime="60sec" /> <!-- Broadcasting Tower -->
<npc id="31053" x="149044" y="29160" z="-2248" heading="36864" respawnTime="60sec" /> <!-- Kidder -->

View File

@@ -58,7 +58,7 @@
<npc id="30959" x="20175" y="145480" z="-3112" heading="16384" respawnTime="60sec" /> <!-- Barbado -->
<npc id="30960" x="21025" y="144931" z="-3064" heading="40960" respawnTime="60sec" /> <!-- Beer Chest -->
<npc id="30961" x="19490" y="145930" z="-3064" respawnTime="60sec" /> <!-- Clothes Chest -->
<npc id="30990" x="15693" y="142886" z="-2696" heading="16000" respawnTime="60sec" /> <!-- Lottery Ticket Seller -->
<!-- <npc id="30990" x="15693" y="142886" z="-2696" heading="16000" respawnTime="60sec" /> --> <!-- Lottery Ticket Seller -->
<npc id="31031" x="20368" y="144912" z="-3088" respawnTime="60sec" /> <!-- Broadcasting Tower -->
<npc id="31043" x="19034" y="146249" z="-3064" heading="55264" respawnTime="60sec" /> <!-- Octavia -->
<npc id="31048" x="19505" y="146220" z="-3064" heading="42568" respawnTime="60sec" /> <!-- McDermott -->

View File

@@ -12,7 +12,7 @@
<npc id="19546" x="-82411" y="249927" z="-3360" respawnTime="8sec" /> <!-- Dummy -->
<npc id="19546" x="-82400" y="250031" z="-3360" respawnTime="8sec" /> <!-- Dummy -->
<npc id="19546" x="-82137" y="250187" z="-3360" respawnTime="8sec" /> <!-- Dummy -->
<npc id="30990" x="-84143" y="244637" z="-3728" heading="41000" respawnTime="60sec" /> <!-- Lottery Ticket Seller -->
<!-- <npc id="30990" x="-84143" y="244637" z="-3728" heading="41000" respawnTime="60sec" /> --> <!-- Lottery Ticket Seller -->
<npc id="32327" x="-81153" y="247947" z="-3464" respawnTime="60sec" /> <!-- Adventurers' Guide -->
<npc id="32478" x="-80771" y="248215" z="-3480" heading="61100" respawnTime="60sec" /> <!-- Dimensional Merchant -->
<npc id="33587" x="-81190" y="247995" z="-3464" respawnTime="60sec" /> <!-- Mentor Guide -->

View File

@@ -70,7 +70,7 @@
</parameters>
</npc>
<npc id="30829" x="81100" y="145840" z="-3528" heading="32768" respawnTime="60sec" /> <!-- Cooper -->
<npc id="30990" x="83331" y="147905" z="-3400" heading="16700" respawnTime="60sec" /> <!-- Lottery Ticket Seller -->
<!-- <npc id="30990" x="83331" y="147905" z="-3400" heading="16700" respawnTime="60sec" /> --> <!-- Lottery Ticket Seller -->
<npc id="31031" x="82272" y="147072" z="-3528" respawnTime="60sec" /> <!-- Broadcasting Tower -->
<npc id="31049" x="83264" y="150176" z="-3512" heading="24576" respawnTime="60sec" /> <!-- Pepper -->
<npc id="31092" x="81360" y="150016" z="-3528" heading="3950" respawnTime="60sec" /> <!-- Black Marketeer of Mammon -->

View File

@@ -50,7 +50,7 @@
<param name="fnAgitMap" value="gludin"/>
</parameters>
</npc>
<npc id="30990" x="-80785" y="149735" z="-3040" heading="23000" respawnTime="60sec" /> <!-- Lottery Ticket Seller -->
<!-- <npc id="30990" x="-80785" y="149735" z="-3040" heading="23000" respawnTime="60sec" /> --> <!-- Lottery Ticket Seller -->
<npc id="31031" x="-81280" y="154369" z="-3168" heading="16384" respawnTime="5sec" /> <!-- Broadcasting Tower -->
<npc id="31046" x="-81520" y="152256" z="-3120" heading="49376" respawnTime="60sec" /> <!-- Marsden -->
<npc id="31092" x="-84745" y="151732" z="-3128" heading="50000" respawnTime="60sec" /> <!-- Black Marketeer of Mammon -->

View File

@@ -48,7 +48,7 @@
</parameters>
</npc>
<npc id="30827" x="-14797" y="123283" z="-3112" heading="800" respawnTime="60sec" /> <!-- Lundy -->
<npc id="30990" x="-12676" y="122821" z="-3112" heading="48000" respawnTime="60sec" /> <!-- Lottery Ticket Seller -->
<!-- <npc id="30990" x="-12676" y="122821" z="-3112" heading="48000" respawnTime="60sec" /> --> <!-- Lottery Ticket Seller -->
<npc id="31047" x="-14708" y="124160" z="-3112" heading="15972" respawnTime="60sec" /> <!-- Kell -->
<npc id="31092" x="-12345" y="121695" z="-2984" heading="12452" respawnTime="60sec" /> <!-- Black Marketeer of Mammon -->
<npc id="31203" x="-14767" y="123313" z="-3112" respawnTime="60sec" /> <!-- Moon Dancer -->

View File

@@ -7,7 +7,7 @@
<param name="fnAgitMap" value="godard"/>
</parameters>
</npc>
<npc id="30990" x="147908" y="-55221" z="-2728" heading="48000" respawnTime="60sec" /> <!-- Lottery Ticket Seller -->
<!-- <npc id="30990" x="147908" y="-55221" z="-2728" heading="48000" respawnTime="60sec" /> --> <!-- Lottery Ticket Seller -->
<npc id="31092" x="144400" y="-54048" z="-2976" heading="49000" respawnTime="60sec" /> <!-- Black Marketeer of Mammon -->
<npc id="31256" x="148832" y="-58960" z="-2960" heading="22000" respawnTime="60sec" /> <!-- Leon -->
<npc id="31257" x="148975" y="-58919" z="-2960" heading="22000" respawnTime="60sec" /> <!-- Veronica -->

View File

@@ -45,7 +45,7 @@
<npc id="30746" x="116085" y="74728" z="-2584" heading="10000" respawnTime="60sec" /> <!-- Cybellin -->
<npc id="30764" x="117380" y="75616" z="-2664" heading="26000" respawnTime="60sec" /> <!-- Balthazar -->
<npc id="30831" x="117432" y="76044" z="-2720" heading="15000" respawnTime="60sec" /> <!-- Nelson -->
<npc id="30990" x="117148" y="76865" z="-2688" heading="34000" respawnTime="60sec" /> <!-- Lottery Ticket Seller -->
<!-- <npc id="30990" x="117148" y="76865" z="-2688" heading="34000" respawnTime="60sec" /> --> <!-- Lottery Ticket Seller -->
<npc id="31031" x="116036" y="76319" z="-2720" respawnTime="60sec" /> <!-- Broadcasting Tower -->
<npc id="31051" x="116320" y="74688" z="-2584" heading="16300" respawnTime="60sec" /> <!-- Keach -->
<npc id="31092" x="120493" y="76520" z="-2136" heading="35500" respawnTime="60sec" /> <!-- Black Marketeer of Mammon -->

View File

@@ -43,7 +43,7 @@
<npc id="30969" x="109707" y="220044" z="-3512" heading="7656" respawnTime="60sec" /> <!-- Iason Heine -->
<npc id="30970" x="114939" y="223293" z="-3720" heading="38248" respawnTime="60sec" /> <!-- Dorothy -->
<npc id="30973" x="115531" y="220194" z="-3624" heading="54144" respawnTime="60sec" /> <!-- Medium Jar -->
<npc id="30990" x="111417" y="219422" z="-3520" heading="48000" respawnTime="60sec" /> <!-- Lottery Ticket Seller -->
<!-- <npc id="30990" x="111417" y="219422" z="-3520" heading="48000" respawnTime="60sec" /> --> <!-- Lottery Ticket Seller -->
<npc id="31031" x="109825" y="219399" z="-3472" heading="16384" respawnTime="5sec" /> <!-- Broadcasting Tower -->
<npc id="31042" x="106955" y="216987" z="-3592" respawnTime="60sec" /> <!-- Kantabilon -->
<npc id="31050" x="107253" y="217252" z="-3592" heading="39408" respawnTime="60sec" /> <!-- Thora -->

View File

@@ -40,7 +40,7 @@
<npc id="30760" x="80036" y="56568" z="-1552" heading="57344" respawnTime="60sec" /> <!-- Sir Gustav Athebaldt -->
<npc id="30830" x="81992" y="54048" z="-1488" respawnTime="60sec" /> <!-- Joey -->
<npc id="30929" x="79769" y="55048" z="-1544" heading="48500" respawnTime="60sec" /> <!-- Patrin -->
<npc id="30990" x="83001" y="53224" z="-1488" heading="31000" respawnTime="60sec" /> <!-- Lottery Ticket Seller -->
<!-- <npc id="30990" x="83001" y="53224" z="-1488" heading="31000" respawnTime="60sec" /> --> <!-- Lottery Ticket Seller -->
<npc id="31031" x="79998" y="55455" z="-1552" respawnTime="60sec" /> <!-- Broadcasting Tower -->
<npc id="31052" x="80071" y="55068" z="-1544" heading="40064" respawnTime="60sec" /> <!-- Heid -->
<npc id="31092" x="80129" y="56947" z="-1552" heading="32500" respawnTime="60sec" /> <!-- Black Marketeer of Mammon -->

View File

@@ -17,7 +17,7 @@
<param name="fnAgitMap" value="rune"/>
</parameters>
</npc>
<npc id="30990" x="43664" y="-47664" z="-792" heading="50000" respawnTime="60sec" /> <!-- Lottery Ticket Seller -->
<!-- <npc id="30990" x="43664" y="-47664" z="-792" heading="50000" respawnTime="60sec" /> --> <!-- Lottery Ticket Seller -->
<npc id="31031" x="43259" y="-50167" z="-792" respawnTime="60sec" /> <!-- Broadcasting Tower -->
<npc id="31092" x="42918" y="-41412" z="-2184" heading="20000" respawnTime="60sec" /> <!-- Black Marketeer of Mammon -->
<npc id="31300" x="44692" y="-47312" z="-792" respawnTime="60sec" /> <!-- Drumond -->

View File

@@ -11,7 +11,7 @@
<param name="fnAgitMap" value="schuttgart"/>
</parameters>
</npc>
<npc id="30994" x="87096" y="-143472" z="-1288" heading="16500" respawnTime="60sec" /> <!-- Lottery Ticket Seller -->
<!-- <npc id="30994" x="87096" y="-143472" z="-1288" heading="16500" respawnTime="60sec" /> --> <!-- Lottery Ticket Seller -->
<npc id="31031" x="87983" y="-140658" z="-1528" respawnTime="60sec" /> <!-- Broadcasting Tower -->
<npc id="31092" x="89856" y="-143760" z="-1528" respawnTime="60sec" /> <!-- Black Marketeer of Mammon -->
<npc id="31673" x="92080" y="-139696" z="-2296" heading="5000" respawnTime="60sec" /> <!-- Patrol -->