Gambler's Seal

Item ID 5918 Name Gambler's Seal
A gambler seal that attached to cheek for a lucky charm.
_______________________
Critical +3
_______________________
Increases Critical Damage by 3%.
_______________________
Decreases damage taken from Arrow Storm and Gate of Hell by 10%.
_______________________
For each 10 base LUK:
Critical +1
ATK +2
MATK +2
_______________________
Base LUK at least 108:
Critical +5
Increases Critical Damage by 10%.
_______________________
Base LUK at least 120:
Critical +10
Increases Critical Damage by 17%
Decreases damage taken from Arrow Storm and Gate of Hell by 30%.
_______________________
For each 10 base DEX:
Decreases critical damage by 2%
_______________________
Type: Headgear
Defense: 0
Position: Middle
Weight: 50
Armor Level: 1
Refineable: No
_______________________
Requirement:
Base Level 70
Weapon Level 0 Identifier Gambler_Seal
Attack 0 Type Armor
MATK 0 Equip Locations Middle Headgear
Defense 0 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 0 Equip Upper None
Weight 50 Min Equip Level 70
NPC Buy 0 Max Equip Level None
NPC Sell 0 Refineable No
Credit Price None Trade restriction None
Item Script
.@dex = readparam(bDex);
.@luk = readparam(bLuk);
.@critical = 3 + (.@luk / 10);
.@critical_dmg = 3 - (.@dex/10) * 2;
.@sub_arrowstorm = 10;
.@sub_gateofhell = 10;
bonus bBaseAtk,(.@luk/10)*2;
bonus bMatk,(.@luk / 10) * 2;
if (.@luk > 107) {
   .@critical += 5;
   .@critical_dmg += 10;
}
if (.@luk > 119) {
   .@critical += 10;
   .@critical_dmg += 17;
   .@sub_arrowstorm += 30;
   .@sub_gateofhell += 30;
}
bonus bCritical,.@critical;
bonus bCritAtkRate,.@critical_dmg;
bonus2 bSubSkill,"RA_ARROWSTORM",.@sub_arrowstorm;
bonus2 bSubSkill,"SR_GATEOFHELL",.@sub_gateofhell;

Set Script
Gambler's Seal
Heart Card in Mouth
.@aspd = 1;
.@crit_dmg = 2 + 2 * (readparam(bDex) / 10);
.@sub_player = 2;
.@luk = readparam(bLuk);
if (.@luk > 107) {
   .@aspd += 1;
   .@crit_dmg += 2;
   .@sub_player += 2;
}
if (.@luk > 119) {
   .@aspd += 2;
   .@crit_dmg += 4;
   .@sub_player += 4;
   bonus bSplashRange,1;
}
bonus bAspd,.@aspd;
bonus bCritAtkRate,.@crit_dmg;
bonus2 bSubRace,RC_Player_Human,.@sub_player;
bonus2 bSubSkill,"NPC_CRITICALSLASH",100;