//-------------------------------Begin Help_me----------------------------------------// //Name: "Help_me.inc" //Version: 1.3 //Author: Grog //Date: 08-30-04 //Purpose: an include file containing all possible healing related request for help. //**************************************Notes**************************************// //Top-Up Healing = HPPercent <= 75 //Hurt Level 1 = HPPercent <= 65 //Hurt Level 2 = HPPercent <= 55 //Hurt Level 3 = HPPercent <= 45 //Hurt Level 4 = HPPercent <= 35 //Near Death = HPPercent <= 25 //*Number of Hit Dice by Class*// //Mages = d4 //Rouges = d6 //Priests = d8 //Warriors = d10 //**************************************End Notes**************************************// //*****Yell For Help*****// IF Delay(2) HPPercentLT(Myself,75) THEN RESPONSE #100 Shout(NEED_TOP_UP_HEALING) Continue() END IF Delay(2) HPPercentLT(Myself,65) THEN RESPONSE #100 Shout(HURT_LEVEL_1) Continue() END IF Delay(2) HPPercentLT(Myself,55) THEN RESPONSE #100 Shout(HURT_LEVEL_2) Continue() END IF Delay(2) HPPercentLT(Myself,45) THEN RESPONSE #100 Shout(HURT_LEVEL_3) Continue() END IF Delay(2) HPPercentLT(Myself,35) THEN RESPONSE #100 Shout(HURT_LEVEL_4) Continue() END IF Delay(2) HPPercentLT(Myself,25) THEN RESPONSE #100 Shout(NEAR_DEATH) Continue() END //**Potion Request**// //Ask for a potion if I don't already have one and a round has passed since the healing reuqest went out. IF Delay(7) HPPercentLT(Myself,60) !HasItem("POTN08",Myself) !HasItem("EXTHEAL",Myself) !HasItem("POTN42",Myself) !HasItem("POTN17",Myself) !HasItem("POTNGR01",Myself) !HasItem("POTNGR02",Myself) !HasItem("CMSHEAL",Myself) THEN RESPONSE #100 Shout(NEED_POTION) Continue() END IF Acquired("POTN08") THEN RESPONSE #100 Shout(RECIEVED_POTION) UseItem("POTN08",Myself) Continue() END IF Acquired("EXTHEAL") THEN RESPONSE #100 Shout(RECIEVED_POTION) UseItem("EXTHEAL",Myself) Continue() END IF Acquired("POTN42") THEN RESPONSE #100 Shout(RECIEVED_POTION) UseItem("POTN42",Myself) Continue() END IF Acquired("POTN17") THEN RESPONSE #100 Shout(RECIEVED_POTION) UseItem("POTN17",Myself) Continue() END IF Acquired("POTNGR01") THEN RESPONSE #100 Shout(RECIEVED_POTION) UseItem("POTNGR01",Myself) Continue() END IF Acquired("POTNGR02") THEN RESPONSE #100 Shout(RECIEVED_POTION) UseItem("POTNGR02",Myself) Continue() END IF Acquired("CMSHEAL") THEN RESPONSE #100 Shout(RECIEVED_POTION) UseItem("CMSHEAL",Myself) Continue() END //******If I'm Poisoned and Can't Cure it******// IF OR(2) HitBy([ANYONE],POISON) StateCheck(Myself,STATE_POISONED) !HasItem("POTN20",Myself) !HaveSpell(CLERIC_NEUTRALIZE_POISON) !HaveSpell(CLERIC_SLOW_POISON) !HaveSpell(INNATE_SLOW_POISON) THEN RESPONSE #100 Shout(POISONED) Continue() END //******If I'm Diseased and Can't Cure it******// IF StateCheck(Myself,STATE_DISEASED) !HasItem("ADISEASE",Myself) !HasItem(""POTNGR01",Myself) !HaveSpell(CLERIC_CURE_DISEASE) !HaveSpell(PALADIN_CURE_DISEASE) THEN RESPONSE #100 Shout(DISEASED) Continue() END //-------------------------------End Help_me----------------------------------------//