diff --git a/_module/are/townofascension.are.json b/_module/are/townofascension.are.json index 30377d9c..f0032bd3 100644 --- a/_module/are/townofascension.are.json +++ b/_module/are/townofascension.are.json @@ -6353,7 +6353,7 @@ }, "Version": { "type": "dword", - "value": 437 + "value": 439 }, "Width": { "type": "int", diff --git a/_module/git/townofascension.git.json b/_module/git/townofascension.git.json index 7e0a342b..ad808307 100644 --- a/_module/git/townofascension.git.json +++ b/_module/git/townofascension.git.json @@ -4888,7 +4888,7 @@ }, "Z": { "type": "float", - "value": -5.7220458984375e-006 + "value": 6.609055519104004 } }, { @@ -5117,7 +5117,7 @@ }, "Z": { "type": "float", - "value": -5.7220458984375e-006 + "value": 6.641582489013672 } }, { @@ -8777,7 +8777,7 @@ }, "Z": { "type": "float", - "value": 0.4504265785217285 + "value": 0.4504147469997406 } }, { @@ -9002,7 +9002,7 @@ }, "Z": { "type": "float", - "value": 0.4495921134948731 + "value": 0.4495787620544434 } }, { @@ -9456,7 +9456,7 @@ }, "Z": { "type": "float", - "value": 0.4495921134948731 + "value": 0.4496085941791534 } }, { @@ -9681,7 +9681,7 @@ }, "Z": { "type": "float", - "value": 0.449204683303833 + "value": 0.4492204785346985 } }, { @@ -10135,7 +10135,7 @@ }, "Z": { "type": "float", - "value": 0.4513206481933594 + "value": 0.4513104259967804 } }, { @@ -10360,7 +10360,7 @@ }, "Z": { "type": "float", - "value": 0.4503371715545654 + "value": 0.4503549933433533 } }, { @@ -10814,7 +10814,7 @@ }, "Z": { "type": "float", - "value": 0.4495921134948731 + "value": 0.4496085941791534 } }, { @@ -11039,7 +11039,7 @@ }, "Z": { "type": "float", - "value": 0.447505921125412 + "value": 0.4475187063217163 } }, { @@ -11493,7 +11493,7 @@ }, "Z": { "type": "float", - "value": 0.4601421356201172 + "value": 0.4601479768753052 } }, { @@ -11718,7 +11718,7 @@ }, "Z": { "type": "float", - "value": 0.4593654870986939 + "value": 0.4593815207481384 } }, { @@ -12172,7 +12172,7 @@ }, "Z": { "type": "float", - "value": 0.4582628011703491 + "value": 0.458247035741806 } }, { @@ -12397,7 +12397,7 @@ }, "Z": { "type": "float", - "value": 0.4586800336837769 + "value": 0.4586650431156158 } }, { @@ -12626,7 +12626,7 @@ }, "Z": { "type": "float", - "value": 6.629160881042481 + "value": 6.62404203414917 } }, { @@ -13909,7 +13909,7 @@ }, "Z": { "type": "float", - "value": 0.5999935269355774 + "value": 4.350168704986572 } }, { @@ -15725,7 +15725,7 @@ }, "Z": { "type": "float", - "value": -5.7220458984375e-006 + "value": 1.111371278762817 } } ] @@ -15965,7 +15965,7 @@ }, "ZPosition": { "type": "float", - "value": 0.001321792602539063 + "value": -5.7220458984375e-006 } }, { @@ -21582,7 +21582,7 @@ }, "PointZ": { "type": "float", - "value": 0.02499952353537083 + "value": 0.02500000037252903 } }, { @@ -21597,7 +21597,7 @@ }, "PointZ": { "type": "float", - "value": 0.0350000225007534 + "value": 0.0350000187754631 } } ] @@ -21785,7 +21785,7 @@ }, "PointZ": { "type": "float", - "value": 0.03499998897314072 + "value": 0.0350000187754631 } }, { @@ -22033,7 +22033,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500049956142902 + "value": 0.02500005997717381 } }, { @@ -22048,7 +22048,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500000037252903 + "value": 0.03499998897314072 } }, { @@ -22063,7 +22063,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500049956142902 + "value": 0.02500005997717381 } } ] @@ -22221,7 +22221,7 @@ }, "PointZ": { "type": "float", - "value": 0.03499998897314072 + "value": 0.0350000187754631 } }, { @@ -22251,7 +22251,7 @@ }, "PointZ": { "type": "float", - "value": 0.03499998897314072 + "value": 0.0350000187754631 } }, { @@ -22438,7 +22438,7 @@ }, "PointZ": { "type": "float", - "value": 0.03499998897314072 + "value": 0.0350000187754631 } }, { @@ -22842,7 +22842,7 @@ }, "PointZ": { "type": "float", - "value": 0.03499998897314072 + "value": 0.0350000187754631 } }, { @@ -23029,7 +23029,7 @@ }, "PointZ": { "type": "float", - "value": 0.03499999269843102 + "value": 0.0350000187754631 } }, { @@ -23044,7 +23044,7 @@ }, "PointZ": { "type": "float", - "value": 0.03499998897314072 + "value": 0.0350000187754631 } }, { @@ -23217,7 +23217,7 @@ }, "PointZ": { "type": "float", - "value": 0.02633013762533665 + "value": 0.02500000037252903 } }, { @@ -23232,7 +23232,7 @@ }, "PointZ": { "type": "float", - "value": 0.02633013762533665 + "value": 0.02500000037252903 } }, { @@ -23247,7 +23247,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500000037252903 + "value": 0.03499998897314072 } }, { @@ -23262,7 +23262,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500005997717381 + "value": 0.03499999269843102 } }, { @@ -23277,7 +23277,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500049956142902 + "value": 0.02500005997717381 } }, { @@ -23292,7 +23292,7 @@ }, "PointZ": { "type": "float", - "value": 0.02499988116323948 + "value": 0.02500000037252903 } }, { @@ -23307,7 +23307,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500000037252903 + "value": 0.03499998897314072 } }, { @@ -23322,7 +23322,7 @@ }, "PointZ": { "type": "float", - "value": 0.02633013762533665 + "value": 0.02500000037252903 } } ] @@ -23480,7 +23480,7 @@ }, "PointZ": { "type": "float", - "value": 0.0273000244051218 + "value": 0.02500000037252903 } }, { @@ -23495,7 +23495,7 @@ }, "PointZ": { "type": "float", - "value": 0.02499994076788425 + "value": 0.03499998897314072 } }, { @@ -23510,7 +23510,7 @@ }, "PointZ": { "type": "float", - "value": 0.02499994076788425 + "value": 0.03499998897314072 } }, { @@ -23540,7 +23540,7 @@ }, "PointZ": { "type": "float", - "value": 0.02403059042990208 + "value": 0.02500000037252903 } }, { @@ -23555,7 +23555,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500000037252903 + "value": 0.03499998897314072 } }, { @@ -23570,7 +23570,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500000037252903 + "value": 0.03499998897314072 } } ] @@ -23743,7 +23743,7 @@ }, "PointZ": { "type": "float", - "value": 0.0273000244051218 + "value": 0.02500000037252903 } }, { @@ -23758,7 +23758,7 @@ }, "PointZ": { "type": "float", - "value": 0.0273000244051218 + "value": 0.02500000037252903 } }, { @@ -23773,7 +23773,7 @@ }, "PointZ": { "type": "float", - "value": 0.02499994076788425 + "value": 0.02500000037252903 } }, { @@ -23803,7 +23803,7 @@ }, "PointZ": { "type": "float", - "value": 0.02408995665609837 + "value": 0.02500005997717381 } }, { @@ -23818,7 +23818,7 @@ }, "PointZ": { "type": "float", - "value": 0.02499988116323948 + "value": 0.03499998897314072 } }, { @@ -23833,7 +23833,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500049956142902 + "value": 0.02500005997717381 } }, { @@ -23848,7 +23848,7 @@ }, "PointZ": { "type": "float", - "value": 0.0250005591660738 + "value": 0.02500005997717381 } }, { @@ -23863,7 +23863,7 @@ }, "PointZ": { "type": "float", - "value": 0.02403011359274387 + "value": 0.02500000037252903 } }, { @@ -23878,7 +23878,7 @@ }, "PointZ": { "type": "float", - "value": 0.02403011359274387 + "value": 0.02500000037252903 } }, { @@ -23893,7 +23893,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500005997717381 + "value": 0.02500000037252903 } }, { @@ -23908,7 +23908,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500005997717381 + "value": 0.02500000037252903 } }, { @@ -23923,7 +23923,7 @@ }, "PointZ": { "type": "float", - "value": 0.02499988116323948 + "value": 0.02500000037252903 } }, { @@ -24111,7 +24111,7 @@ }, "PointZ": { "type": "float", - "value": 0.0273000244051218 + "value": 0.02500000037252903 } }, { @@ -24126,7 +24126,7 @@ }, "PointZ": { "type": "float", - "value": 0.0273000244051218 + "value": 0.02500000037252903 } }, { @@ -24141,7 +24141,7 @@ }, "PointZ": { "type": "float", - "value": 0.02499994076788425 + "value": 0.02500000037252903 } }, { @@ -24171,7 +24171,7 @@ }, "PointZ": { "type": "float", - "value": 0.02408995665609837 + "value": 0.02500005997717381 } }, { @@ -24186,7 +24186,7 @@ }, "PointZ": { "type": "float", - "value": 0.02499988116323948 + "value": 0.03499998897314072 } }, { @@ -24201,7 +24201,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500049956142902 + "value": 0.02500005997717381 } }, { @@ -24216,7 +24216,7 @@ }, "PointZ": { "type": "float", - "value": 0.0250005591660738 + "value": 0.02500005997717381 } }, { @@ -24231,7 +24231,7 @@ }, "PointZ": { "type": "float", - "value": 0.02403011359274387 + "value": 0.02500000037252903 } }, { @@ -24246,7 +24246,7 @@ }, "PointZ": { "type": "float", - "value": 0.02403011359274387 + "value": 0.02500000037252903 } }, { @@ -24261,7 +24261,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500005997717381 + "value": 0.02500000037252903 } }, { @@ -24276,7 +24276,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500005997717381 + "value": 0.02500000037252903 } }, { @@ -24291,7 +24291,7 @@ }, "PointZ": { "type": "float", - "value": 0.02499988116323948 + "value": 0.02500000037252903 } }, { @@ -24464,7 +24464,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500000037252903 + "value": 0.03499998897314072 } }, { @@ -24494,7 +24494,7 @@ }, "PointZ": { "type": "float", - "value": 0.0273000244051218 + "value": 0.02500000037252903 } }, { @@ -24509,7 +24509,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500000037252903 + "value": 0.03499998897314072 } }, { @@ -24524,7 +24524,7 @@ }, "PointZ": { "type": "float", - "value": 0.02403011359274387 + "value": 0.03499998897314072 } }, { @@ -24569,7 +24569,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500000037252903 + "value": 0.03499998897314072 } } ] @@ -24727,7 +24727,7 @@ }, "PointZ": { "type": "float", - "value": 0.02499994076788425 + "value": 0.003829488065093756 } }, { @@ -24757,7 +24757,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500049956142902 + "value": 0.02500005997717381 } }, { @@ -24772,7 +24772,7 @@ }, "PointZ": { "type": "float", - "value": 0.02499994076788425 + "value": 0.03499998897314072 } }, { @@ -24787,7 +24787,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500000037252903 + "value": 0.03499998897314072 } }, { @@ -24975,7 +24975,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500049956142902 + "value": 0.02500005997717381 } }, { @@ -25005,7 +25005,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500049956142902 + "value": 0.02500005997717381 } }, { @@ -25035,7 +25035,7 @@ }, "PointZ": { "type": "float", - "value": 0.02408995665609837 + "value": 0.02500005997717381 } }, { @@ -25065,7 +25065,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500005997717381 + "value": 0.02500000037252903 } }, { @@ -25080,7 +25080,7 @@ }, "PointZ": { "type": "float", - "value": 0.02988394536077976 + "value": 0.02499994076788425 } }, { @@ -25095,7 +25095,7 @@ }, "PointZ": { "type": "float", - "value": 0.02988394536077976 + "value": 0.02499994076788425 } }, { @@ -25110,7 +25110,7 @@ }, "PointZ": { "type": "float", - "value": 0.02988394536077976 + "value": 0.02499994076788425 } }, { @@ -25125,7 +25125,7 @@ }, "PointZ": { "type": "float", - "value": 0.02403059042990208 + "value": 0.02500000037252903 } } ] @@ -25313,7 +25313,7 @@ }, "PointZ": { "type": "float", - "value": 0.02499994076788425 + "value": 0.02500000037252903 } }, { @@ -25561,7 +25561,7 @@ }, "PointZ": { "type": "float", - "value": 0.02633013762533665 + "value": 0.02500000037252903 } }, { @@ -25591,7 +25591,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500005997717381 + "value": 0.03499999269843102 } }, { @@ -25606,7 +25606,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500005997717381 + "value": 0.02500000037252903 } }, { @@ -25621,7 +25621,7 @@ }, "PointZ": { "type": "float", - "value": 0.08388271182775497 + "value": 0.02500005997717381 } } ] @@ -25809,7 +25809,7 @@ }, "PointZ": { "type": "float", - "value": 0.0250005591660738 + "value": 0.02500005997717381 } }, { @@ -25869,7 +25869,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500000037252903 + "value": 0.03499998897314072 } }, { @@ -25884,7 +25884,7 @@ }, "PointZ": { "type": "float", - "value": 0.02150025404989719 + "value": 0.02500000037252903 } }, { @@ -25899,7 +25899,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500005997717381 + "value": 0.02500000037252903 } } ] @@ -26072,7 +26072,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500000037252903 + "value": 0.03499998897314072 } }, { @@ -26087,7 +26087,7 @@ }, "PointZ": { "type": "float", - "value": 0.02988394536077976 + "value": 0.02499994076788425 } }, { @@ -26102,7 +26102,7 @@ }, "PointZ": { "type": "float", - "value": 0.02403011359274387 + "value": 0.02500000037252903 } }, { @@ -26132,7 +26132,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500000037252903 + "value": 0.03499998897314072 } }, { @@ -26177,7 +26177,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500000037252903 + "value": 0.03499998897314072 } }, { @@ -26192,7 +26192,7 @@ }, "PointZ": { "type": "float", - "value": 0.02988394536077976 + "value": 0.02499994076788425 } }, { @@ -26380,7 +26380,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500049956142902 + "value": 0.02500005997717381 } }, { @@ -26395,7 +26395,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500049956142902 + "value": 0.02500005997717381 } }, { @@ -26410,7 +26410,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500049956142902 + "value": 0.02500005997717381 } }, { @@ -26425,7 +26425,7 @@ }, "PointZ": { "type": "float", - "value": 0.0250005591660738 + "value": 0.02500005997717381 } } ] @@ -26583,7 +26583,7 @@ }, "PointZ": { "type": "float", - "value": 0.02499994076788425 + "value": 0.02500000037252903 } }, { @@ -26598,7 +26598,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500049956142902 + "value": 0.02500005997717381 } }, { @@ -26613,7 +26613,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500049956142902 + "value": 0.02500005997717381 } }, { @@ -26643,7 +26643,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500005997717381 + "value": 0.02500000037252903 } } ] @@ -26801,7 +26801,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500000037252903 + "value": 0.03499998897314072 } }, { @@ -26816,7 +26816,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500005997717381 + "value": 0.03499999269843102 } }, { @@ -26831,7 +26831,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500000037252903 + "value": 0.03499998897314072 } }, { @@ -26846,7 +26846,7 @@ }, "PointZ": { "type": "float", - "value": 0.02499994076788425 + "value": 0.03499998897314072 } } ] @@ -27032,7 +27032,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500000037252903 + "value": 0.03499998897314072 } }, { @@ -27047,7 +27047,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500000037252903 + "value": 0.03499998897314072 } }, { @@ -27062,7 +27062,7 @@ }, "PointZ": { "type": "float", - "value": 0.02500000037252903 + "value": 0.03499998897314072 } } ] @@ -31080,7 +31080,7 @@ }, "ZPosition": { "type": "float", - "value": 0.001321792602539063 + "value": -5.7220458984375e-006 } }, { @@ -31386,7 +31386,7 @@ }, "ZPosition": { "type": "float", - "value": -1.192092895507813e-007 + "value": -5.7220458984375e-006 } } ] diff --git a/_module/ncs/prc_pwondeath.ncs b/_module/ncs/prc_pwondeath.ncs index 85aa4617..305c81be 100644 Binary files a/_module/ncs/prc_pwondeath.ncs and b/_module/ncs/prc_pwondeath.ncs differ diff --git a/_module/nss/prc_pwondeath.nss b/_module/nss/prc_pwondeath.nss index e602d23f..6f00a73a 100644 --- a/_module/nss/prc_pwondeath.nss +++ b/_module/nss/prc_pwondeath.nss @@ -6,67 +6,122 @@ Just hands out XP */ //::////////////////////////////////////////////////// -//:: Copyright (c) 2002 Floodgate Entertainment -//:: Created By: Naomi Novik -//:: Created On: 12/22/2002 -//::////////////////////////////////////////////////// +#include "x0_i0_partywide" +#include "prc_inc_racial" -void RndDropGear(object oNPC); +void RndDropGear(object oSelf, object oKiller); -void RndDropGear(object oNPC) +void RndDropGold(object oSelf, object oKiller); + +void RndDropGold(object oSelf, object oKiller) { //:: Declare major variables - object oArmor = GetItemInSlot(INVENTORY_SLOT_CHEST, oNPC); - object oWeapon = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oNPC); - object oShield = GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oNPC); - object oHelm = GetItemInSlot(INVENTORY_SLOT_HEAD, oNPC); - object oNecklace = GetItemInSlot(INVENTORY_SLOT_NECK, oNPC); - object oArms = GetItemInSlot(INVENTORY_SLOT_ARMS, oNPC); - object oArrows = GetItemInSlot(INVENTORY_SLOT_ARROWS, oNPC); - object oBelt = GetItemInSlot(INVENTORY_SLOT_BELT, oNPC); - object oBolts = GetItemInSlot(INVENTORY_SLOT_BOLTS, oNPC); - object oBoots = GetItemInSlot(INVENTORY_SLOT_BOOTS, oNPC); - object oBullets = GetItemInSlot(INVENTORY_SLOT_BULLETS, oNPC); - object oCloak = GetItemInSlot(INVENTORY_SLOT_CLOAK, oNPC); - object oLeftRing = GetItemInSlot(INVENTORY_SLOT_LEFTRING, oNPC); - object oRightRing = GetItemInSlot(INVENTORY_SLOT_RIGHTRING, oNPC); + + int iHD = GetHitDice(oKiller); + int iInt = GetAbilityScore(oKiller, ABILITY_INTELLIGENCE, TRUE); + int iIntB = GetAbilityModifier(ABILITY_INTELLIGENCE, oKiller); + int iRacial = GetRacialType(oKiller); + int iBaseGP = 1; + int iRewardGP; + int iPartyGP; + +//:: Take one off GetNumberPartyMembers(), see known bugs + int nMembers = GetNumberPartyMembers(oKiller) - 1; + + if (iIntB < 0) { iIntB = 0;} + + iRewardGP = (iBaseGP * d4(1)) + (iIntB * d4(1)) + (iHD * 5); + + iPartyGP = iRewardGP * nMembers; + + if (iRacial == RACIAL_TYPE_ANIMAL || + iRacial == RACIAL_TYPE_BEAST || + iRacial == RACIAL_TYPE_MAGICAL_BEAST || + iRacial == RACIAL_TYPE_CONSTRUCT || + iRacial == RACIAL_TYPE_OOZE || + iRacial == RACIAL_TYPE_PLANT || + iRacial == RACIAL_TYPE_VERMIN) + { + iPartyGP = 0; + } + + if (iInt <= 5 && + iRacial == RACIAL_TYPE_UNDEAD || + iRacial == RACIAL_TYPE_ELEMENTAL) + { + iPartyGP = 0; + } + + if (iPartyGP > 1) + { + GiveGoldToAll(oKiller, iPartyGP); + } +} + +void RndDropGear(object oSelf, object oKiller) +{ +//:: Declare major variables + object oArmor = GetItemInSlot(INVENTORY_SLOT_CHEST, oSelf); + object oWeapon = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oSelf); + object oShield = GetItemInSlot(INVENTORY_SLOT_LEFTHAND, oSelf); + object oHelm = GetItemInSlot(INVENTORY_SLOT_HEAD, oSelf); + object oNecklace = GetItemInSlot(INVENTORY_SLOT_NECK, oSelf); + object oArms = GetItemInSlot(INVENTORY_SLOT_ARMS, oSelf); + object oArrows = GetItemInSlot(INVENTORY_SLOT_ARROWS, oSelf); + object oBelt = GetItemInSlot(INVENTORY_SLOT_BELT, oSelf); + object oBolts = GetItemInSlot(INVENTORY_SLOT_BOLTS, oSelf); + object oBoots = GetItemInSlot(INVENTORY_SLOT_BOOTS, oSelf); + object oBullets = GetItemInSlot(INVENTORY_SLOT_BULLETS, oSelf); + object oCloak = GetItemInSlot(INVENTORY_SLOT_CLOAK, oSelf); + object oLeftRing = GetItemInSlot(INVENTORY_SLOT_LEFTRING, oSelf); + object oRightRing = GetItemInSlot(INVENTORY_SLOT_RIGHTRING, oSelf); //:: Give a 3% chance to drop each type of equipment - int bDropArmor = d100() > 97; - int bDropWeapon = d100() > 97; - int bDropShield = d100() > 97; - int bDropHelm = d100() > 97; - int bDropNecklace = d100() > 97; - int bDropArms = d100() > 97; - int bDropArrows = d100() > 97; - int bDropBelt = d100() > 97; - int bDropBolts = d100() > 97; - int bDropBoots = d100() > 97; - int bDropBullets = d100() > 97; - int bDropCloak = d100() > 97; - int bDropLeftRing = d100() > 97; - int bDropRightRing = d100() > 97; + int bDropArmor = d100() > 97; + int bDropWeapon = d100() > 97; + int bDropShield = d100() > 97; + int bDropHelm = d100() > 97; + int bDropNecklace = d100() > 97; + int bDropArms = d100() > 97; + int bDropArrows = d100() > 97; + int bDropBelt = d100() > 97; + int bDropBolts = d100() > 97; + int bDropBoots = d100() > 97; + int bDropBullets = d100() > 97; + int bDropCloak = d100() > 97; + int bDropLeftRing = d100() > 97; + int bDropRightRing = d100() > 97; //:: Set Droppable Flag as determined above. - SetDroppableFlag(oArmor, bDropArmor); - SetDroppableFlag(oWeapon, bDropWeapon); - SetDroppableFlag(oShield, bDropShield); - SetDroppableFlag(oHelm, bDropHelm); - SetDroppableFlag(oNecklace, bDropNecklace); - SetDroppableFlag(oArms, bDropArms); - SetDroppableFlag(oArrows, bDropArrows); - SetDroppableFlag(oBelt, bDropBelt); - SetDroppableFlag(oBolts, bDropBolts); - SetDroppableFlag(oBoots, bDropBoots); - SetDroppableFlag(oBullets, bDropBullets); - SetDroppableFlag(oCloak, bDropCloak); - SetDroppableFlag(oLeftRing, bDropLeftRing); - SetDroppableFlag(oRightRing, bDropRightRing); + SetDroppableFlag(oArmor, bDropArmor); + SetDroppableFlag(oWeapon, bDropWeapon); + SetDroppableFlag(oShield, bDropShield); + SetDroppableFlag(oHelm, bDropHelm); + SetDroppableFlag(oNecklace, bDropNecklace); + SetDroppableFlag(oArms, bDropArms); + SetDroppableFlag(oArrows, bDropArrows); + SetDroppableFlag(oBelt, bDropBelt); + SetDroppableFlag(oBolts, bDropBolts); + SetDroppableFlag(oBoots, bDropBoots); + SetDroppableFlag(oBullets, bDropBullets); + SetDroppableFlag(oCloak, bDropCloak); + SetDroppableFlag(oLeftRing, bDropLeftRing); + SetDroppableFlag(oRightRing, bDropRightRing); + if (!bDropArmor && !bDropWeapon && !bDropShield && !bDropHelm && !bDropNecklace && !bDropArms && + !bDropArrows && !bDropBelt && !bDropBolts && !bDropBoots && !bDropBullets && !bDropCloak && + !bDropLeftRing && !bDropRightRing) + { + RndDropGold(oSelf, oKiller); + } } - + + void main() { +//:: Declare major variables + object oKiller = GetLastKiller(); + object oSelf = OBJECT_SELF; - RndDropGear(OBJECT_SELF); + RndDropGear(oSelf, oKiller); } \ No newline at end of file diff --git a/_module/uti/cursed.uti.json b/_module/uti/cursed.uti.json index 2d7ae440..fcd71a36 100644 --- a/_module/uti/cursed.uti.json +++ b/_module/uti/cursed.uti.json @@ -64,7 +64,7 @@ }, "Plot": { "type": "byte", - "value": 1 + "value": 0 }, "PropertiesList": { "type": "list", diff --git a/_module/uti/diamondsword.uti.json b/_module/uti/diamondsword.uti.json index 66fb3c06..8d81cf9d 100644 --- a/_module/uti/diamondsword.uti.json +++ b/_module/uti/diamondsword.uti.json @@ -51,7 +51,7 @@ }, "ModelPart3": { "type": "byte", - "value": 71 + "value": 72 }, "PaletteID": { "type": "byte", @@ -59,7 +59,7 @@ }, "Plot": { "type": "byte", - "value": 1 + "value": 0 }, "PropertiesList": { "type": "list", @@ -309,6 +309,6 @@ }, "xModelPart3": { "type": "word", - "value": 71 + "value": 72 } } diff --git a/_module/uti/rhazhidscurse.uti.json b/_module/uti/rhazhidscurse.uti.json index 5fc93bf5..9d1c625d 100644 --- a/_module/uti/rhazhidscurse.uti.json +++ b/_module/uti/rhazhidscurse.uti.json @@ -66,7 +66,7 @@ }, "Plot": { "type": "byte", - "value": 1 + "value": 0 }, "PropertiesList": { "type": "list", diff --git a/_release/Path of Ascension [PRC8-CEP3].7z b/_release/Path of Ascension [PRC8-CEP3].7z new file mode 100644 index 00000000..028379d2 Binary files /dev/null and b/_release/Path of Ascension [PRC8-CEP3].7z differ diff --git a/_release/PoA Public [PRC8-CEP3].7z b/_release/PoA Public [PRC8-CEP3].7z deleted file mode 100644 index 6bfa3042..00000000 Binary files a/_release/PoA Public [PRC8-CEP3].7z and /dev/null differ