// *** Calls upon an Ibircat who's strenght is depending on user level, 0+ 15+ and 20+ *** // // *** Designed by Tarashon, for the "Alangara - New Dawn" PW *** // void main() { object oPC; oPC = GetItemActivator(); object oTarget; oTarget = GetAssociate(ASSOCIATE_TYPE_SUMMONED, oPC); if (GetIsObjectValid(oTarget)) RemoveSummonedAssociate(oPC, oTarget); if (GetHitDice(oPC) >= 20) { effect eEffect; eEffect = EffectSummonCreature("ibircatspottet4", VFX_FNF_NATURES_BALANCE, 1.0); ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oPC); TakeGoldFromCreature(400, oPC, TRUE); } else if (GetHitDice(oPC) >= 15) { effect eEffect; eEffect = EffectSummonCreature("ibircatspottet3", VFX_FNF_NATURES_BALANCE, 1.0); ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oPC); TakeGoldFromCreature(300, oPC, TRUE); } else if (GetHitDice(oPC) >= 10) { effect eEffect; eEffect = EffectSummonCreature("ibircatspottet2", VFX_FNF_NATURES_BALANCE, 1.0); ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oPC); TakeGoldFromCreature(200, oPC, TRUE); } else { effect eEffect; eEffect = EffectSummonCreature("ibircatspottet", VFX_FNF_NATURES_BALANCE, 1.0); ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oPC); TakeGoldFromCreature(100, oPC, TRUE); } }