Witch's Cloak

Item ID 20852 Name Witch's Cloak
A cloak worn by Zilant, who was called a rare witch.
Multiple woven techniques protect the surgeon from fire and wind.
_______________________
For each Refine Level:
Decreases damage taken from Fire and Wind elemental attacks by 5%.
_______________________
Refine Level +7:
MATK +5%
Decreases Variable Casting Time by 5%.
_______________________
Refine Level +9:
MATK +5%
Decreases Variable Casting Time by additional 5%.
_______________________
Refine Level +10:
Enables unlimited effect of Endure.
_______________________
When equipped with Witch's Thunder Flame Wand:
MATK +5%
Decreases damage taken from Fire and Wind elemental attacks by additional 20%.
_______________________
When equipped with Necromancer's Dress:
For each Refine Level of Necromancer's Manteau:
MATK +2%
Decreases Variable Casting Time by additional 2%.
_______________________
When equipped with Necromancer's Hand Mirror:
MATK +5%
Decreases Variable Casting Time by additional 5%.

Refine Level of Necromancer's Hand Mirror is +8 or higher:
Perfect Dodge +20
MATK +5%
Decreases Variable Casting Time by additional 5%.
_______________________
Type: Garment
Defense: 16
Weight: 100
Armor Level: 1
_______________________
Requirement:
Base Level 130
Weapon Level 0 Identifier Jirant_Cloak
Attack 0 Type Armor
MATK 0 Equip Locations Garment
Defense 16 Equippable Jobs None
Range 0 Equip Gender Both (Male and Female)
Slots 1 Equip Upper None
Weight 100 Min Equip Level 130
NPC Buy 0 Max Equip Level None
NPC Sell 0 Refineable Yes
Credit Price None Trade restriction None
Item Script
.@r = getrefine();
bonus2 bSubEle,Ele_Fire,5*@r;
bonus2 bSubEle,Ele_Wind,5*@r;
if (.@r>=7) {
   bonus bMatkRate,5;
   bonus bVariableCastrate,-5;
}
if (.@r>=9) {
   bonus bMatkRate,5;
   bonus bVariableCastrate,-5;
}
if (.@r>=10)
   bonus bNoWalkDelay;

Set Script
Witch's Dress
Witch's Cloak
.@r = getequiprefinerycnt(EQI_GARMENT);
bonus bMatkRate,2*.@r;
bonus bVariableCastrate,-2*.@r;
Flame Thunder Witch's Wand
Witch's Cloak
bonus bMatkRate,5;
bonus2 bSubEle,Ele_Fire,20;
bonus2 bSubEle,Ele_Wind,20;
Witch Zilant's Mirror
Witch's Cloak
bonus bMatkRate,5;
bonus bVariableCastrate,-5;
if (getequiprefinerycnt(EQI_HAND_L)>=8) {
   bonus bFlee2,20;
   bonus bMatkRate,5;
   bonus bVariableCastrate,-5;
}