home *** CD-ROM | disk | FTP | other *** search
- // * Date Created:Mar 22, 2000.
- // * Created by: Brent Knowles
- // * Purpose: A Control Panel type script to allow the hot-skeys to control the functionality of the NPC
- // * Strings:
- // * Never shout for help 830
- // * help at three quarter hit points 831
- // * help at half hit points 832
- // * help when almost dead 833
- // *
- // * Follow mode on 835
- // * Follow mode off 836
- // *
-
- // *Control panel*
-
-
- // * Switch Weapons
- IF
- HotKey(D)
- THEN
- RESPONSE #100
- EquipMostDamagingMelee()
- END
-
- IF
- HotKey(F)
- THEN
- RESPONSE #100
- EquipRanged()
- END
-
- // * Turn Auto-Follow On
- IF
- HotKey(S)
- Global("pscript_AutoFollow","LOCALS",0)
- THEN
- RESPONSE #100
- DisplayStringHead(Myself,835)
- SetGlobal("pscript_AutoFollow","LOCALS",1)
- END
-
- // * Turn Auto-Follow Off
- IF
- HotKey(S)
- Global("pscript_AutoFollow","LOCALS",1)
- THEN
- RESPONSE #100
- DisplayStringHead(Myself,836)
- SetGlobal("pscript_AutoFollow","LOCALS",0)
- END
-
- //*Pain Tolerance*
- // * local=0 means that the user will never ask for help
- IF
- HotKey(G)
- Global("pscript_Pain","LOCALS",0)
- THEN
- RESPONSE #100
- DisplayStringHead(Myself,831)
- SetGlobal("pscript_Pain","LOCALS",1)
- END
-
- // * 2 = half hit point
- IF
- HotKey(G)
- Global("pscript_Pain","LOCALS",1)
- THEN
- RESPONSE #100
- DisplayStringHead(Myself,832)
- SetGlobal("pscript_Pain","LOCALS",2)
- END
- IF
- HotKey(G)
- Global("pscript_Pain","LOCALS",2)
- THEN
- RESPONSE #100
- DisplayStringHead(Myself,833)
- SetGlobal("pscript_Pain","LOCALS",3)
- END
-
- IF
- HotKey(G)
- Global("pscript_Pain","LOCALS",3)
- THEN
- RESPONSE #100
- DisplayStringHead(Myself,830)
- SetGlobal("pscript_Pain","LOCALS",0)
- END
- //*SHOUTS*
- IF
- HPPercentLT(Myself,75)
- See(NearestEnemyOf(Myself))
- Global("pscript_Pain","LOCALS",1)
- THEN
- RESPONSE #100
- Help()
- Continue()
- END
-
- IF
- HPPercentLT(Myself,50)
- See(NearestEnemyOf(Myself))
- Global("pscript_Pain","LOCALS",2)
- THEN
- RESPONSE #100
- Help()
- Continue()
- END
- IF
- HPPercentLT(Myself,25)
- See(NearestEnemyOf(Myself))
- Global("pscript_Pain","LOCALS",3)
- THEN
- RESPONSE #100
- Help()
- Continue()
- END
-
- //*ORDERS*
-
- // * follow if Auto-Follow is turned on
- IF
- // See(Player1)
- !Range(Player1,15)
- Global("pscript_AutoFollow","LOCALS",1)
- THEN
- RESPONSE #100
- SetInterrupt(FALSE)
- MoveToObject(Player1)
- SetInterrupt(TRUE)
- END