-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
576 lines (563 loc) · 27.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Lineage 2 Classic Vip Tier Calculator</title>
<meta name="description" content="Simple tool to calculate your vip tier duration and renewal">
<meta name="author" content="Leonan Carvalho j.leonancarvalho at gmail.com">
<meta name="robots" content="index, follow">
<meta name="googlebot" content="index, follow">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="//code.jquery.com/jquery-3.3.1.slim.min.js"></script>
<link rel="stylesheet" type="text/css" href="//stackpath.bootstrapcdn.com/bootstrap/4.1.0/css/bootstrap.min.css">
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.0/umd/popper.min.js"></script>
<script type="text/javascript" src="//stackpath.bootstrapcdn.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.7.2/angular.min.js"></script>
</head>
<body>
<div>
<!--
Bootstrap docs: https://getbootstrap.com/docs
-->
<div class="container">
<h1>
Lineage 2 Vip Tier Calculator <small>beta</small>
</h1>
<div class="row" ng-controller="testController">
<div class="col-md-12">
<form>
<!-- <h3>What you want to know?</h3>
<div class="custom-control custom-radio">
<input type="radio" class="custom-control-input" id="customControlValidation2" name="radio-stacked" ng-model="mode" ng-value="1" required>
<label class="custom-control-label" for="customControlValidation2">What will the duration of vip be if I buy?</label>
</div>
<div class="custom-control custom-radio mb-3">
<input type="radio" class="custom-control-input" id="customControlValidation3" name="radio-stacked" ng-model="mode" ng-value="2" required>
<label class="custom-control-label" for="customControlValidation3">Or what quantity will I need to buy to be a VIP for a few months?</label>
</div>
<div class="form-group" ng-show="mode==1">
<div class="row">
<div class="col">
<a href="http://www.lineage2.com/en/shop/ncoin/" target="_blank">NCoin Bulget</a>
<input type="number" class="form-control" placeholder="NCoin Bulget" ng-model="ngCoin" ng-change="calculateTier()">
</div>
<div class="col">
For how long Months?
<input type="number" class="form-control" placeholder="For how long Months?" ng-model="months" min="1" ng-change="calculateTier()">
</div>
</div>
</div> -->
<div class="form-group" ng-show="mode==2">
<div class="row">
<div class="col">
Pick a vip tier
<select class="custom-select" ng-options="item as item.name for item in vipTiers track by item.name" ng-model="selected" ng-change="calculateNcoin()" required>
<option value="" selected disabled>Pick a vip tier</option>
</select>
</div>
<div class="col">
For how long Months?
<input type="number" class="form-control" placeholder="For how long Months?" ng-model="months" min="1" ng-change="calculateNcoin()" >
</div>
</div>
<div class="">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="customControlValidation2" name="checkbox-optimized" ng-model="optimized" ng-true-value="!0" ng-false-value="!!0">
<label class="custom-control-label" for="customControlValidation2">Show optimized suggestion for packs? <small>(experimental)</small></label>
</div>
</div>
</div>
</form>
</div>
<div class="col-md-12" ng-if="mode==1" >
<h2>
Result:
</h2>
<div class="row" >
<div class="pull-right" >
<small class="table-success" style="width:32px;height:32px;" > on</small>
<small class="table-danger" style="width:32px;height:32px;"> off</small>
</div>
</div>
<div class="row" >
<table cellpadding="1" cellspacing="1" class="table table-striped table-hover table-responsive">
<thead>
<tr>
<th scope="col">
</th>
<th scope="col" style="text-align: center;">
Tier 1 VIP Status (80)</th>
<th scope="col" style="text-align: center;">
Tier 2 VIP Status (800)</th>
<th scope="col" style="text-align: center;">
Tier 3 VIP Status (2000) </th>
<th scope="col" style="text-align: center;">
Tier 4 VIP Status (4000)</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="row in calculatedTier">
<td style="text-align: center;"><strong>Month {{row.month}}</strong></td>
<!-- Tier 1 -->
<td style="text-align: center;" ng-class="{'table-success': row.tiers[0].enabled,'table-danger': !row.tiers[0].enabled }">{{row.tiers[0].balance}}
<br ng-if="!row.tiers[0].enabled">
<small class="text-warn" ng-if="!row.tiers[0].enabled">
You must buy more
<i ng-if="row.tiers[0].balance > 0">{{row.tiers[0].required - row.tiers[0].balance}}</i>
<i ng-if="row.tiers[0].balance <= 0">{{row.tiers[0].required}}</i>
to reactivate
</small>
</td>
<!-- Tier 2 -->
<td style="text-align: center;" ng-class="{'table-success': row.tiers[1].enabled,'table-danger': !row.tiers[1].enabled }">
{{row.tiers[1].balance}}
<br ng-if="!row.tiers[1].enabled">
<small class="text-warn" ng-if="!row.tiers[1].enabled">
You must buy more
<i ng-if="row.tiers[1].balance > 0">{{row.tiers[1].required - row.tiers[1].balance}}</i>
<i ng-if="row.tiers[1].balance <= 0">{{row.tiers[1].required}}</i>
to reactivate
</small>
</td>
<!-- Tier 3 -->
<td style="text-align: center;" ng-class="{'table-success': row.tiers[2].enabled,'table-danger': !row.tiers[2].enabled }">
{{row.tiers[2].balance}}
<br ng-if="!row.tiers[2].enabled">
<small class="text-warn" ng-if="!row.tiers[2].enabled">
You must buy more
<i ng-if="row.tiers[2].balance > 0">{{row.tiers[2].required - row.tiers[2].balance}}</i>
<i ng-if="row.tiers[2].balance <= 0">{{row.tiers[2].required}}</i>
to enable this tier
</small>
</td>
<!-- Tier 4 -->
<td style="text-align: center;" ng-class="{'table-success': row.tiers[3].enabled,'table-danger': !row.tiers[3].enabled }">
{{row.tiers[3].balance}}
<br ng-if="!row.tiers[3].enabled">
<small class="text-warn" ng-if="!row.tiers[3].enabled">
You must buy more
<i ng-if="row.tiers[3].balance > 0">{{row.tiers[3].required - row.tiers[3].balance}}</i>
<i ng-if="row.tiers[3].balance <= 0">{{row.tiers[3].required}}</i>
to enable this tier
</small>
</td>
</tr>
</tbody>
</table>
</div>
<!-- <pre>{{calculatedTier|json}}</pre> -->
</div>
<div class="col-md-12" ng-if="mode == 2 && calculatedNcoin.length > 0" >
<h2>
Result for {{selected.name}} ( {{selected.required}}) in {{months}} month(s) <small>({{months*30}} days)</small>:
</h2>
<div class="row">
<ul class="list-group list-group-flush">
<li class="list-group-item">Total NCoins purchases in period <span class="text-info">{{totalBalance}}</span> </li>
<li class="list-group-item">Total VIP depreciated in period <span class="text-danger">{{totalDepreciated}}</span> </li>
<li class="list-group-item">Total Real Money spend in period <span class="text-success">$ {{totalRM}}</span> </li>
<li class="list-group-item" ng-if="optimized">Total Real Money spend in period for optmized packs <span class="text-success">$ {{totalRMBestPack}}</span> </li>
</ul>
<table cellpadding="1" cellspacing="1" class="table table-striped table-hover table-responsive ">
<thead>
<tr>
<th scope="col">Month</th>
<th scope="col">VIP Points</th>
<th scope="col" style="text-align: center;">How many NCoin should be Purchased?</th>
<th scope="col" style="text-align: center;">Which <a href="http://www.lineage2.com/en/shop/ncoin/" target="_blank"> single package available </a> should I buy?</th>
<th scope="col" style="text-align: center;" ng-if="optimized"> Optimized balance </th>
<th scope="col" style="text-align: center;" ng-if="optimized"> Maybe this <a href="http://www.lineage2.com/en/shop/ncoin/" target="_blank"> single package available </a> is better</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="row in calculatedNcoin">
<th scope="row"><strong>{{row.month}}</strong></th>
<td style="text-align: center;">{{row.vip}}</td>
<td style="text-align: center;">
{{row.purchace}}
<strong ng-if="$last"> </strong>
</td>
<td style="text-align: center;">
<!--<pre>{{row.packs|json}}</pre>-->
<ul class="list-group list-group-flush">
<li class="list-group-item" ng-repeat="pack in row.packs.packs track by $index">
{{pack.amount}} ($ {{pack.price}})
</li>
</ul>
<small class="text-info" ng-if="row.packs.total > 0">sub-total ($ {{row.packs.total}})</small>
<h1 ng-if="row.packs.total == 0">-</h1>
</td>
<!-- optmized option -->
<td scope="col" style="text-align: center;" ng-if="optimized">{{row.bestbalance}}</td>
<td style="text-align: center;" ng-if="optimized">
<!--<pre>{{row.packs|json}}</pre>-->
<ul class="list-group list-group-flush">
<li class="list-group-item" ng-repeat="pack in row.bestpacks.packs track by $index">
{{pack.amount}} ($ {{pack.price}})
</li>
</ul>
<small class="text-info" ng-if="row.bestpacks.total > 0">sub-total ($ {{row.bestpacks.total}})</small>
<h1 ng-if="row.bestpacks.total == 0">-</h1>
</td>
</tr>
</tbody>
</table>
<!-- <pre>{{calculatedNcoin|json}}</pre>-->
</div>
</div>
</div>
</div>
<!-- Content from -->
<div class="container">
<div class="row">
<h2>
About the <a href="https://www.lineage2.com/en/news/announcements/classic-vip-rewards-program.php" target="_blank" > Vip Tier </a>
</h2>
<div class="article-p inner-container">
<p class="MsoNormal">
With the upcoming launch of <a href="https://classic.lineage2.com/">Lineage II Classic</a> on October 3, players who spend NCoin in the Lineage II Classic in-game store will automatically be entered into a new Classic VIP Program that offers additional benefits and bonuses on top of the base game, like bonus XP/SP, reduced XP loss on death, and a Daily Gift. Read on for details on how this program will work when it launches alongside Lineage II Classic!</p>
<p class="MsoNormal">
</p>
<h2 class="MsoNormal">
VIP Tiers</h2>
<p class="MsoNormal">
There are four tiers within the Classic VIP Program, obtainable by spending NCoin on items in the Lineage II Classic in-game store. Your purchases will go towards VIP Points that are automatically applied and rank up your VIP tiers. The wide range of benefits you can enjoy by tier include:</p>
<p class="MsoNormal">
</p>
<table border="1" cellpadding="1" cellspacing="1" style="width: 700px">
<thead>
<tr>
<th scope="col" style="text-align: center;">
<p>
Benefits</p>
</th>
<th scope="col">
<p>
Tier 1 VIP Status</p>
</th>
<th scope="col">
<p>
Tier 2 VIP Status</p>
</th>
<th scope="col">
<p>
Tier 3 VIP Status</p>
</th>
<th scope="col">
<p>
Tier 4 VIP Status</p>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<p>
XP/SP</p>
</td>
<td style="text-align: center;">
<p>
+5%</p>
</td>
<td style="text-align: center;">
<p>
+10%</p>
</td>
<td style="text-align: center;">
<p>
+15%</p>
</td>
<td style="text-align: center;">
<p>
+25%</p>
</td>
</tr>
<tr>
<td>
<p>
Item Drop</p>
</td>
<td style="text-align: center;">
<p>
+10%</p>
</td>
<td style="text-align: center;">
<p>
+20%</p>
</td>
<td style="text-align: center;">
<p>
+30%</p>
</td>
<td style="text-align: center;">
<p>
+50%</p>
</td>
</tr>
<tr>
<td>
<p>
Death Penalty Reduction (XP)</p>
</td>
<td style="text-align: center;">
<p>
--</p>
</td>
<td style="text-align: center;">
<p>
--</p>
</td>
<td style="text-align: center;">
<p>
-5%</p>
</td>
<td style="text-align: center;">
<p>
-20%</p>
</td>
</tr>
<tr>
<td>
<p>
VIP Daily Gift*</p>
</td>
<td style="text-align: center;">
<p>
?</p>
</td>
<td style="text-align: center;">
<p>
?</p>
</td>
<td style="text-align: center;">
<p>
?</p>
</td>
<td style="text-align: center;">
<p>
?</p>
</td>
</tr>
<tr>
<td>
<p>
World Chat</p>
</td>
<td style="text-align: center;">
<p>
+1</p>
</td>
<td style="text-align: center;">
<p>
+2</p>
</td>
<td style="text-align: center;">
<p>
+2</p>
</td>
<td style="text-align: center;">
<p>
+3</p>
</td>
</tr>
<tr>
<td>
<p>
Fishing XP</p>
</td>
<td style="text-align: center;">
<p>
--</p>
</td>
<td style="text-align: center;">
<p>
--</p>
</td>
<td style="text-align: center;">
<p>
+5%</p>
</td>
<td style="text-align: center;">
<p>
+20%</p>
</td>
</tr>
<tr>
<td>
<p>
Silver Coin Acquisition</p>
</td>
<td style="text-align: center;">
<p>
--</p>
</td>
<td style="text-align: center;">
<p>
--</p>
</td>
<td style="text-align: center;">
<p>
?</p>
</td>
<td style="text-align: center;">
<p>
?</p>
</td>
</tr>
<tr>
<td>
<p>
PVE Damage Increase</p>
</td>
<td style="text-align: center;">
<p>
--</p>
</td>
<td style="text-align: center;">
<p>
--</p>
</td>
<td style="text-align: center;">
<p>
+3%</p>
</td>
<td style="text-align: center;">
<p>
+10%</p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal">
</p>
<table align="center" border="1" cellpadding="1" cellspacing="1" style="width: 500px">
<thead>
<tr>
<th colspan="2" scope="col" style="text-align: center;">
<p>
Daily Box Contents</p>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<p>
<strong>Tier 1 VIP Status</strong></p>
</td>
<td>
<p>
1 Scroll of Escape<br>
3 Healing Potions</p>
</td>
</tr>
<tr>
<td>
<p>
<strong>Tier 2 VIP Status</strong></p>
</td>
<td>
<p>
1 Scroll of Resurrection<br>
3 Healing Potions</p>
</td>
</tr>
<tr>
<td>
<p>
<strong>Tier 3 VIP Status</strong></p>
</td>
<td>
<p>
1 Scroll of Escape<br>
1 Scroll of Resurrection<br>
5 Healing Potions</p>
</td>
</tr>
<tr>
<td>
<p>
<strong>Tier 4 VIP Status</strong></p>
</td>
<td>
<p>
1 Scroll of Escape<br>
1 Scroll of Resurrection<br>
3 Major Healing Potions</p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal">
</p>
<h2 class="MsoNormal">
VIP Points</h2>
<p class="MsoNormal">
Every NCoin purchase you make will automatically go towards your VIP Points. 1 NCoin = 1 VIP Point. Each VIP tier can be achieved by accumulating the required number of VIP Points, but your tier can also decrease.</p>
<table border="1" cellpadding="1" cellspacing="1" style="width: 700px">
<thead>
<tr>
<th scope="col">
</th>
<th scope="col" style="text-align: center;">
Tier 1 VIP Status</th>
<th scope="col" style="text-align: center;">
Tier 2 VIP Status</th>
<th scope="col" style="text-align: center;">
Tier 3 VIP Status</th>
<th scope="col" style="text-align: center;">
Tier 4 VIP Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<strong>Points Required</strong></td>
<td style="text-align: center;">
80</td>
<td style="text-align: center;">
800</td>
<td style="text-align: center;">
2000</td>
<td style="text-align: center;">
4000</td>
</tr>
<tr>
<td>
<strong>Points Depreciated*</strong></td>
<td style="text-align: center;">
80</td>
<td style="text-align: center;">
400</td>
<td style="text-align: center;">
660</td>
<td style="text-align: center;">
1320</td>
</tr>
</tbody>
</table>
<address class="MsoNormal">
*After 30 days, these points will expire depending on the VIP tier.</address>
<p class="MsoNormal">
Once a VIP tier is obtained, you reap the benefits for 30 days. Should your VIP tier change any time during your 30 days, you can enjoy your new tier benefits for 30 days from when you reached that level. There is no limit to how many VIP Points you earn, but VIP Points will depreciate every 30 days, and that can affect your VIP tier. If you want to maintain your VIP tier, be sure to at least obtain the amount of VIP Points that will be depreciating after the 30 days.</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">
The VIP Rewards Program tiers and benefits are subject to change. The reward program will be occasionally updated to ensure they're continually relevant and valuable.</p>
<p></p>
</div>
</div>
</div>
</div>
<footer>
Developed by <a href="https://forums.lineage2.com/profile/9442-grundor/" target="_blank">Grundor </a>
<small id="copyright" class="text-center">
<p>© 2004-2017 NCSOFT Corporation. All rights reserved.<br>
Lineage II, PLAYNC, NCSOFT, the Interlocking NC Logo and all associated logos and designs are trademarks or registered trademarks of NCSOFT Corporation.<br>All other trademarks or registered trademarks are property of their respective owners.</p>
</small>
</footer>
<a href="https://github.com/L2jBrasil/vip-tier-calculator"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_orange_ff7600.png" alt="Fork me on GitHub"></a>
<script type="application/javascript" src="app.js?v=42" async nocache></script>
</body>
</html>