Lunar Rainbow

Item ID 19156 Name Lunar Rainbow
A beautiful moon rainbow which is caused by the moonlight.
_______________________
MDEF +10
_______________________
AGI +3
_______________________
For each Refine Level:
MATK +10
_______________________
When equipped with Ring of the Ancient Wise King:
Adds a 4% chance to auto-cast Level 4 Water Ball when dealing physical damage.

For each Refine Level equal or above +5:
Increases the chance to auto-cast Water Ball by 1%.
_______________________
When equipped with Pitman Card:
Adds a 4% chance to auto-cast Level 4 Earth Spike or Heaven Drive when dealing physical damage.

For each Refine Level equal or above +5:
Increases the chance to auto-cast Earth Spike or Heaven Drive by 1%.
_______________________
When equipped with Hill Wind Card:
Adds a 4% chance to auto-cast Level 4 Lightning Bolt or Thunderstorm when dealing physical damage.

For each Refine Level equal or above +5:
Increases the chance to auto-cast Lightning Bolt or Thunderstorm by 1%.
_______________________
When equipped with Laurell Weinder Card:
Adds a 4% chance to auto-cast Level 4 Cold Bolt or Frost Nova when dealing physical damage.

For each Refine Level equal or above +5:
Increases the chance to auto-cast Cold Bolt or Frost Nova by 1%.
_______________________
When equipped with Red Ferus Card:
Adds a 4% chance to auto-cast Level 4 Fire Ball or Fire Bolt when dealing physical damage.

For each Refine Level equal or above +5:
Increases the chance to auto-cast Fire Ball or Fire Bolt by 1%.
_______________________
When equipped with Rainbow-colored Cat Toy:
For each Refine Level of Lunar Rainbow:
ATK +15, MATK +15,
Increases Attack Speed (decreases After Attack Delay by 2%).
_______________________
Type: Headgear
Defense: 10
Position: Upper
Weight: 20
Armor Level: 1
_______________________
Requirement:
Base Level 80
Weapon Level 0 Identifier Lunar_Rainbow
Attack 0 Type Armor
MATK 0 Equip Locations Upper Headgear
Defense 10 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 20 Min Equip Level 80
NPC Buy 20 Max Equip Level None
NPC Sell 10 Refineable Yes
Credit Price None Trade restriction None
Item Script
bonus bAgi,3;
bonus bMdef,10;
bonus bMatk,(10*getrefine());

Set Script
Ring of the Ancient Wise King
Lunar Rainbow
.@r = getequiprefinerycnt(EQI_HEAD_TOP);
if (.@r < 4) {
   .@a = 4;
}
else {
   .@a = min(.@r,10);
}
bonus3 bAutoSpell,"WZ_WATERBALL",.@a,(.@a*10);
Pitman Card
Lunar Rainbow
.@r = getequiprefinerycnt(EQI_HEAD_TOP);
if (.@r < 4) {
   .@a = 4;
}
else {
   .@a = min(.@r,10);
}
bonus3 bAutoSpell,"WZ_EARTHSPIKE",.@a,(.@a*10);
bonus3 bAutoSpell,"WZ_HEAVENDRIVE",.@a,(.@a*10);
Hill Wind Card
Lunar Rainbow
.@r = getequiprefinerycnt(EQI_HEAD_TOP);
if (.@r < 4) {
   .@a = 4;
}
else {
   .@a = min(.@r,10);
}
bonus3 bAutoSpell,"MG_LIGHTNINGBOLT",.@a,(.@a*10);
bonus3 bAutoSpell,"MG_THUNDERSTORM",.@a,(.@a*10);
Laurell Weinder Card
Lunar Rainbow
.@r = getequiprefinerycnt(EQI_HEAD_TOP);
if (.@r < 4) {
   .@a = 4;
}
else {
   .@a = min(.@r,10);
}
bonus3 bAutoSpell,"MG_COLDBOLT",.@a,(.@a*10);
bonus3 bAutoSpell,"WZ_FROSTNOVA",.@a,(.@a*10);
Red Ferus Card
Lunar Rainbow
.@r = getequiprefinerycnt(EQI_HEAD_TOP);
if (.@r < 4) {
   .@a = 4;
}
else {
   .@a = min(.@r,10);
}
bonus3 bAutoSpell,"MG_FIREBOLT",.@a,(.@a*10);
bonus3 bAutoSpell,"MG_FIREBALL",.@a,(.@a*10);
Lunar Rainbow
Rainbow Foxtail
.@r = getequiprefinerycnt(EQI_HEAD_TOP);
bonus bBaseAtk,15*.@r;
bonus bMatk,15*.@r;
bonus bAspdRate,2*.@r;