I started recently continue my efford to make TES4 look like more as TES2 according class creation.
I successfullly created a script that will make some classes unable to use certain types of weapons and armor.
For example: Mages will refuce to wear armor, or equip most weapons, while thieves will wear only leather and wield some types of weapons only.
Something like D&D and Daggerfall (for people that remember)
So I created a script on every NPC I want to adjust that will do the following things:
1. Generate its class randomly
2. Generate its birthsign randomly
3. Will give him/her specific packages (to make him alive)
4. Will split armor to 4 categories (depending the weight)
5. Will split some types of weapons (Blade, Blunt) in many categories (shortblade,dagger,longblade,axe, mace etc)
6. Will check NPC's class and allow him to wear/wield only some types of items.
This worked almost perfectly as NPC's script but recenty I wanted to use CM Partners on them (I used Toaster Share/Recruit with problems) but I noticed that...
I HAD TO REPLACE THE SCRIPT
This worked but i lost all my custom scripting bc i couldnt run both scripts silmutanesly on every NPC.
So I thought that i could make my script work as global effect, that will effect Player, Game's NPCs and my Oown NPCs.
Everyone that has a class defined at my script
I read on how to make Global script (make a quest, and run the script from there) but then more questions appreared.
I hardly can understand (with my short knowledge on scripts) how to make that.
I will put one of my scripts below so you can check what i have created.
Of exclude the part with the package bc I will not put that on the global effect.
Just stick on the Classgen, the Birthsign Gen and the Class restrictions.
Can anyone help me a bit?
I will be grateful... PLZ...
Attention: The Weapon Reach / Armor Weight i use its the one for Oscuro's Oblivion Overhaul so dont get confused.
Thanks
ScriptName NPC01Misc
;------------------------------------------------------------------------------------------------------------------------------------------------
ref NPC01
string_var name
short NPC01Alchemy
short NPC01Herbalism
short AlchemyTurn
short NPC01Race
short NPC01Class
ref NPC01ClassSelected
short NPC01Trigger1
short NPC01Trigger2
short NPC01Trigger3
short NPC01Birthsign
ref Weapon
ref Helmet
ref Chest
ref Greaves
ref Gauntlets
ref Boots
ref Shield
short WeaponType
float HelmetWeight
float ChestWeight
float GreavesWeight
float GauntletsWeight
float BootsWeight
float ShieldWeight
float WeaponSkill
float fQuestDelayTime
;------------------------------------------------------------------------------------------------------------------------------------------------
begin Gamemode
Set NPC01 to GetSelf
Set name to NPC01.GetName
Set NPC01Race to NPC01.GetRace
set NPC01Trigger2 to 0
set NPC01Trigger3 to 0
set NPC01 to GetSelf
set Weapon to NPC01.GetEquippedObject 16
set Weapontype to GetWeaponType Weapon
set WeaponSkill to GetWeaponReach Weapon
set Helmet to NPC01.GetEquippedObject 0
set Chest to NPC01.GetEquippedObject 2
set Greaves to NPC01.GetEquippedObject 3
set Gauntlets to NPC01.GetEquippedObject 4
set Boots to NPC01.GetEquippedObject 5
set Shield to NPC01.GetEquippedObject 13
set HelmetWeight to NPC01.GetWeight Helmet
set ChestWeight to NPC01.GetWeight Chest
set GreavesWeight to NPC01.GetWeight Greaves
set GauntletsWeight to NPC01.GetWeight Gauntlets
set BootsWeight to NPC01.GetWeight Boots
set ShieldWeight to NPC01.GetWeight Shield
if (NPC01Trigger1 == 0)
Set NPC01Class to RAND 1 14
Set NPC01BirthSign to RAND 1 13
Set NPC01Trigger1 to 1
Endif
;------------------------------------------------------------------------------------------------------------------------------------------------
if (NPC01Trigger2 == 0)
Player.AddSpell NPCStats
If NPC01Class == 1
NPC01.SetClass Warrior
Elseif NPC01Class == 2
NPC01.SetClass Warlock
elseIf NPC01Class == 3
NPC01.SetClass Thief
elseIf NPC01Class == 4
NPC01.SetClass Sorcerer
elseIf NPC01Class == 5
NPC01.SetClass Rogue
elseIf NPC01Class == 6
NPC01.SetClass Priest
elseIf NPC01Class == 7
NPC01.SetClass Nightblade
elseIf NPC01Class == 8
NPC01.SetClass Mage
elseIf NPC01Class == 9
NPC01.SetClass Knight
elseIf NPC01Class == 10
NPC01.SetClass Acrobat
elseIf NPC01Class == 11
NPC01.SetClass Assassin
elseIf NPC01Class == 12
NPC01.SetClass Barbarian
elseIf NPC01Class == 13
NPC01.SetClass Bard
elseIf NPC01Class == 14
NPC01.SetClass Monk
Endif
Set NPC01Trigger2 to 2
Set NPC01ClassSelected to NPC01.GetClass
endif
;------------------------------------------------------------------------------------------------------------------------------------------------
if (NPC01Trigger3 == 0)
if NPC01.GetItemCount BirthSignTrigger == 0
;Script removes any Birthsign stones from NPC's inventory before adding a new stone to avoid stuck of them.
NPC01.removeitem BSBirthApprentice 9999
NPC01.removeitem BSBirthAtronach 9999
NPC01.removeitem BSBirthLady 9999
NPC01.removeitem BSBirthLord 9999
NPC01.removeitem BSBirthLover 9999
NPC01.removeitem BSBirthMage 9999
NPC01.removeitem BSBirthRitual 9999
NPC01.removeitem BSBirthSerpent 9999
NPC01.removeitem BSBirthShadow 9999
NPC01.removeitem BSBirthSteed 9999
NPC01.removeitem BSBirthThief 9999
NPC01.removeitem BSBirthTower 9999
NPC01.removeitem BSBirthWarrior 9999
NPC01.Additem BirthSignTrigger 1
If NPC01Birthsign == 1
NPC01.Addspell BSNPCApprentice
NPC01.Additem BSBirthApprentice 1
elseIf NPC01Birthsign == 2
NPC01.Addspell BSNPCAtronach
NPC01.Additem BSBirthAtronach 1
elseIf NPC01Birthsign == 3
NPC01.Addspell BSNPCLadyBlessing
NPC01.Additem BSBirthLady 1
elseIf NPC01Birthsign == 4
NPC01.Addspell BSNPCLordBloodoftheNorth
NPC01.Addspell BSNPCLordTrollkin
NPC01.Additem BSBirthLord 1
elseIf NPC01Birthsign == 5
NPC01.Addspell BSNPCLoverKiss
NPC01.Additem BSBirthLover 1
elseIf NPC01Birthsign == 6
NPC01.Addspell BSNPCMage
NPC01.Additem BSBirthMage 1
elseIf NPC01Birthsign == 7
NPC01.Addspell BSNPCRitualBlessedWord
NPC01.Addspell BSNPCRitualMaraGift
NPC01.Additem BSBirthRitual 1
elseIf NPC01Birthsign == 8
NPC01.Addspell BSNPCSerpent
NPC01.Additem BSBirthSerpent 1
elseIf NPC01Birthsign == 9
NPC01.Addspell BSNPCShadow
NPC01.Additem BSBirthShadow 1
elseIf NPC01Birthsign == 10
NPC01.Addspell BSNPCSteed
NPC01.Additem BSBirthSteed 1
elseIf NPC01Birthsign == 11
NPC01.Addspell BSNPCThief
NPC01.Additem BSBirthThief 1
elseIf NPC01Birthsign == 12
NPC01.Addspell BSNPCTower
NPC01.Addspell BSNPCTowerWarden
NPC01.Additem BSBirthTower 1
elseIf NPC01Birthsign == 13
NPC01.Addspell BSNPCWarrior
NPC01.Additem BSBirthWarrior 1
endif
Endif
Set NPC01Trigger3 to 1
Endif
;------------------------------------------------------------------------------------------------------------------------------------------------
if getIsCurrentPackage NPCWatchingPreachBench2Sunday08x3 == 1
PrintToConsole "%z CurrentPackage: Sunday Preaching 8x3" name
endif
;------------------------------------------------------------------------------------------------------------------------------------------------
if getIsCurrentPackage NPCPraying7x1 == 1
PrintToConsole "%z CurrentPackage: Praying 7x1" name
endif
;------------------------------------------------------------------------------------------------------------------------------------------------
if getIsCurrentPackage NPCTrainingA10x1 == 1
if NPC01.GetItemCount WeapIronDagger == 0
PrintToConsole "%z CurrentPackage: Training(A) 10x1" name
NPC01.additem WeapIronDagger 1
endif
endif
if getIsCurrentPackage NPCTrainingA10x1 == 0
if NPC01.GetItemCount WeapIronDagger > 0
NPC01.removeitem WeapIronDagger 9999
endif
endif
;------------------------------------------------------------------------------------------------------------------------------------------------
if getIsCurrentPackage NPCEat14x2 == 1
if NPC01.GetItemCount CheeseWedge == 0
PrintToConsole "%z CurrentPackage: Eating 14x2" name
NPC01.additem CheeseWedge 1
endif
endif
if getIsCurrentPackage NPCEat14x2 == 0
if NPC01.GetItemCount CheeseWedge > 0
NPC01.removeitem CheeseWedge 9999
endif
endif
;------------------------------------------------------------------------------------------------------------------------------------------------
if getIsCurrentPackage NPCReading17x1 == 1
if NPC01.GetItemCount Book1CheapGuideSkingrad == 0
PrintToConsole "%z CurrentPackage: Reading 17x1" name
NPC01.additem Book1CheapGuideSkingrad 1
endif
endif
if getIsCurrentPackage NPCReading17x1 == 0
if NPC01.GetItemCount Book1CheapGuideSkingrad > 0
NPC01.removeitem Book1CheapGuideSkingrad 9999
endif
endif
;------------------------------------------------------------------------------------------------------------------------------------------------
if getIsCurrentPackage NPCEat20x3 == 1
if NPC01.GetItemCount Breadloaf == 0
PrintToConsole "%z CurrentPackage: Eating 20x3" name
NPC01.additem Breadloaf 1
endif
endif
if getIsCurrentPackage NPCEat20x3 == 0
if NPC01.GetItemCount Breadloaf > 0
NPC01.removeitem Breadloaf 9999
endif
endif
;------------------------------------------------------------------------------------------------------------------------------------------------
if getIsCurrentPackage NPCSleep23x8 == 1
PrintToConsole "%z CurrentPackage: Sleeping 23x8" name
endif
;---------------------------------------------------------------------------------------------------------------------------
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Warrior
If ( WeaponType == 4 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Warlock
If ( WeaponType == 0 ) && ( WeaponSkill >= 0.8900) && ( WeaponSkill <= 0.9100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
if WeaponType == 1
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.6400) && ( WeaponSkill <= 0.6600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.8900 ) && ( WeaponSkill <= 0.9100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.9900 ) && ( WeaponSkill <= 1.0100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 5 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( HelmetWeight > 0.90 )
NPC01.RemoveItem Helmet 1
Player.Additem Helmet 1
Endif
If ( ChestWeight > 4.90 )
NPC01.RemoveItem Chest 1
Player.Additem Chest 1
Endif
If ( GreavesWeight > 2.90)
NPC01.RemoveItem Greaves 1
Player.Additem Greaves 1
Endif
If ( GauntletsWeight > 0.90 )
NPC01.RemoveItem Gauntlets 1
Player.Additem Gauntlets 1
Endif
If ( BootsWeight > 1.40 )
NPC01.RemoveItem Boots 1
Player.Additem Boots 1
Endif
If ( ShieldWeight > 0.10 )
NPC01.RemoveItem Shield 1
Player.Additem Shield 1
endif
endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Thief
If ( WeaponType == 0 ) && ( WeaponSkill >= 0.8900) && ( WeaponSkill <= 0.9100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if WeaponType == 1
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.6400) && ( WeaponSkill <= 0.6600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.8900 ) && ( WeaponSkill <= 0.9100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.9900 ) && ( WeaponSkill <= 1.0100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 4 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( HelmetWeight > 2.50 )
NPC01.RemoveItem Helmet 1
Player.Additem Helmet 1
Endif
If ( ChestWeight > 12.90 )
NPC01.RemoveItem Chest 1
Player.Additem Chest 1
Endif
If ( GreavesWeight > 7.70 )
NPC01.RemoveItem Greaves 1
Player.Additem Greaves 1
Endif
If ( GauntletsWeight > 2.50 )
NPC01.RemoveItem Gauntlets 1
Player.Additem Gauntlets 1
Endif
If ( BootsWeight > 3.80 )
NPC01.RemoveItem Boots 1
Player.Additem Boots 1
Endif
If ( ShieldWeight > 0.10 )
NPC01.RemoveItem Shield 1
Player.Additem Shield 1
endif
endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Sorcerer
If ( WeaponType == 0 ) && ( WeaponSkill >= 0.4900) && ( WeaponSkill <= 0.5100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 0 ) && ( WeaponSkill >= 0.7400) && ( WeaponSkill <= 0.7600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 0 ) && ( WeaponSkill >= 0.8900) && ( WeaponSkill <= 0.9100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if WeaponType == 1
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.6400) && ( WeaponSkill <= 0.6600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.8900 ) && ( WeaponSkill <= 0.9100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 5 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
Endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Rogue
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.7900) && ( WeaponSkill <= 0.8100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.9900 ) && ( WeaponSkill <= 1.0100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 4 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 5 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( HelmetWeight > 7.90 )
NPC01.RemoveItem Helmet 1
Player.Additem Helmet 1
Endif
If ( ChestWeight > 35.90 )
NPC01.RemoveItem Chest 1
Player.Additem Chest 1
Endif
If ( GreavesWeight > 23.90 )
NPC01.RemoveItem Greaves 1
Player.Additem Greaves 1
Endif
If ( GauntletsWeight > 7.90 )
NPC01.RemoveItem Gauntlets 1
Player.Additem Gauntlets 1
Endif
If ( BootsWeight > 11.90 )
NPC01.RemoveItem Boots 1
Player.Additem Boots 1
Endif
Endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Priest
If ( WeaponType == 0 ) && ( WeaponSkill >= 0.4900) && ( WeaponSkill <= 0.5100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 0 ) && ( WeaponSkill >= 0.7400) && ( WeaponSkill <= 0.7600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 0 ) && ( WeaponSkill >= 0.8900) && ( WeaponSkill <= 0.9100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if WeaponType == 1
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.6400) && ( WeaponSkill <= 0.6600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.8900 ) && ( WeaponSkill <= 0.9100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.9900 ) && ( WeaponSkill <= 1.0100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 5 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
If ( HelmetWeight > 0.90 )
NPC01.RemoveItem Helmet 1
Player.Additem Helmet 1
Endif
If ( ChestWeight > 4.90 )
NPC01.RemoveItem Chest 1
Player.Additem Chest 1
Endif
If ( GreavesWeight > 2.90)
NPC01.RemoveItem Greaves 1
Player.Additem Greaves 1
Endif
If ( GauntletsWeight > 0.90 )
NPC01.RemoveItem Gauntlets 1
Player.Additem Gauntlets 1
Endif
If ( BootsWeight > 1.40 )
NPC01.RemoveItem Boots 1
Player.Additem Boots 1
Endif
If ( ShieldWeight > 0.10 )
NPC01.RemoveItem Shield 1
Player.Additem Shield 1
endif
endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Nightblade
If ( WeaponType == 0 ) && ( WeaponSkill >= 0.8900) && ( WeaponSkill <= 0.9100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if WeaponType == 1
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.6400) && ( WeaponSkill <= 0.6600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.7900) && ( WeaponSkill <= 0.8100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.8900 ) && ( WeaponSkill <= 0.9100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.9900 ) && ( WeaponSkill <= 1.0100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
If ( HelmetWeight > 0.90 )
NPC01.RemoveItem Helmet 1
Player.Additem Helmet 1
Endif
If ( ChestWeight > 4.90 )
NPC01.RemoveItem Chest 1
Player.Additem Chest 1
Endif
If ( GreavesWeight > 2.90)
NPC01.RemoveItem Greaves 1
Player.Additem Greaves 1
Endif
If ( GauntletsWeight > 0.90 )
NPC01.RemoveItem Gauntlets 1
Player.Additem Gauntlets 1
Endif
If ( BootsWeight > 1.40 )
NPC01.RemoveItem Boots 1
Player.Additem Boots 1
Endif
If ( ShieldWeight > 0.10 )
NPC01.RemoveItem Shield 1
Player.Additem Shield 1
endif
endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Mage
if ( WeaponType == 0 ) && ( WeaponSkill >= 0.7400) && ( WeaponSkill <= 0.7600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 0 ) && ( WeaponSkill >= 0.8900) && ( WeaponSkill <= 0.9100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if WeaponType == 1
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.6400) && ( WeaponSkill <= 0.6600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.7900) && ( WeaponSkill <= 0.8100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.8900 ) && ( WeaponSkill <= 0.9100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.9900 ) && ( WeaponSkill <= 1.0100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 5 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
If ( HelmetWeight > 0.90 )
NPC01.RemoveItem Helmet 1
Player.Additem Helmet 1
Endif
If ( ChestWeight > 4.90 )
NPC01.RemoveItem Chest 1
Player.Additem Chest 1
Endif
If ( GreavesWeight > 2.90)
NPC01.RemoveItem Greaves 1
Player.Additem Greaves 1
Endif
If ( GauntletsWeight > 0.90 )
NPC01.RemoveItem Gauntlets 1
Player.Additem Gauntlets 1
Endif
If ( BootsWeight > 1.40 )
NPC01.RemoveItem Boots 1
Player.Additem Boots 1
Endif
If ( ShieldWeight > 0.10 )
NPC01.RemoveItem Shield 1
Player.Additem Shield 1
endif
endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Knight
If ( WeaponType == 4 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 5 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
Endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Acrobat
If ( WeaponType == 0 ) && ( WeaponSkill >= 0.8900) && ( WeaponSkill <= 0.9100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if WeaponType == 1
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.8900 ) && ( WeaponSkill <= 0.9100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.9900 ) && ( WeaponSkill <= 1.0100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 4 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
If ( HelmetWeight > 0.90 )
NPC01.RemoveItem Helmet 1
Player.Additem Helmet 1
Endif
If ( ChestWeight > 4.90 )
NPC01.RemoveItem Chest 1
Player.Additem Chest 1
Endif
If ( GreavesWeight > 2.90)
NPC01.RemoveItem Greaves 1
Player.Additem Greaves 1
Endif
If ( GauntletsWeight > 0.90 )
NPC01.RemoveItem Gauntlets 1
Player.Additem Gauntlets 1
Endif
If ( BootsWeight > 1.40 )
NPC01.RemoveItem Boots 1
Player.Additem Boots 1
Endif
If ( ShieldWeight > 0.10 )
NPC01.RemoveItem Shield 1
Player.Additem Shield 1
endif
endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Assassin
If WeaponType == 1
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.6400) && ( WeaponSkill <= 0.6600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.7900) && ( WeaponSkill <= 0.8100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.8900 ) && ( WeaponSkill <= 0.9100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.9900 ) && ( WeaponSkill <= 1.0100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 4 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
If ( HelmetWeight > 2.50 )
NPC01.RemoveItem Helmet 1
Player.Additem Helmet 1
Endif
If ( ChestWeight > 12.90 )
NPC01.RemoveItem Chest 1
Player.Additem Chest 1
Endif
If ( GreavesWeight > 7.70 )
NPC01.RemoveItem Greaves 1
Player.Additem Greaves 1
Endif
If ( GauntletsWeight > 2.50 )
NPC01.RemoveItem Gauntlets 1
Player.Additem Gauntlets 1
Endif
If ( BootsWeight > 3.80 )
NPC01.RemoveItem Boots 1
Player.Additem Boots 1
Endif
If ( ShieldWeight > 0.10 )
NPC01.RemoveItem Shield 1
Player.Additem Shield 1
endif
endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Barbarian
If ( WeaponType == 0 ) && ( WeaponSkill >= 0.4900) && ( WeaponSkill <= 0.5100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 0 ) && ( WeaponSkill >= 0.7400) && ( WeaponSkill <= 0.7600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 0 ) && ( WeaponSkill >= 0.8900) && ( WeaponSkill <= 0.9100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.6400) && ( WeaponSkill <= 0.6600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.7900) && ( WeaponSkill <= 0.8100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 4 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 5 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
If ( HelmetWeight > 7.90 )
NPC01.RemoveItem Helmet 1
Player.Additem Helmet 1
Endif
If ( ChestWeight > 35.90 )
NPC01.RemoveItem Chest 1
Player.Additem Chest 1
Endif
If ( GreavesWeight > 23.90 )
NPC01.RemoveItem Greaves 1
Player.Additem Greaves 1
Endif
If ( GauntletsWeight > 7.90 )
NPC01.RemoveItem Gauntlets 1
Player.Additem Gauntlets 1
Endif
If ( BootsWeight > 11.90 )
NPC01.RemoveItem Boots 1
Player.Additem Boots 1
Endif
If ( ShieldWeight > 0.10 )
NPC01.RemoveItem Shield 1
Player.Additem Shield 1
endif
endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Bard
If WeaponType == 1
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
If ( WeaponType == 3 ) && ( WeaponSkill >= 0.8900 ) && ( WeaponSkill <= 0.9100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.9900 ) && ( WeaponSkill <= 1.0100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 5 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
If ( HelmetWeight > 7.90 )
NPC01.RemoveItem Helmet 1
Player.Additem Helmet 1
Endif
If ( ChestWeight > 35.90 )
NPC01.RemoveItem Chest 1
Player.Additem Chest 1
Endif
If ( GreavesWeight > 23.90 )
NPC01.RemoveItem Greaves 1
Player.Additem Greaves 1
Endif
If ( GauntletsWeight > 7.90 )
NPC01.RemoveItem Gauntlets 1
Player.Additem Gauntlets 1
Endif
If ( BootsWeight > 11.90 )
NPC01.RemoveItem Boots 1
Player.Additem Boots 1
Endif
Endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Monk
If ( WeaponType == 0 ) && ( WeaponSkill >= 0.4900) && ( WeaponSkill <= 0.5100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 0 ) && ( WeaponSkill >= 0.7400) && ( WeaponSkill <= 0.7600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 0 ) && ( WeaponSkill >= 0.8900) && ( WeaponSkill <= 0.9100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If WeaponType == 1
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 2 ) && ( WeaponSkill >= 0.6400) && ( WeaponSkill <= 0.6600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 3 ) && ( WeaponSkill >= 0.8900 ) && ( WeaponSkill <= 0.9100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 5 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
If ( HelmetWeight > 0.90 )
NPC01.RemoveItem Helmet 1
Player.Additem Helmet 1
Endif
If ( ChestWeight > 4.90 )
NPC01.RemoveItem Chest 1
Player.Additem Chest 1
Endif
If ( GreavesWeight > 2.90 )
NPC01.RemoveItem Greaves 1
Player.Additem Greaves 1
Endif
If ( GauntletsWeight > 0.90 )
NPC01.RemoveItem Gauntlets 1
Player.Additem Gauntlets 1
Endif
If ( BootsWeight > 1.40 )
NPC01.RemoveItem Boots 1
Player.Additem Boots 1
Endif
If ( ShieldWeight > 0.10 )
NPC01.RemoveItem Shield 1
Player.Additem Shield 1
endif
endif
END
;------------------------------------------------------------------------------------------------------------------------------------------------
ref NPC01
string_var name
short NPC01Alchemy
short NPC01Herbalism
short AlchemyTurn
short NPC01Race
short NPC01Class
ref NPC01ClassSelected
short NPC01Trigger1
short NPC01Trigger2
short NPC01Trigger3
short NPC01Birthsign
ref Weapon
ref Helmet
ref Chest
ref Greaves
ref Gauntlets
ref Boots
ref Shield
short WeaponType
float HelmetWeight
float ChestWeight
float GreavesWeight
float GauntletsWeight
float BootsWeight
float ShieldWeight
float WeaponSkill
float fQuestDelayTime
;------------------------------------------------------------------------------------------------------------------------------------------------
begin Gamemode
Set NPC01 to GetSelf
Set name to NPC01.GetName
Set NPC01Race to NPC01.GetRace
set NPC01Trigger2 to 0
set NPC01Trigger3 to 0
set NPC01 to GetSelf
set Weapon to NPC01.GetEquippedObject 16
set Weapontype to GetWeaponType Weapon
set WeaponSkill to GetWeaponReach Weapon
set Helmet to NPC01.GetEquippedObject 0
set Chest to NPC01.GetEquippedObject 2
set Greaves to NPC01.GetEquippedObject 3
set Gauntlets to NPC01.GetEquippedObject 4
set Boots to NPC01.GetEquippedObject 5
set Shield to NPC01.GetEquippedObject 13
set HelmetWeight to NPC01.GetWeight Helmet
set ChestWeight to NPC01.GetWeight Chest
set GreavesWeight to NPC01.GetWeight Greaves
set GauntletsWeight to NPC01.GetWeight Gauntlets
set BootsWeight to NPC01.GetWeight Boots
set ShieldWeight to NPC01.GetWeight Shield
if (NPC01Trigger1 == 0)
Set NPC01Class to RAND 1 14
Set NPC01BirthSign to RAND 1 13
Set NPC01Trigger1 to 1
Endif
;------------------------------------------------------------------------------------------------------------------------------------------------
if (NPC01Trigger2 == 0)
Player.AddSpell NPCStats
If NPC01Class == 1
NPC01.SetClass Warrior
Elseif NPC01Class == 2
NPC01.SetClass Warlock
elseIf NPC01Class == 3
NPC01.SetClass Thief
elseIf NPC01Class == 4
NPC01.SetClass Sorcerer
elseIf NPC01Class == 5
NPC01.SetClass Rogue
elseIf NPC01Class == 6
NPC01.SetClass Priest
elseIf NPC01Class == 7
NPC01.SetClass Nightblade
elseIf NPC01Class == 8
NPC01.SetClass Mage
elseIf NPC01Class == 9
NPC01.SetClass Knight
elseIf NPC01Class == 10
NPC01.SetClass Acrobat
elseIf NPC01Class == 11
NPC01.SetClass Assassin
elseIf NPC01Class == 12
NPC01.SetClass Barbarian
elseIf NPC01Class == 13
NPC01.SetClass Bard
elseIf NPC01Class == 14
NPC01.SetClass Monk
Endif
Set NPC01Trigger2 to 2
Set NPC01ClassSelected to NPC01.GetClass
endif
;------------------------------------------------------------------------------------------------------------------------------------------------
if (NPC01Trigger3 == 0)
if NPC01.GetItemCount BirthSignTrigger == 0
;Script removes any Birthsign stones from NPC's inventory before adding a new stone to avoid stuck of them.
NPC01.removeitem BSBirthApprentice 9999
NPC01.removeitem BSBirthAtronach 9999
NPC01.removeitem BSBirthLady 9999
NPC01.removeitem BSBirthLord 9999
NPC01.removeitem BSBirthLover 9999
NPC01.removeitem BSBirthMage 9999
NPC01.removeitem BSBirthRitual 9999
NPC01.removeitem BSBirthSerpent 9999
NPC01.removeitem BSBirthShadow 9999
NPC01.removeitem BSBirthSteed 9999
NPC01.removeitem BSBirthThief 9999
NPC01.removeitem BSBirthTower 9999
NPC01.removeitem BSBirthWarrior 9999
NPC01.Additem BirthSignTrigger 1
If NPC01Birthsign == 1
NPC01.Addspell BSNPCApprentice
NPC01.Additem BSBirthApprentice 1
elseIf NPC01Birthsign == 2
NPC01.Addspell BSNPCAtronach
NPC01.Additem BSBirthAtronach 1
elseIf NPC01Birthsign == 3
NPC01.Addspell BSNPCLadyBlessing
NPC01.Additem BSBirthLady 1
elseIf NPC01Birthsign == 4
NPC01.Addspell BSNPCLordBloodoftheNorth
NPC01.Addspell BSNPCLordTrollkin
NPC01.Additem BSBirthLord 1
elseIf NPC01Birthsign == 5
NPC01.Addspell BSNPCLoverKiss
NPC01.Additem BSBirthLover 1
elseIf NPC01Birthsign == 6
NPC01.Addspell BSNPCMage
NPC01.Additem BSBirthMage 1
elseIf NPC01Birthsign == 7
NPC01.Addspell BSNPCRitualBlessedWord
NPC01.Addspell BSNPCRitualMaraGift
NPC01.Additem BSBirthRitual 1
elseIf NPC01Birthsign == 8
NPC01.Addspell BSNPCSerpent
NPC01.Additem BSBirthSerpent 1
elseIf NPC01Birthsign == 9
NPC01.Addspell BSNPCShadow
NPC01.Additem BSBirthShadow 1
elseIf NPC01Birthsign == 10
NPC01.Addspell BSNPCSteed
NPC01.Additem BSBirthSteed 1
elseIf NPC01Birthsign == 11
NPC01.Addspell BSNPCThief
NPC01.Additem BSBirthThief 1
elseIf NPC01Birthsign == 12
NPC01.Addspell BSNPCTower
NPC01.Addspell BSNPCTowerWarden
NPC01.Additem BSBirthTower 1
elseIf NPC01Birthsign == 13
NPC01.Addspell BSNPCWarrior
NPC01.Additem BSBirthWarrior 1
endif
Endif
Set NPC01Trigger3 to 1
Endif
;------------------------------------------------------------------------------------------------------------------------------------------------
if getIsCurrentPackage NPCWatchingPreachBench2Sunday08x3 == 1
PrintToConsole "%z CurrentPackage: Sunday Preaching 8x3" name
endif
;------------------------------------------------------------------------------------------------------------------------------------------------
if getIsCurrentPackage NPCPraying7x1 == 1
PrintToConsole "%z CurrentPackage: Praying 7x1" name
endif
;------------------------------------------------------------------------------------------------------------------------------------------------
if getIsCurrentPackage NPCTrainingA10x1 == 1
if NPC01.GetItemCount WeapIronDagger == 0
PrintToConsole "%z CurrentPackage: Training(A) 10x1" name
NPC01.additem WeapIronDagger 1
endif
endif
if getIsCurrentPackage NPCTrainingA10x1 == 0
if NPC01.GetItemCount WeapIronDagger > 0
NPC01.removeitem WeapIronDagger 9999
endif
endif
;------------------------------------------------------------------------------------------------------------------------------------------------
if getIsCurrentPackage NPCEat14x2 == 1
if NPC01.GetItemCount CheeseWedge == 0
PrintToConsole "%z CurrentPackage: Eating 14x2" name
NPC01.additem CheeseWedge 1
endif
endif
if getIsCurrentPackage NPCEat14x2 == 0
if NPC01.GetItemCount CheeseWedge > 0
NPC01.removeitem CheeseWedge 9999
endif
endif
;------------------------------------------------------------------------------------------------------------------------------------------------
if getIsCurrentPackage NPCReading17x1 == 1
if NPC01.GetItemCount Book1CheapGuideSkingrad == 0
PrintToConsole "%z CurrentPackage: Reading 17x1" name
NPC01.additem Book1CheapGuideSkingrad 1
endif
endif
if getIsCurrentPackage NPCReading17x1 == 0
if NPC01.GetItemCount Book1CheapGuideSkingrad > 0
NPC01.removeitem Book1CheapGuideSkingrad 9999
endif
endif
;------------------------------------------------------------------------------------------------------------------------------------------------
if getIsCurrentPackage NPCEat20x3 == 1
if NPC01.GetItemCount Breadloaf == 0
PrintToConsole "%z CurrentPackage: Eating 20x3" name
NPC01.additem Breadloaf 1
endif
endif
if getIsCurrentPackage NPCEat20x3 == 0
if NPC01.GetItemCount Breadloaf > 0
NPC01.removeitem Breadloaf 9999
endif
endif
;------------------------------------------------------------------------------------------------------------------------------------------------
if getIsCurrentPackage NPCSleep23x8 == 1
PrintToConsole "%z CurrentPackage: Sleeping 23x8" name
endif
;---------------------------------------------------------------------------------------------------------------------------
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Warrior
If ( WeaponType == 4 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Warlock
If ( WeaponType == 0 ) && ( WeaponSkill >= 0.8900) && ( WeaponSkill <= 0.9100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
if WeaponType == 1
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.6400) && ( WeaponSkill <= 0.6600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.8900 ) && ( WeaponSkill <= 0.9100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.9900 ) && ( WeaponSkill <= 1.0100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 5 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( HelmetWeight > 0.90 )
NPC01.RemoveItem Helmet 1
Player.Additem Helmet 1
Endif
If ( ChestWeight > 4.90 )
NPC01.RemoveItem Chest 1
Player.Additem Chest 1
Endif
If ( GreavesWeight > 2.90)
NPC01.RemoveItem Greaves 1
Player.Additem Greaves 1
Endif
If ( GauntletsWeight > 0.90 )
NPC01.RemoveItem Gauntlets 1
Player.Additem Gauntlets 1
Endif
If ( BootsWeight > 1.40 )
NPC01.RemoveItem Boots 1
Player.Additem Boots 1
Endif
If ( ShieldWeight > 0.10 )
NPC01.RemoveItem Shield 1
Player.Additem Shield 1
endif
endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Thief
If ( WeaponType == 0 ) && ( WeaponSkill >= 0.8900) && ( WeaponSkill <= 0.9100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if WeaponType == 1
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.6400) && ( WeaponSkill <= 0.6600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.8900 ) && ( WeaponSkill <= 0.9100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.9900 ) && ( WeaponSkill <= 1.0100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 4 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( HelmetWeight > 2.50 )
NPC01.RemoveItem Helmet 1
Player.Additem Helmet 1
Endif
If ( ChestWeight > 12.90 )
NPC01.RemoveItem Chest 1
Player.Additem Chest 1
Endif
If ( GreavesWeight > 7.70 )
NPC01.RemoveItem Greaves 1
Player.Additem Greaves 1
Endif
If ( GauntletsWeight > 2.50 )
NPC01.RemoveItem Gauntlets 1
Player.Additem Gauntlets 1
Endif
If ( BootsWeight > 3.80 )
NPC01.RemoveItem Boots 1
Player.Additem Boots 1
Endif
If ( ShieldWeight > 0.10 )
NPC01.RemoveItem Shield 1
Player.Additem Shield 1
endif
endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Sorcerer
If ( WeaponType == 0 ) && ( WeaponSkill >= 0.4900) && ( WeaponSkill <= 0.5100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 0 ) && ( WeaponSkill >= 0.7400) && ( WeaponSkill <= 0.7600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 0 ) && ( WeaponSkill >= 0.8900) && ( WeaponSkill <= 0.9100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if WeaponType == 1
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.6400) && ( WeaponSkill <= 0.6600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.8900 ) && ( WeaponSkill <= 0.9100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 5 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
Endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Rogue
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.7900) && ( WeaponSkill <= 0.8100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.9900 ) && ( WeaponSkill <= 1.0100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 4 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 5 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( HelmetWeight > 7.90 )
NPC01.RemoveItem Helmet 1
Player.Additem Helmet 1
Endif
If ( ChestWeight > 35.90 )
NPC01.RemoveItem Chest 1
Player.Additem Chest 1
Endif
If ( GreavesWeight > 23.90 )
NPC01.RemoveItem Greaves 1
Player.Additem Greaves 1
Endif
If ( GauntletsWeight > 7.90 )
NPC01.RemoveItem Gauntlets 1
Player.Additem Gauntlets 1
Endif
If ( BootsWeight > 11.90 )
NPC01.RemoveItem Boots 1
Player.Additem Boots 1
Endif
Endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Priest
If ( WeaponType == 0 ) && ( WeaponSkill >= 0.4900) && ( WeaponSkill <= 0.5100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 0 ) && ( WeaponSkill >= 0.7400) && ( WeaponSkill <= 0.7600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 0 ) && ( WeaponSkill >= 0.8900) && ( WeaponSkill <= 0.9100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if WeaponType == 1
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.6400) && ( WeaponSkill <= 0.6600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.8900 ) && ( WeaponSkill <= 0.9100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.9900 ) && ( WeaponSkill <= 1.0100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 5 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
If ( HelmetWeight > 0.90 )
NPC01.RemoveItem Helmet 1
Player.Additem Helmet 1
Endif
If ( ChestWeight > 4.90 )
NPC01.RemoveItem Chest 1
Player.Additem Chest 1
Endif
If ( GreavesWeight > 2.90)
NPC01.RemoveItem Greaves 1
Player.Additem Greaves 1
Endif
If ( GauntletsWeight > 0.90 )
NPC01.RemoveItem Gauntlets 1
Player.Additem Gauntlets 1
Endif
If ( BootsWeight > 1.40 )
NPC01.RemoveItem Boots 1
Player.Additem Boots 1
Endif
If ( ShieldWeight > 0.10 )
NPC01.RemoveItem Shield 1
Player.Additem Shield 1
endif
endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Nightblade
If ( WeaponType == 0 ) && ( WeaponSkill >= 0.8900) && ( WeaponSkill <= 0.9100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if WeaponType == 1
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.6400) && ( WeaponSkill <= 0.6600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.7900) && ( WeaponSkill <= 0.8100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.8900 ) && ( WeaponSkill <= 0.9100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.9900 ) && ( WeaponSkill <= 1.0100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
If ( HelmetWeight > 0.90 )
NPC01.RemoveItem Helmet 1
Player.Additem Helmet 1
Endif
If ( ChestWeight > 4.90 )
NPC01.RemoveItem Chest 1
Player.Additem Chest 1
Endif
If ( GreavesWeight > 2.90)
NPC01.RemoveItem Greaves 1
Player.Additem Greaves 1
Endif
If ( GauntletsWeight > 0.90 )
NPC01.RemoveItem Gauntlets 1
Player.Additem Gauntlets 1
Endif
If ( BootsWeight > 1.40 )
NPC01.RemoveItem Boots 1
Player.Additem Boots 1
Endif
If ( ShieldWeight > 0.10 )
NPC01.RemoveItem Shield 1
Player.Additem Shield 1
endif
endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Mage
if ( WeaponType == 0 ) && ( WeaponSkill >= 0.7400) && ( WeaponSkill <= 0.7600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 0 ) && ( WeaponSkill >= 0.8900) && ( WeaponSkill <= 0.9100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if WeaponType == 1
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.6400) && ( WeaponSkill <= 0.6600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.7900) && ( WeaponSkill <= 0.8100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.8900 ) && ( WeaponSkill <= 0.9100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.9900 ) && ( WeaponSkill <= 1.0100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 5 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
If ( HelmetWeight > 0.90 )
NPC01.RemoveItem Helmet 1
Player.Additem Helmet 1
Endif
If ( ChestWeight > 4.90 )
NPC01.RemoveItem Chest 1
Player.Additem Chest 1
Endif
If ( GreavesWeight > 2.90)
NPC01.RemoveItem Greaves 1
Player.Additem Greaves 1
Endif
If ( GauntletsWeight > 0.90 )
NPC01.RemoveItem Gauntlets 1
Player.Additem Gauntlets 1
Endif
If ( BootsWeight > 1.40 )
NPC01.RemoveItem Boots 1
Player.Additem Boots 1
Endif
If ( ShieldWeight > 0.10 )
NPC01.RemoveItem Shield 1
Player.Additem Shield 1
endif
endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Knight
If ( WeaponType == 4 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 5 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
Endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Acrobat
If ( WeaponType == 0 ) && ( WeaponSkill >= 0.8900) && ( WeaponSkill <= 0.9100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if WeaponType == 1
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.8900 ) && ( WeaponSkill <= 0.9100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.9900 ) && ( WeaponSkill <= 1.0100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 4 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
If ( HelmetWeight > 0.90 )
NPC01.RemoveItem Helmet 1
Player.Additem Helmet 1
Endif
If ( ChestWeight > 4.90 )
NPC01.RemoveItem Chest 1
Player.Additem Chest 1
Endif
If ( GreavesWeight > 2.90)
NPC01.RemoveItem Greaves 1
Player.Additem Greaves 1
Endif
If ( GauntletsWeight > 0.90 )
NPC01.RemoveItem Gauntlets 1
Player.Additem Gauntlets 1
Endif
If ( BootsWeight > 1.40 )
NPC01.RemoveItem Boots 1
Player.Additem Boots 1
Endif
If ( ShieldWeight > 0.10 )
NPC01.RemoveItem Shield 1
Player.Additem Shield 1
endif
endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Assassin
If WeaponType == 1
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.6400) && ( WeaponSkill <= 0.6600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.7900) && ( WeaponSkill <= 0.8100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.8900 ) && ( WeaponSkill <= 0.9100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.9900 ) && ( WeaponSkill <= 1.0100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 4 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
If ( HelmetWeight > 2.50 )
NPC01.RemoveItem Helmet 1
Player.Additem Helmet 1
Endif
If ( ChestWeight > 12.90 )
NPC01.RemoveItem Chest 1
Player.Additem Chest 1
Endif
If ( GreavesWeight > 7.70 )
NPC01.RemoveItem Greaves 1
Player.Additem Greaves 1
Endif
If ( GauntletsWeight > 2.50 )
NPC01.RemoveItem Gauntlets 1
Player.Additem Gauntlets 1
Endif
If ( BootsWeight > 3.80 )
NPC01.RemoveItem Boots 1
Player.Additem Boots 1
Endif
If ( ShieldWeight > 0.10 )
NPC01.RemoveItem Shield 1
Player.Additem Shield 1
endif
endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Barbarian
If ( WeaponType == 0 ) && ( WeaponSkill >= 0.4900) && ( WeaponSkill <= 0.5100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 0 ) && ( WeaponSkill >= 0.7400) && ( WeaponSkill <= 0.7600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 0 ) && ( WeaponSkill >= 0.8900) && ( WeaponSkill <= 0.9100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.6400) && ( WeaponSkill <= 0.6600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 2 ) && ( WeaponSkill >= 0.7900) && ( WeaponSkill <= 0.8100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 4 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 5 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
If ( HelmetWeight > 7.90 )
NPC01.RemoveItem Helmet 1
Player.Additem Helmet 1
Endif
If ( ChestWeight > 35.90 )
NPC01.RemoveItem Chest 1
Player.Additem Chest 1
Endif
If ( GreavesWeight > 23.90 )
NPC01.RemoveItem Greaves 1
Player.Additem Greaves 1
Endif
If ( GauntletsWeight > 7.90 )
NPC01.RemoveItem Gauntlets 1
Player.Additem Gauntlets 1
Endif
If ( BootsWeight > 11.90 )
NPC01.RemoveItem Boots 1
Player.Additem Boots 1
Endif
If ( ShieldWeight > 0.10 )
NPC01.RemoveItem Shield 1
Player.Additem Shield 1
endif
endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Bard
If WeaponType == 1
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
If ( WeaponType == 3 ) && ( WeaponSkill >= 0.8900 ) && ( WeaponSkill <= 0.9100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
if ( WeaponType == 3 ) && ( WeaponSkill >= 0.9900 ) && ( WeaponSkill <= 1.0100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 5 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
If ( HelmetWeight > 7.90 )
NPC01.RemoveItem Helmet 1
Player.Additem Helmet 1
Endif
If ( ChestWeight > 35.90 )
NPC01.RemoveItem Chest 1
Player.Additem Chest 1
Endif
If ( GreavesWeight > 23.90 )
NPC01.RemoveItem Greaves 1
Player.Additem Greaves 1
Endif
If ( GauntletsWeight > 7.90 )
NPC01.RemoveItem Gauntlets 1
Player.Additem Gauntlets 1
Endif
If ( BootsWeight > 11.90 )
NPC01.RemoveItem Boots 1
Player.Additem Boots 1
Endif
Endif
;---------------------------------------------------------------------------------------------------------------------------
If NPC01ClassSelected == Monk
If ( WeaponType == 0 ) && ( WeaponSkill >= 0.4900) && ( WeaponSkill <= 0.5100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
if ( WeaponType == 0 ) && ( WeaponSkill >= 0.7400) && ( WeaponSkill <= 0.7600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 0 ) && ( WeaponSkill >= 0.8900) && ( WeaponSkill <= 0.9100)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If WeaponType == 1
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 2 ) && ( WeaponSkill >= 0.6400) && ( WeaponSkill <= 0.6600)
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 3 ) && ( WeaponSkill >= 0.8900 ) && ( WeaponSkill <= 0.9100 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
endif
If ( WeaponType == 5 )
NPC01.RemoveItem weapon 1
Player.Additem weapon 1
Endif
If ( HelmetWeight > 0.90 )
NPC01.RemoveItem Helmet 1
Player.Additem Helmet 1
Endif
If ( ChestWeight > 4.90 )
NPC01.RemoveItem Chest 1
Player.Additem Chest 1
Endif
If ( GreavesWeight > 2.90 )
NPC01.RemoveItem Greaves 1
Player.Additem Greaves 1
Endif
If ( GauntletsWeight > 0.90 )
NPC01.RemoveItem Gauntlets 1
Player.Additem Gauntlets 1
Endif
If ( BootsWeight > 1.40 )
NPC01.RemoveItem Boots 1
Player.Additem Boots 1
Endif
If ( ShieldWeight > 0.10 )
NPC01.RemoveItem Shield 1
Player.Additem Shield 1
endif
endif
END