1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522 |
- --[[
- Script Name : SpawnScripts/Generic/ClassSkillCheck.lua
- Script Author : Dorbin
- Script Date : 2023.05.23 12:05:54
- Script Purpose :
- :
- --]]
- local FIGHTER = 1
- local WARRIOR =2
- local GUARDIAN= 3
- local BERSERKER = 4
- local BRAWLER = 5
- local MONK = 6
- local BRUISER= 7
- local CRUSADER = 8
- local SHADOWKNIGHT = 9
- local PALADIN = 10
- local PRIEST = 11
- local CLERIC = 12
- local TEMPLAR = 13
- local INQUISITOR = 14
- local DRUID = 15
- local WARDEN = 16
- local FURY = 17
- local SHAMAN = 18
- local MYSTIC = 19
- local DEFILER = 20
- local MAGE = 21
- local SORCERER = 22
- local WIZARD = 23
- local WARLOCK = 24
- local ENCHANTER = 25
- local ILLUSIONIST = 26
- local COERCER = 27
- local SUMMONER = 28
- local CONJUROR = 29
- local NECROMANCER = 30
- local SCOUT = 31
- local ROGUE = 32
- local SWASHBUCKLER = 33
- local BRIGAND = 34
- local BARD = 35
- local TROUBADOR = 36
- local DIRGE = 37
- local PREDATOR = 38
- local RANGER = 39
- local ASSASSIN = 40
- local ANIMALIST = 41
- local BEASTLORD = 42
- local SHAPER = 43
- local CHANNELER = 44
- function SkillCheck(NPC, Spawn)
- GeneralSkills(NPC,Spawn)
- AddTimer(NPC,500,"CastingSkills",1,Spawn)
- AddTimer(NPC,1000,"GearSkills",1,Spawn)
- AddTimer(NPC,1500,"ClassSkills",1,Spawn)
- end
- -- GENERAL SKILLS --
- function GeneralSkills(NPC, Spawn)
- local level = GetLevel(Spawn)*5
- --Defense
- if not HasSkill(Spawn, 609880714) then -- Defense
- AddSkill(Spawn, 609880714,30,level)
- SendMessage(Spawn, "You have learned the Defense skill")
- end
- --Magic Affinity
- if not HasSkill(Spawn, 2072844078) then -- Magic Affinity
- AddSkill(Spawn, 2072844078,1,level)
- SendMessage(Spawn, "You have learned the Magic Affinity skill")
- end
- --Spell Avoidance
- if not HasSkill(Spawn, 2383540775) then -- Spell Avoidance
- AddSkill(Spawn, 2383540775,30,level)
- SendMessage(Spawn, "You have learned the Spell Avoidance skill")
- end
- --Very Light Armor
- if not HasSkill(Spawn, 3539032716) then -- Very Light Armor
- AddSkill(Spawn, 3539032716,1,level)
- SendMessage(Spawn, "You are now more proficient with Very Light Armor")
- end
- -- Alcohol Tolerance
- if not HasSkill(Spawn, 4250045746) and not GetClass(Spawn) == 0 then -- Alcohol Tolerance
- AddSkill(Spawn, 4250045746,1,level)
- SendMessage(Spawn, "You have learned the Alcohol Tolerance skill")
- elseif HasSkill(Spawn,4250045746) then-- Alcohol Tolerance
- RemoveSkill(Spawn, 4250045746)
- end
- -- Swimming
- if not HasSkill(Spawn, 2037831821) and not GetClass(Spawn) == 0 then -- Swimming
- AddSkill(Spawn, 2037831821,1,level)
- SendMessage(Spawn, "You have learned the Swimming skill")
- elseif HasSkill(Spawn,2037831821) then-- Swimming
- RemoveSkill(Spawn, 2037831821)
- end
- --Focus
- if not HasSkill(Spawn, 2638198038) and not GetClass(Spawn) == 0 then -- Focus
- AddSkill(Spawn, 2638198038,1,level)
- SendMessage(Spawn, "You have learned the Focus skill")
- elseif HasSkill(Spawn,2638198038) then-- Focus
- RemoveSkill(Spawn, 2638198038)
- end
- -- Parry
- if not HasSkill(Spawn, 540022425) then -- Parry
- AddSkill(Spawn, 540022425,1,level)
- SendMessage(Spawn, "You have learned the Parry skill")
- end
- --Safe Fall (Warrior, Brawler, Scouts Only)
- if GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == BRAWLER or
- GetClass (Spawn) == MONK or
- GetClass (Spawn) == BRUISER or
- GetClass (Spawn) == SCOUT or
- GetClass (Spawn) == ROGUE or
- GetClass (Spawn) == SWASHBUCKLER or
- GetClass (Spawn) == BRIGAND or
- GetClass (Spawn) == BARD or
- GetClass (Spawn) == TROUBADOR or
- GetClass (Spawn) == DIRGE or
- GetClass (Spawn) == PREDATOR or
- GetClass (Spawn) == RANGER or
- GetClass (Spawn) == ASSASSIN then
- if not HasSkill(Spawn, 2638198038)then -- Safe Fall
- AddSkill(Spawn, 2638198038,1,level)
- SendMessage(Spawn, "You have learned the Safe Fall skill")
- elseif HasSkill(Spawn,2638198038) then-- Safe Fall
- RemoveSkill(Spawn, 2638198038)
- end
- end
- --Deflection (Brawlers Only)
- if GetClass (Spawn) == BRAWLER or
- GetClass (Spawn) == MONK or
- GetClass (Spawn) == BRUISER then
- if not HasSkill(Spawn, 3850377186)then -- Deflection
- AddSkill(Spawn, 3850377186,1,level)
- SendMessage(Spawn, "You have learned the Deflection skill")
- elseif HasSkill(Spawn,3850377186) then-- Deflection
- RemoveSkill(Spawn, 3850377186)
- end
- end
- --Disarm Traps (Scouts Only)
- if GetClass (Spawn) == SCOUT or
- GetClass (Spawn) == ROGUE or
- GetClass (Spawn) == SWASHBUCKLER or
- GetClass (Spawn) == BRIGAND or
- GetClass (Spawn) == BARD or
- GetClass (Spawn) == TROUBADOR or
- GetClass (Spawn) == DIRGE or
- GetClass (Spawn) == PREDATOR or
- GetClass (Spawn) == RANGER or
- GetClass (Spawn) == ASSASSIN then
- if not HasSkill(Spawn, 2200201799)then -- Disarm Traps
- AddSkill(Spawn, 2200201799,1,level)
- SendMessage(Spawn, "You have learned the Disarm Traps skill")
- elseif HasSkill(Spawn,2200201799) then-- Disarm Traps
- RemoveSkill(Spawn, 2200201799)
- end
- end
- -- HARVESTING SKILLS --
-
- local level = GetLevel(Spawn)*5
- if HasSkill(Spawn, 1970131346) then -- Transmuting
- RemoveSkill(Spawn, 1970131346)
- end
- if not HasSkill(Spawn, 3659699625) and GetClass(Spawn)~=0 then -- Mining
- AddSkill(Spawn, 3659699625,1,level)
- end
- if not HasSkill(Spawn, 688591146) and GetClass(Spawn)~=0 then -- Foresting
- AddSkill(Spawn, 688591146,1,level)
- end
- if not HasSkill(Spawn, 1048513601) and GetClass(Spawn)~=0 then -- Gathering
- AddSkill(Spawn, 1048513601,1,level)
- end
- if not HasSkill(Spawn, 4158365743) and GetClass(Spawn)~=0 then -- Trapping
- AddSkill(Spawn, 4158365743,1,level)
- end
- if not HasSkill(Spawn, 2319450178) and GetClass(Spawn)~=0 then -- Fishing
- AddSkill(Spawn, 2319450178,1,level)
- end
- end
-
-
- function CastingSkills(NPC, Spawn)
- local level = GetLevel(Spawn)*5
-
- -- CASTING SKILLS --
- if GetClass(Spawn) == CRUSADER or
- GetClass (Spawn) == PALADIN or
- GetClass (Spawn) == SHADOWKNIGHT or
- GetClass (Spawn) == BARD or
- GetClass (Spawn) == TROUBADOR or
- GetClass (Spawn) == DIRGE or
- GetClass (Spawn) == PRIEST or
- GetClass (Spawn) == CLERIC or
- GetClass (Spawn) == TEMPLAR or
- GetClass (Spawn) == INQUISITOR or
- GetClass (Spawn) == DRUID or
- GetClass (Spawn) == WARDEN or
- GetClass (Spawn) == FURY or
- GetClass (Spawn) == SHAMAN or
- GetClass (Spawn) == MYSTIC or
- GetClass (Spawn) == DEFILER or
- GetClass (Spawn) == MAGE or
- GetClass (Spawn) == SORCERER or
- GetClass (Spawn) == WIZARD or
- GetClass (Spawn) == WARLOCK or
- GetClass (Spawn) == ENCHANTER or
- GetClass (Spawn) == ILLUSIONIST or
- GetClass (Spawn) == COERCER or
- GetClass (Spawn) == SUMMONER or
- GetClass (Spawn) == CONJUROR or
- GetClass (Spawn) == NECROMANCER then
-
- if not HasSkill(Spawn, 613995491) then -- Disruption
- AddSkill(Spawn, 613995491,1,level)
- SendMessage(Spawn, "You have learned the Disruption skill")
- end
- if not HasSkill(Spawn, 366253016) then -- Ministration
- AddSkill(Spawn, 366253016,1,level)
- SendMessage(Spawn, "You have learned the Ministration skill")
- end
- if not HasSkill(Spawn, 3587918036) then -- Ordination
- AddSkill(Spawn, 3587918036,1,level)
- SendMessage(Spawn, "You have learned the Ordination skill")
- end
- if not HasSkill(Spawn, 882983852) then -- Subjugation
- AddSkill(Spawn, 882983852,1,level)
- SendMessage(Spawn, "You have learned the Subjugation skill")
- end
- else
-
- if HasSkill(Spawn, 613995491) then-- Disruption
- RemoveSkill(Spawn, 613995491)
- end
- if HasSkill(Spawn,366253016) then-- Ministration
- RemoveSkill(Spawn, 366253016)
- end
- if HasSkill(Spawn,3587918036) then-- Ordination
- RemoveSkill(Spawn, 3587918036)
- end
- if HasSkill(Spawn,882983852) then-- Subjugation
- RemoveSkill(Spawn, 882983852)
- end
- end
- -- DAMAGE STYLE PROFICIENCY SKILLS --
- --CRUSHING
- if GetClass (Spawn) == FIGHTER or
- GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == BRAWLER or
- GetClass (Spawn) == MONK or
- GetClass (Spawn) == BRUISER or
- GetClass (Spawn) == CRUSADER or
- GetClass (Spawn) == PALADIN or
- GetClass (Spawn) == SHADOWKNIGHT or
- GetClass (Spawn) == PRIEST or
- GetClass (Spawn) == CLERIC or
- GetClass (Spawn) == TEMPLAR or
- GetClass (Spawn) == INQUISITOR or
- GetClass (Spawn) == DRUID or
- GetClass (Spawn) == WARDEN or
- GetClass (Spawn) == FURY or
- GetClass (Spawn) == SHAMAN or
- GetClass (Spawn) == MYSTIC or
- GetClass (Spawn) == DEFILER or
- GetClass (Spawn) == MAGE or
- GetClass (Spawn) == SORCERER or
- GetClass (Spawn) == WIZARD or
- GetClass (Spawn) == WARLOCK or
- GetClass (Spawn) == ENCHANTER or
- GetClass (Spawn) == ILLUSIONIST or
- GetClass (Spawn) == COERCER or
- GetClass (Spawn) == SUMMONER or
- GetClass (Spawn) == CONJUROR or
- GetClass (Spawn) == NECROMANCER then
- if not HasSkill(Spawn, 3421494576) then -- CRUSHING
- AddSkill(Spawn, 3421494576,1,level)
- SendMessage(Spawn, "You have learned the Crushing skill")
- end
- elseif HasSkill(Spawn, 3421494576) then -- CRUSHING
- RemoveSkill(Spawn, 2638198038)
- end
- --SLASHING
- if GetClass (Spawn) == FIGHTER or
- GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == BRAWLER or
- GetClass (Spawn) == MONK or
- GetClass (Spawn) == BRUISER or
- GetClass (Spawn) == CRUSADER or
- GetClass (Spawn) == PALADIN or
- GetClass (Spawn) == SHADOWKNIGHT or
- GetClass (Spawn) == DRUID or
- GetClass (Spawn) == WARDEN or
- GetClass (Spawn) == FURY or
- GetClass (Spawn) == SCOUT or
- GetClass (Spawn) == ROGUE or
- GetClass (Spawn) == SWASHBUCKLER or
- GetClass (Spawn) == BRIGAND or
- GetClass (Spawn) == BARD or
- GetClass (Spawn) == TROUBADOR or
- GetClass (Spawn) == DIRGE or
- GetClass (Spawn) == PREDATOR or
- GetClass (Spawn) == RANGER or
- GetClass (Spawn) == ASSASSIN then
- if not HasSkill(Spawn, 418532101) then -- SLASHING
- AddSkill(Spawn, 418532101,1,level)
- SendMessage(Spawn, "You have learned the Slashing skill")
- end
- elseif HasSkill(Spawn, 418532101) then -- CRUSHING
- RemoveSkill(Spawn, 418532101)
- end
- --PIERCING
- if GetClass (Spawn) == FIGHTER or
- GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == BRAWLER or
- GetClass (Spawn) == MONK or
- GetClass (Spawn) == BRUISER or
- GetClass (Spawn) == SHAMAN or
- GetClass (Spawn) == MYSTIC or
- GetClass (Spawn) == DEFILER or
- GetClass (Spawn) == MAGE or
- GetClass (Spawn) == SORCERER or
- GetClass (Spawn) == WIZARD or
- GetClass (Spawn) == WARLOCK or
- GetClass (Spawn) == ENCHANTER or
- GetClass (Spawn) == ILLUSIONIST or
- GetClass (Spawn) == COERCER or
- GetClass (Spawn) == SUMMONER or
- GetClass (Spawn) == CONJUROR or
- GetClass (Spawn) == NECROMANCER or
- GetClass (Spawn) == SCOUT or
- GetClass (Spawn) == ROGUE or
- GetClass (Spawn) == SWASHBUCKLER or
- GetClass (Spawn) == BRIGAND or
- GetClass (Spawn) == BARD or
- GetClass (Spawn) == TROUBADOR or
- GetClass (Spawn) == DIRGE or
- GetClass (Spawn) == PREDATOR or
- GetClass (Spawn) == RANGER or
- GetClass (Spawn) == ASSASSIN then
- if not HasSkill(Spawn, 3048574950) then -- Piercing
- AddSkill(Spawn, 3048574950,1,level)
- SendMessage(Spawn, "You have learned the Piercing skill")
- end
- elseif HasSkill(Spawn, 3048574950) then -- Piercing
- RemoveSkill(Spawn, 3048574950)
- end
- --RANGED
- if GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == BRAWLER or
- GetClass (Spawn) == MONK or
- GetClass (Spawn) == BRUISER or
- GetClass (Spawn) == SCOUT or
- GetClass (Spawn) == ROGUE or
- GetClass (Spawn) == SWASHBUCKLER or
- GetClass (Spawn) == BRIGAND or
- GetClass (Spawn) == BARD or
- GetClass (Spawn) == TROUBADOR or
- GetClass (Spawn) == DIRGE or
- GetClass (Spawn) == PREDATOR or
- GetClass (Spawn) == RANGER or
- GetClass (Spawn) == ASSASSIN then
- if not HasSkill(Spawn, 1756482397) then -- Ranged
- AddSkill(Spawn, 1756482397,1,level)
- SendMessage(Spawn, "You have learned the Ranged skill")
- end
- elseif HasSkill(Spawn, 1756482397) then -- Ranged
- RemoveSkill(Spawn, 1756482397)
- end
-
- end
- function GearSkills(NPC,Spawn)
- local level = GetLevel(Spawn)*5
-
- -- DEFENSE TYPE SKILLS --
-
- --Light Armor
- if GetClass (Spawn) == FIGHTER or
- GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == BRAWLER or
- GetClass (Spawn) == MONK or
- GetClass (Spawn) == BRUISER or
- GetClass (Spawn) == CRUSADER or
- GetClass (Spawn) == PALADIN or
- GetClass (Spawn) == SHADOWKNIGHT or
- GetClass (Spawn) == PRIEST or
- GetClass (Spawn) == CLERIC or
- GetClass (Spawn) == TEMPLAR or
- GetClass (Spawn) == INQUISITOR or
- GetClass (Spawn) == DRUID or
- GetClass (Spawn) == WARDEN or
- GetClass (Spawn) == FURY or
- GetClass (Spawn) == SHAMAN or
- GetClass (Spawn) == MYSTIC or
- GetClass (Spawn) == DEFILER or
- GetClass (Spawn) == SCOUT or
- GetClass (Spawn) == ROGUE or
- GetClass (Spawn) == SWASHBUCKLER or
- GetClass (Spawn) == BRIGAND or
- GetClass (Spawn) == BARD or
- GetClass (Spawn) == TROUBADOR or
- GetClass (Spawn) == DIRGE or
- GetClass (Spawn) == PREDATOR or
- GetClass (Spawn) == RANGER or
- GetClass (Spawn) == ASSASSIN then
- if not HasSkill(Spawn, 2897193374) then -- Light Armor
- AddSkill(Spawn, 2897193374,1,level)
- SendMessage(Spawn, "You are now more proficient with Light Armor")
- end
- elseif HasSkill(Spawn, 2897193374) then -- Light Armor
- RemoveSkill(Spawn, 2897193374)
- end
-
- --Medium Armor
- if GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == CRUSADER or
- GetClass (Spawn) == PALADIN or
- GetClass (Spawn) == SHADOWKNIGHT or
- GetClass (Spawn) == TEMPLAR or
- GetClass (Spawn) == INQUISITOR or
- GetClass (Spawn) == MYSTIC or
- GetClass (Spawn) == DEFILER or
- GetClass (Spawn) == SWASHBUCKLER or
- GetClass (Spawn) == BRIGAND or
- GetClass (Spawn) == TROUBADOR or
- GetClass (Spawn) == DIRGE or
- GetClass (Spawn) == RANGER or
- GetClass (Spawn) == ASSASSIN then
- if not HasSkill(Spawn, 2246237129) then -- Medium Armor
- AddSkill(Spawn, 2246237129,1,level)
- SendMessage(Spawn, "You are now more proficient with Medium Armor")
- end
- elseif HasSkill(Spawn, 2246237129) then -- Medium Armor
- RemoveSkill(Spawn, 2246237129)
- end
- --Heavy Armor
- if GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == PALADIN or
- GetClass (Spawn) == SHADOWKNIGHT or
- GetClass (Spawn) == TEMPLAR or
- GetClass (Spawn) == INQUISITOR then
- if not HasSkill(Spawn, 241174330) then -- Heavy Armor
- AddSkill(Spawn, 241174330,1,level)
- SendMessage(Spawn, "You are now more proficient with Heavy Armor")
- end
- elseif HasSkill(Spawn, 241174330) then -- Heavy Armor
- RemoveSkill(Spawn, 241174330)
- end
-
-
- -- SHIELDS --
- --Buckler (small)
- if GetClass (Spawn) == FIGHTER or
- GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == BRAWLER or
- GetClass (Spawn) == MONK or
- GetClass (Spawn) == BRUISER or
- GetClass (Spawn) == CRUSADER or
- GetClass (Spawn) == PALADIN or
- GetClass (Spawn) == SHADOWKNIGHT or
- GetClass (Spawn) == PRIEST or
- GetClass (Spawn) == CLERIC or
- GetClass (Spawn) == TEMPLAR or
- GetClass (Spawn) == INQUISITOR or
- GetClass (Spawn) == DRUID or
- GetClass (Spawn) == WARDEN or
- GetClass (Spawn) == FURY or
- GetClass (Spawn) == SHAMAN or
- GetClass (Spawn) == MYSTIC or
- GetClass (Spawn) == DEFILER or
- GetClass (Spawn) == SCOUT or
- GetClass (Spawn) == ROGUE or
- GetClass (Spawn) == SWASHBUCKLER or
- GetClass (Spawn) == BRIGAND or
- GetClass (Spawn) == BARD or
- GetClass (Spawn) == TROUBADOR or
- GetClass (Spawn) == DIRGE or
- GetClass (Spawn) == PREDATOR or
- GetClass (Spawn) == RANGER or
- GetClass (Spawn) == ASSASSIN then
- if not HasSkill(Spawn, 4037812502) then -- Buckler
- AddSkill(Spawn, 4037812502,1,level)
- SendMessage(Spawn, "You are now more proficient with Bucklers")
- end
- elseif HasSkill(Spawn, 4037812502) then -- Buckler
- RemoveSkill(Spawn, 4037812502)
- end
- --Round Shield (medium)
- if GetClass (Spawn) == FIGHTER or
- GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == CRUSADER or
- GetClass (Spawn) == PALADIN or
- GetClass (Spawn) == SHADOWKNIGHT or
- GetClass (Spawn) == SCOUT or
- GetClass (Spawn) == ROGUE or
- GetClass (Spawn) == SWASHBUCKLER or
- GetClass (Spawn) == BRIGAND or
- GetClass (Spawn) == BARD or
- GetClass (Spawn) == TROUBADOR or
- GetClass (Spawn) == DIRGE or
- GetClass (Spawn) == PREDATOR or
- GetClass (Spawn) == RANGER or
- GetClass (Spawn) == ASSASSIN then
- if not HasSkill(Spawn, 3173504370) then -- Round Shield
- AddSkill(Spawn, 3173504370,1,level)
- SendMessage(Spawn, "You are now more proficient with Round Shields")
- end
- elseif HasSkill(Spawn, 3173504370) then -- Round Shield
- RemoveSkill(Spawn, 3173504370)
- end
- --Kite Shield (large)
- if GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == CRUSADER or
- GetClass (Spawn) == PALADIN or
- GetClass (Spawn) == SHADOWKNIGHT then
- if not HasSkill(Spawn, 570458645) then -- Kite Shield
- AddSkill(Spawn, 570458645,1,level)
- SendMessage(Spawn, "You are now more proficient with Kite Shields")
- end
- elseif HasSkill(Spawn, 570458645) then -- Kite Shield
- RemoveSkill(Spawn, 570458645)
- end
- --Tower Shield (very large)
- if GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == BERZERKER then
- if not HasSkill(Spawn, 570458645) then -- Tower Shield
- AddSkill(Spawn, 570458645,1,level)
- SendMessage(Spawn, "You are now more proficient with Tower Shields")
- end
- elseif HasSkill(Spawn, 570458645) then -- Tower Shield
- RemoveSkill(Spawn, 570458645)
- end
-
- --Symbols
- if GetClass (Spawn) == PRIEST or
- GetClass (Spawn) == CLERIC or
- GetClass (Spawn) == TEMPLAR or
- GetClass (Spawn) == INQUISITOR or
- GetClass (Spawn) == DRUID or
- GetClass (Spawn) == WARDEN or
- GetClass (Spawn) == FURY or
- GetClass (Spawn) == SHAMAN or
- GetClass (Spawn) == MYSTIC or
- GetClass (Spawn) == DEFILER or
- GetClass (Spawn) == MAGE or
- GetClass (Spawn) == SORCERER or
- GetClass (Spawn) == WIZARD or
- GetClass (Spawn) == WARLOCK or
- GetClass (Spawn) == ENCHANTER or
- GetClass (Spawn) == ILLUSIONIST or
- GetClass (Spawn) == COERCER or
- GetClass (Spawn) == SUMMONER or
- GetClass (Spawn) == CONJUROR or
- GetClass (Spawn) == NECROMANCER then
- if not HasSkill(Spawn, 545043066) then -- Symbols
- AddSkill(Spawn, 545043066,1,level)
- SendMessage(Spawn, "You are now more proficient with Symbols")
- end
- elseif HasSkill(Spawn, 545043066) then -- Symbols
- RemoveSkill(Spawn, 545043066)
- end
- -- WEAPON SKILLS --
- -- Axe (1-H axes)
- if GetClass (Spawn) == FIGHTER or
- GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == SCOUT or
- GetClass (Spawn) == ROGUE or
- GetClass (Spawn) == SWASHBUCKLER or
- GetClass (Spawn) == BRIGAND or
- GetClass (Spawn) == BARD or
- GetClass (Spawn) == TROUBADOR or
- GetClass (Spawn) == DIRGE or
- GetClass (Spawn) == PREDATOR or
- GetClass (Spawn) == RANGER or
- GetClass (Spawn) == ASSASSIN then
- if not HasSkill(Spawn, 545043066) then -- Axe
- AddSkill(Spawn, 2476073427,1,level)
- SendMessage(Spawn, "You are now more proficient with Axes")
- end
- elseif HasSkill(Spawn, 2476073427) then -- Axe
- RemoveSkill(Spawn, 2476073427)
- end
-
- -- Great Axe (2-H axes)
- if GetClass (Spawn) == FIGHTER or
- GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == GUARDIAN then
- if not HasSkill(Spawn, 2954459351) then -- Great Axe
- AddSkill(Spawn, 2954459351,1,level)
- SendMessage(Spawn, "You are now more proficient with Great Axes")
- end
- elseif HasSkill(Spawn, 2954459351) then -- Great Axe
- RemoveSkill(Spawn, 2954459351)
- end
- -- Bow (short & long bows)
- if GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == SCOUT or
- GetClass (Spawn) == ROGUE or
- GetClass (Spawn) == SWASHBUCKLER or
- GetClass (Spawn) == BRIGAND or
- GetClass (Spawn) == BARD or
- GetClass (Spawn) == TROUBADOR or
- GetClass (Spawn) == DIRGE or
- GetClass (Spawn) == PREDATOR or
- GetClass (Spawn) == RANGER or
- GetClass (Spawn) == ASSASSIN then
- if not HasSkill(Spawn, 1743366740) then -- Bow
- AddSkill(Spawn, 1743366740,1,level)
- SendMessage(Spawn, "You are now more proficient with Bows")
- end
- elseif HasSkill(Spawn, 1743366740) then -- Bow
- RemoveSkill(Spawn, 1743366740)
- end
- -- Dagger
- if GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == MAGE or
- GetClass (Spawn) == SORCERER or
- GetClass (Spawn) == WIZARD or
- GetClass (Spawn) == WARLOCK or
- GetClass (Spawn) == ENCHANTER or
- GetClass (Spawn) == ILLUSIONIST or
- GetClass (Spawn) == COERCER or
- GetClass (Spawn) == SUMMONER or
- GetClass (Spawn) == CONJUROR or
- GetClass (Spawn) == NECROMANCER or
- GetClass (Spawn) == SCOUT or
- GetClass (Spawn) == ROGUE or
- GetClass (Spawn) == SWASHBUCKLER or
- GetClass (Spawn) == BRIGAND or
- GetClass (Spawn) == BARD or
- GetClass (Spawn) == TROUBADOR or
- GetClass (Spawn) == DIRGE or
- GetClass (Spawn) == PREDATOR or
- GetClass (Spawn) == RANGER or
- GetClass (Spawn) == ASSASSIN then
- if not HasSkill(Spawn, 887279616) then -- Dagger
- AddSkill(Spawn, 887279616,1,level)
- SendMessage(Spawn, "You are now more proficient with Daggers")
- end
- elseif HasSkill(Spawn, 887279616) then -- Dagger
- RemoveSkill(Spawn, 887279616)
- end
- -- Fists
- if GetClass (Spawn) == BRAWLER or
- GetClass (Spawn) == MONK or
- GetClass (Spawn) == BRUISER then
- if not HasSkill(Spawn, 3177806075) then -- Fists
- AddSkill(Spawn, 3177806075,1,level)
- SendMessage(Spawn, "You are now more proficient with your Fists")
- end
- elseif HasSkill(Spawn, 3177806075) then -- Fists
- RemoveSkill(Spawn, 3177806075)
- end
- -- Hammer (1-H hammers)
- if GetClass (Spawn) == FIGHTER or
- GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == BRAWLER or
- GetClass (Spawn) == MONK or
- GetClass (Spawn) == BRUISER or
- GetClass (Spawn) == CRUSADER or
- GetClass (Spawn) == PALADIN or
- GetClass (Spawn) == SHADOWKNIGHT or
- GetClass (Spawn) == PRIEST or
- GetClass (Spawn) == CLERIC or
- GetClass (Spawn) == TEMPLAR or
- GetClass (Spawn) == INQUISITOR or
- GetClass (Spawn) == DRUID or
- GetClass (Spawn) == WARDEN or
- GetClass (Spawn) == FURY or
- GetClass (Spawn) == SHAMAN or
- GetClass (Spawn) == MYSTIC or
- GetClass (Spawn) == DEFILER then
- if not HasSkill(Spawn, 554333641) then -- Hammer
- AddSkill(Spawn, 554333641,1,level)
- SendMessage(Spawn, "You are now more proficient with Hammers")
- end
- elseif HasSkill(Spawn, 554333641) then -- Hammer
- RemoveSkill(Spawn, 554333641)
- end
- -- Great Hammer (2-H hammers)
- if GetClass (Spawn) == FIGHTER or
- GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == BRAWLER or
- GetClass (Spawn) == MONK or
- GetClass (Spawn) == BRUISER or
- GetClass (Spawn) == CRUSADER or
- GetClass (Spawn) == PALADIN or
- GetClass (Spawn) == SHADOWKNIGHT or
- GetClass (Spawn) == PRIEST or
- GetClass (Spawn) == CLERIC or
- GetClass (Spawn) == TEMPLAR or
- GetClass (Spawn) == INQUISITOR or
- GetClass (Spawn) == DRUID or
- GetClass (Spawn) == WARDEN or
- GetClass (Spawn) == FURY or
- GetClass (Spawn) == SHAMAN or
- GetClass (Spawn) == MYSTIC or
- GetClass (Spawn) == DEFILER then
- if not HasSkill(Spawn, 1653482350) then -- Great Hammer
- AddSkill(Spawn, 1653482350,1,level)
- SendMessage(Spawn, "You are now more proficient with Great Hammers")
- end
- elseif HasSkill(Spawn, 1653482350) then -- Great Hammer
- RemoveSkill(Spawn, 1653482350)
- end
- -- Mace
- if GetClass (Spawn) == FIGHTER or
- GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == BRAWLER or
- GetClass (Spawn) == MONK or
- GetClass (Spawn) == BRUISER or
- GetClass (Spawn) == CRUSADER or
- GetClass (Spawn) == PALADIN or
- GetClass (Spawn) == SHADOWKNIGHT or
- GetClass (Spawn) == PRIEST or
- GetClass (Spawn) == CLERIC or
- GetClass (Spawn) == TEMPLAR or
- GetClass (Spawn) == INQUISITOR or
- GetClass (Spawn) == DRUID or
- GetClass (Spawn) == WARDEN or
- GetClass (Spawn) == FURY or
- GetClass (Spawn) == SHAMAN or
- GetClass (Spawn) == MYSTIC or
- GetClass (Spawn) == DEFILER then
- if not HasSkill(Spawn, 770311065) then -- Mace
- AddSkill(Spawn, 770311065,1,level)
- SendMessage(Spawn, "You are now more proficient with Maces")
- end
- elseif HasSkill(Spawn, 770311065) then -- Mace
- RemoveSkill(Spawn, 770311065)
- end
- -- Rapier
- if GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == SCOUT or
- GetClass (Spawn) == ROGUE or
- GetClass (Spawn) == SWASHBUCKLER or
- GetClass (Spawn) == BRIGAND or
- GetClass (Spawn) == BARD or
- GetClass (Spawn) == TROUBADOR or
- GetClass (Spawn) == DIRGE or
- GetClass (Spawn) == PREDATOR or
- GetClass (Spawn) == RANGER or
- GetClass (Spawn) == ASSASSIN then
- if not HasSkill(Spawn, 641561514) then -- Rapier
- AddSkill(Spawn, 641561514,1,level)
- SendMessage(Spawn, "You are now more proficient with Rapiers")
- end
- elseif HasSkill(Spawn, 641561514) then -- Rapier
- RemoveSkill(Spawn, 641561514)
- end
- -- Spear
- if GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == SHAMAN or
- GetClass (Spawn) == MYSTIC or
- GetClass (Spawn) == DEFILER or
- GetClass (Spawn) == SCOUT or
- GetClass (Spawn) == ROGUE or
- GetClass (Spawn) == SWASHBUCKLER or
- GetClass (Spawn) == BRIGAND or
- GetClass (Spawn) == BARD or
- GetClass (Spawn) == TROUBADOR or
- GetClass (Spawn) == DIRGE or
- GetClass (Spawn) == PREDATOR or
- GetClass (Spawn) == RANGER or
- GetClass (Spawn) == ASSASSIN then
- if not HasSkill(Spawn, 1616998748) then -- Spear
- AddSkill(Spawn, 1616998748,1,level)
- SendMessage(Spawn, "You are now more proficient with Spears")
- end
- elseif HasSkill(Spawn, 1616998748) then -- Spear
- RemoveSkill(Spawn, 1616998748)
- end
- -- Great Spear (large polearms)
- if GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == GUARDIAN then
- if not HasSkill(Spawn, 2380184628) then -- Great Spear
- AddSkill(Spawn, 2380184628,1,level)
- SendMessage(Spawn, "You are now more proficient with Great Spears")
- end
- elseif HasSkill(Spawn, 2380184628) then -- Great Spear
- RemoveSkill(Spawn, 2380184628)
- end
- -- Staff (2-H staves)
- if GetClass (Spawn) == FIGHTER or
- GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == BRAWLER or
- GetClass (Spawn) == MONK or
- GetClass (Spawn) == BRUISER or
- GetClass (Spawn) == PRIEST or
- GetClass (Spawn) == CLERIC or
- GetClass (Spawn) == TEMPLAR or
- GetClass (Spawn) == INQUISITOR or
- GetClass (Spawn) == DRUID or
- GetClass (Spawn) == WARDEN or
- GetClass (Spawn) == FURY or
- GetClass (Spawn) == SHAMAN or
- GetClass (Spawn) == MYSTIC or
- GetClass (Spawn) == DEFILER or
- GetClass (Spawn) == MAGE or
- GetClass (Spawn) == SORCERER or
- GetClass (Spawn) == WIZARD or
- GetClass (Spawn) == WARLOCK or
- GetClass (Spawn) == ENCHANTER or
- GetClass (Spawn) == ILLUSIONIST or
- GetClass (Spawn) == COERCER or
- GetClass (Spawn) == SUMMONER or
- GetClass (Spawn) == CONJUROR or
- GetClass (Spawn) == NECROMANCER then
- if not HasSkill(Spawn, 3180399725) then -- Staff
- AddSkill(Spawn, 3180399725,1,level)
- SendMessage(Spawn, "You are now more proficient with a Staff")
- end
- elseif HasSkill(Spawn, 3180399725) then -- Staff
- RemoveSkill(Spawn, 3180399725)
- end
- -- Sword (1-H swords)
- if GetClass (Spawn) == FIGHTER or
- GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == CRUSADER or
- GetClass (Spawn) == PALADIN or
- GetClass (Spawn) == SHADOWKNIGHT or
- GetClass (Spawn) == DRUID or
- GetClass (Spawn) == WARDEN or
- GetClass (Spawn) == FURY or
- GetClass (Spawn) == SCOUT or
- GetClass (Spawn) == ROGUE or
- GetClass (Spawn) == SWASHBUCKLER or
- GetClass (Spawn) == BRIGAND or
- GetClass (Spawn) == BARD or
- GetClass (Spawn) == TROUBADOR or
- GetClass (Spawn) == DIRGE or
- GetClass (Spawn) == PREDATOR or
- GetClass (Spawn) == RANGER or
- GetClass (Spawn) == ASSASSIN then
- if not HasSkill(Spawn, 1696217328) then -- Sword
- AddSkill(Spawn, 1696217328,1,level)
- SendMessage(Spawn, "You are now more proficient with Swords")
- end
- elseif HasSkill(Spawn, 1696217328) then -- Sword
- RemoveSkill(Spawn, 1696217328)
- end
- -- Great Sword (2-H swords)
- if GetClass (Spawn) == FIGHTER or
- GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == CRUSADER or
- GetClass (Spawn) == PALADIN or
- GetClass (Spawn) == SHADOWKNIGHT then
- if not HasSkill(Spawn, 2292577688) then -- Great Sword
- AddSkill(Spawn, 2292577688,1,level)
- SendMessage(Spawn, "You are now more proficient with Great Swords")
- end
- elseif HasSkill(Spawn, 2292577688) then -- Great Sword
- RemoveSkill(Spawn, 2292577688)
- end
- -- Thrown Weapon (knives & shuriken)
- if GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == BRAWLER or
- GetClass (Spawn) == MONK or
- GetClass (Spawn) == BRUISER or
- GetClass (Spawn) == SCOUT or
- GetClass (Spawn) == ROGUE or
- GetClass (Spawn) == SWASHBUCKLER or
- GetClass (Spawn) == BRIGAND or
- GetClass (Spawn) == BARD or
- GetClass (Spawn) == TROUBADOR or
- GetClass (Spawn) == DIRGE or
- GetClass (Spawn) == PREDATOR or
- GetClass (Spawn) == RANGER or
- GetClass (Spawn) == ASSASSIN then
- if not HasSkill(Spawn, 2650425026) then -- Thrown Weapon
- AddSkill(Spawn, 2650425026,1,level)
- SendMessage(Spawn, "You are now more proficient with Thrown Weapons")
- end
- elseif HasSkill(Spawn, 2650425026) then -- Thrown Weapon
- RemoveSkill(Spawn, 2650425026)
- end
- end
- function ClassSkills(NPC, Spawn)
- local level = GetLevel(Spawn)*5
- -- FIGHTER SKILLS --
- -- Martial/Fighter
- if GetClass (Spawn) == FIGHTER or
- GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == BERZERKER or
- GetClass (Spawn) == BRAWLER or
- GetClass (Spawn) == MONK or
- GetClass (Spawn) == BRUISER or
- GetClass (Spawn) == CRUSADER or
- GetClass (Spawn) == PALADIN or
- GetClass (Spawn) == SHADOWKNIGHT then
- if not HasSkill(Spawn, 1408356869) then -- Martial skill
- AddSkill(Spawn, 1408356869,1,level)
- SendMessage(Spawn, "You have learned the Martial skill")
- elseif HasSkill(Spawn,1408356869) then
- RemoveSkill(Spawn, 1408356869)
- end
- end
- -- Tactics/Warrior
- if GetClass (Spawn) == WARRIOR or
- GetClass (Spawn) == GUARDIAN or
- GetClass (Spawn) == BERZERKER then
- if not HasSkill(Spawn, 1124719197) then -- Martial skill
- AddSkill(Spawn, 1124719197,1,level)
- SendMessage(Spawn, "You have learned the Tactics skill")
- elseif HasSkill(Spawn,1124719197) then
- RemoveSkill(Spawn, 1124719197)
- end
- end
- -- Berserk/Berserker
- if GetClass (Spawn) == BERZERKER then
- if not HasSkill(Spawn, 433335062) then -- Berserk skill
- AddSkill(Spawn, 433335062,1,level)
- SendMessage(Spawn, "You have learned the Berserk skill")
- elseif HasSkill(Spawn,433335062) then
- RemoveSkill(Spawn, 433335062)
- end
- end
- -- Protection/Guardian
- if GetClass (Spawn) == BERZERKER then
- if not HasSkill(Spawn, 1209716810) then -- Protection skill
- AddSkill(Spawn, 1209716810,1,level)
- SendMessage(Spawn, "You have learned the Protection skill")
- elseif HasSkill(Spawn,1209716810) then
- RemoveSkill(Spawn, 1209716810)
- end
- end
- -- Brawl/Brawling
- if GetClass (Spawn) == BRAWLER or
- GetClass (Spawn) == MONK or
- GetClass (Spawn) == BRUISER then
- if not HasSkill(Spawn, 3856706740) then -- Brawl skill
- AddSkill(Spawn, 3856706740,1,level)
- SendMessage(Spawn, "You have learned the Brawl skill")
- elseif HasSkill(Spawn,3856706740) then
- RemoveSkill(Spawn, 3856706740)
- end
- end
- -- Tranquility/Monk
- if GetClass (Spawn) == MONK then
- if not HasSkill(Spawn, 2011726342) then -- Tranquility skill
- AddSkill(Spawn, 2011726342,1,level)
- SendMessage(Spawn, "You have learned the Tranquility skill")
- elseif HasSkill(Spawn,2011726342) then
- RemoveSkill(Spawn, 2011726342)
- end
- end
- -- Physicality/Bruiser
- if GetClass (Spawn) == BRUISER then
- if not HasSkill(Spawn, 3067436248) then -- Physicality skill
- AddSkill(Spawn, 3067436248,1,level)
- SendMessage(Spawn, "You have learned the Physicality skill")
- elseif HasSkill(Spawn,3067436248) then
- RemoveSkill(Spawn, 3067436248)
- end
- end
- -- Faith/Crusader
- if GetClass (Spawn) == CRUSADER or
- GetClass (Spawn) == PALADIN or
- GetClass (Spawn) == SHADOWKNIGHT then
- if not HasSkill(Spawn, 3809066846) then -- Faith skill
- AddSkill(Spawn, 3809066846,1,level)
- SendMessage(Spawn, "You have learned the Faith skill")
- elseif HasSkill(Spawn,3809066846) then
- RemoveSkill(Spawn, 3809066846)
- end
- end
- -- Determined Faith/Paladin
- if GetClass (Spawn) == PALADIN then
- if not HasSkill(Spawn, 90523872) then -- Determined Faith skill
- AddSkill(Spawn, 90523872,1,level)
- SendMessage(Spawn, "You have learned the Determined Faith skill")
- elseif HasSkill(Spawn,90523872) then
- RemoveSkill(Spawn, 90523872)
- end
- end
- -- Determined Zeal/Shadowknight
- if GetClass (Spawn) == SHADOWKNIGHT then
- if not HasSkill(Spawn, 2741805322) then -- Determined Zeal skill
- AddSkill(Spawn, 2741805322,1,level)
- SendMessage(Spawn, "You have learned the Determined Zeal skill")
- elseif HasSkill(Spawn,2741805322) then
- RemoveSkill(Spawn, 2741805322)
- end
- end
- -- SCOUT SKILLS --
- --Reconnaissance/Scout
- if GetClass (Spawn) == SCOUT or
- GetClass (Spawn) == ROGUE or
- GetClass (Spawn) == SWASHBUCKLER or
- GetClass (Spawn) == BRIGAND or
- GetClass (Spawn) == BARD or
- GetClass (Spawn) == TROUBADOR or
- GetClass (Spawn) == DIRGE or
- GetClass (Spawn) == PREDATOR or
- GetClass (Spawn) == RANGER or
- GetClass (Spawn) == ASSASSIN then
- if not HasSkill(Spawn, 1921433074) then -- Reconnaissance skill
- AddSkill(Spawn, 1921433074,1,level)
- SendMessage(Spawn, "You have learned the Reconnaissance skill")
- elseif HasSkill(Spawn,1921433074) then
- RemoveSkill(Spawn, 1921433074)
- end
- end
- -- Melodies/Bard
- if GetClass (Spawn) == BARD or
- GetClass (Spawn) == TROUBADOR or
- GetClass (Spawn) == DIRGE then
- if not HasSkill(Spawn, 1311635100) then -- Melodies skill
- AddSkill(Spawn, 1311635100,1,level)
- SendMessage(Spawn, "You have learned the Melodies skill")
- elseif HasSkill(Spawn,1311635100) then
- RemoveSkill(Spawn, 1311635100)
- end
- end
- -- Ballads/Troubador
- if GetClass (Spawn) == TROUBADOR then
- if not HasSkill(Spawn, 296246391) then -- Ballads skill
- AddSkill(Spawn, 296246391,1,level)
- SendMessage(Spawn, "You have learned the Ballads skill")
- elseif HasSkill(Spawn,296246391) then
- RemoveSkill(Spawn, 296246391)
- end
- end
- -- Dirges/Dirge
- if GetClass (Spawn) == DIRGE then
- if not HasSkill(Spawn, 340921594) then -- Dirges skill
- AddSkill(Spawn, 340921594,1,level)
- SendMessage(Spawn, "You have learned the Dirges skill")
- elseif HasSkill(Spawn,340921594) then
- RemoveSkill(Spawn, 340921594)
- end
- end
- -- Skulldugery/Rogue
- if GetClass (Spawn) == ROGUE or
- GetClass (Spawn) == SWASHBUCKLER or
- GetClass (Spawn) == BRIGAND then
- if not HasSkill(Spawn, 1514256692) then -- Skulldugery skill
- AddSkill(Spawn, 1514256692,1,level)
- SendMessage(Spawn, "You have learned the Skulldugery skill")
- elseif HasSkill(Spawn,1514256692) then
- RemoveSkill(Spawn, 1514256692)
- end
- end
- -- Swashbuckling/Swashbuckler
- if GetClass (Spawn) == SWASHBUCKLER then
- if not HasSkill(Spawn, 2663054519) then -- Swashbuckling skill
- AddSkill(Spawn, 2663054519,1,level)
- SendMessage(Spawn, "You have learned the Swashbuckling skill")
- elseif HasSkill(Spawn,2663054519) then
- RemoveSkill(Spawn, 2663054519)
- end
- end
- -- Banditry/Brigand
- if GetClass (Spawn) == BRIGAND then
- if not HasSkill(Spawn, 1519965519) then -- Banditry skill
- AddSkill(Spawn, 1519965519,1,level)
- SendMessage(Spawn, "You have learned the Banditry skill")
- elseif HasSkill(Spawn,1519965519) then
- RemoveSkill(Spawn, 1519965519)
- end
- end
- -- Stalking/Predator
- if GetClass (Spawn) == PREDATOR or
- GetClass (Spawn) == RANGER or
- GetClass (Spawn) == ASSASSIN then
- if not HasSkill(Spawn, 3167106577) then -- Stalking skill
- AddSkill(Spawn, 3167106577,1,level)
- SendMessage(Spawn, "You have learned the Stalking skill")
- elseif HasSkill(Spawn,3167106577) then
- RemoveSkill(Spawn, 3167106577)
- end
- end
- -- Archery/Ranger
- if GetClass (Spawn) == RANGER then
- if not HasSkill(Spawn, 1400160844) then -- Archery skill
- AddSkill(Spawn, 1400160844,1,level)
- SendMessage(Spawn, "You have learned the Archery skill")
- elseif HasSkill(Spawn,1400160844) then
- RemoveSkill(Spawn, 1400160844)
- end
- end
- -- Assassination Zeal/Assassin
- if GetClass (Spawn) == ASSASSIN then
- if not HasSkill(Spawn, 2711101135) then -- Assassination skill
- AddSkill(Spawn, 2711101135,1,level)
- SendMessage(Spawn, "You have learned the Assassination skill")
- elseif HasSkill(Spawn,2711101135) then
- RemoveSkill(Spawn, 2711101135)
- end
- end
- -- MAGE SKILLS --
- -- Evocations/Mage
- if GetClass (Spawn) == MAGE or
- GetClass (Spawn) == SORCERER or
- GetClass (Spawn) == WIZARD or
- GetClass (Spawn) == WARLOCK or
- GetClass (Spawn) == ENCHANTER or
- GetClass (Spawn) == ILLUSIONIST or
- GetClass (Spawn) == COERCER or
- GetClass (Spawn) == SUMMONER or
- GetClass (Spawn) == CONJUROR or
- GetClass (Spawn) == NECROMANCER then
- if not HasSkill(Spawn, 3820670534) then -- Evocations skill
- AddSkill(Spawn, 3820670534,1,level)
- SendMessage(Spawn, "You have learned the Evocations skill")
- elseif HasSkill(Spawn,3820670534) then
- RemoveSkill(Spawn, 3820670534)
- end
- end
- -- Sorcery/Sorcerer
- if GetClass (Spawn) == SORCERER or
- GetClass (Spawn) == WIZARD or
- GetClass (Spawn) == WARLOCK then
- if not HasSkill(Spawn, 2533124061) then -- Sorcery skill
- AddSkill(Spawn, 2533124061,1,level)
- SendMessage(Spawn, "You have learned the Sorcery skill")
- elseif HasSkill(Spawn,2533124061) then
- RemoveSkill(Spawn, 2533124061)
- end
- end
- -- Elemental Mastery/Wizard
- if GetClass (Spawn) == WIZARD then
- if not HasSkill(Spawn, 2662430630) then -- Elemental Mastery skill
- AddSkill(Spawn, 2662430630,1,level)
- SendMessage(Spawn, "You have learned the Elemental Mastery skill")
- elseif HasSkill(Spawn,2662430630) then
- RemoveSkill(Spawn, 2662430630)
- end
- end
- -- Noctivagance/Warlock
- if GetClass (Spawn) == WARLOCK then
- if not HasSkill(Spawn, 193411854) then -- Noctivagance skill
- AddSkill(Spawn, 193411854,1,level)
- SendMessage(Spawn, "You have learned the Noctivagance skill")
- elseif HasSkill(Spawn,193411854) then
- RemoveSkill(Spawn, 193411854)
- end
- end
- -- Enchantments/Enchanter
- if GetClass (Spawn) == ENCHANTER or
- GetClass (Spawn) == ILLUSIONIST or
- GetClass (Spawn) == COERCER then
- if not HasSkill(Spawn, 287643040) then -- Enchantments skill
- AddSkill(Spawn, 287643040,1,level)
- SendMessage(Spawn, "You have learned the Enchantments skill")
- elseif HasSkill(Spawn,287643040) then
- RemoveSkill(Spawn, 287643040)
- end
- end
- -- Hallucinations/Illusionist
- if GetClass (Spawn) == ILLUSIONIST then
- if not HasSkill(Spawn, 2898101972) then -- Hallucinations skill
- AddSkill(Spawn, 2898101972,1,level)
- SendMessage(Spawn, "You have learned the Hallucinations skill")
- elseif HasSkill(Spawn,2898101972) then
- RemoveSkill(Spawn, 2898101972)
- end
- end
- -- Protean/Coecerer
- if GetClass (Spawn) == COERCER then
- if not HasSkill(Spawn, 3067436248) then -- Protean skill
- AddSkill(Spawn, 3067436248,1,level)
- SendMessage(Spawn, "You have learned the Protean skill")
- elseif HasSkill(Spawn,3067436248) then
- RemoveSkill(Spawn, 3067436248)
- end
- end
- -- Legerdemain/Summoner
- if GetClass (Spawn) == SUMMONER or
- GetClass (Spawn) == CONJUROR or
- GetClass (Spawn) == NECROMANCER then
- if not HasSkill(Spawn, 2120065377) then -- Legerdemain skill
- AddSkill(Spawn, 2120065377,1,level)
- SendMessage(Spawn, "You have learned the Legerdemain skill")
- elseif HasSkill(Spawn,2120065377) then
- RemoveSkill(Spawn, 2120065377)
- end
- end
- -- Conjurations/Conjuror
- if GetClass (Spawn) == CONJUROR then
- if not HasSkill(Spawn, 2042842194) then -- Conjurations skill
- AddSkill(Spawn, 2042842194,1,level)
- SendMessage(Spawn, "You have learned the Conjurations skill")
- elseif HasSkill(Spawn,2042842194) then
- RemoveSkill(Spawn, 2042842194)
- end
- end
- -- Sepulchers/Necromancer
- if GetClass (Spawn) == NECROMANCER then
- if not HasSkill(Spawn, 289471519) then -- Sepulchers skill
- AddSkill(Spawn, 289471519,1,level)
- SendMessage(Spawn, "You have learned the Sepulchers skill")
- elseif HasSkill(Spawn,289471519) then
- RemoveSkill(Spawn, 289471519)
- end
- end
- -- PRIEST SKILLS --
- -- Inspirations/Priest
- if GetClass (Spawn) == PRIEST or
- GetClass (Spawn) == CLERIC or
- GetClass (Spawn) == TEMPLAR or
- GetClass (Spawn) == INQUISITOR or
- GetClass (Spawn) == DRUID or
- GetClass (Spawn) == WARDEN or
- GetClass (Spawn) == FURY or
- GetClass (Spawn) == SHAMAN or
- GetClass (Spawn) == MYSTIC or
- GetClass (Spawn) == DEFILER then
- if not HasSkill(Spawn, 2463145248) then -- Inspirations skill
- AddSkill(Spawn, 2463145248,1,level)
- SendMessage(Spawn, "You have learned the Inspirations skill")
- elseif HasSkill(Spawn,2463145248) then
- RemoveSkill(Spawn, 2463145248)
- end
- end
- -- Theurgy/Cleric
- if GetClass (Spawn) == CLERIC or
- GetClass (Spawn) == TEMPLAR or
- GetClass (Spawn) == INQUISITOR then
- if not HasSkill(Spawn, 2533124061) then -- Theurgy skill
- AddSkill(Spawn, 2533124061,1,level)
- SendMessage(Spawn, "You have learned the Theurgy skill")
- elseif HasSkill(Spawn,2533124061) then
- RemoveSkill(Spawn, 2533124061)
- end
- end
- -- Regimens/Templar
- if GetClass (Spawn) == TEMPLAR then
- if not HasSkill(Spawn, 2581053277) then -- Regimens skill
- AddSkill(Spawn, 2581053277,1,level)
- SendMessage(Spawn, "You have learned the Regimens skill")
- elseif HasSkill(Spawn,2581053277) then
- RemoveSkill(Spawn, 2581053277)
- end
- end
- -- Inquisitions/Inquisitor
- if GetClass (Spawn) == INQUISITOR then
- if not HasSkill(Spawn, 1829443087) then -- Inquisitions skill
- AddSkill(Spawn, 1829443087,1,level)
- SendMessage(Spawn, "You have learned the Inquisitions skill")
- elseif HasSkill(Spawn,1829443087) then
- RemoveSkill(Spawn, 1829443087)
- end
- end
- -- Archegenesis/Druid
- if GetClass (Spawn) == DRUID or
- GetClass (Spawn) == WARDEN or
- GetClass (Spawn) == FURY then
- if not HasSkill(Spawn, 3282420779) then -- Archegenesis skill
- AddSkill(Spawn, 3282420779,1,level)
- SendMessage(Spawn, "You have learned the Archegenesis skill")
- elseif HasSkill(Spawn,3282420779) then
- RemoveSkill(Spawn, 3282420779)
- end
- end
- -- Nature's Refuge/Warden
- if GetClass (Spawn) == WARDEN then
- if not HasSkill(Spawn, 1040683335) then -- Nature's Refuge skill
- AddSkill(Spawn, 1040683335,1,level)
- SendMessage(Spawn, "You have learned the Nature's Refuge skill")
- elseif HasSkill(Spawn,1040683335) then
- RemoveSkill(Spawn, 1040683335)
- end
- end
- -- Nature's Reckoning/Fury
- if GetClass (Spawn) == FURY then
- if not HasSkill(Spawn, 1624274802) then -- Nature's Reckoning skill
- AddSkill(Spawn, 1624274802,1,level)
- SendMessage(Spawn, "You have learned the Nature's Reckoning skill")
- elseif HasSkill(Spawn,1624274802) then
- RemoveSkill(Spawn, 1624274802)
- end
- end
- -- Talismans/Shaman
- if GetClass (Spawn) == SHAMAN or
- GetClass (Spawn) == MYSTIC or
- GetClass (Spawn) == DEFILER then
- if not HasSkill(Spawn, 2120065377) then -- Talismans skill
- AddSkill(Spawn, 2120065377,1,level)
- SendMessage(Spawn, "You have learned the Talismans skill")
- elseif HasSkill(Spawn,2120065377) then
- RemoveSkill(Spawn, 2120065377)
- end
- end
- -- Fetichisms/Mystic
- if GetClass (Spawn) == MYSTIC then
- if not HasSkill(Spawn, 3467160477) then -- Fetichisms skill
- AddSkill(Spawn, 3467160477,1,level)
- SendMessage(Spawn, "You have learned the Fetichisms skill")
- elseif HasSkill(Spawn,3467160477) then
- RemoveSkill(Spawn, 3467160477)
- end
- end
- -- Vehemence/Defiler
- if GetClass (Spawn) == DEFILER then
- if not HasSkill(Spawn, 3191839982) then -- Vehemence skill
- AddSkill(Spawn, 3191839982,1,level)
- SendMessage(Spawn, "You have learned the Vehemence skill")
- elseif HasSkill(Spawn,3191839982) then
- RemoveSkill(Spawn, 3191839982)
- end
- end
- end
- --[[
- if not HasSkill(Spawn, 1852383242) then -- Dual Wield
- AddSkill(Spawn, 1852383242,1,level)
- SendMessage(Spawn, "You have learned the Dual Wield skill")
- end]]--
|