Fixed Nicky's store

Fixed Nicky's store.  Made Dirt Mounds & Polar Bears respawn.  Full compile.
This commit is contained in:
Jaysyn904
2025-03-18 22:44:10 -04:00
parent 00d2c183e8
commit f68f638e05
21 changed files with 28430 additions and 2166 deletions

View File

@@ -11163,13 +11163,17 @@
}
]
},
"TileBrdrDisabled": {
"type": "byte",
"value": 0
},
"Tileset": {
"type": "resref",
"value": "tts01"
},
"Version": {
"type": "dword",
"value": 21
"value": 23
},
"Width": {
"type": "int",

View File

@@ -11163,13 +11163,17 @@
}
]
},
"TileBrdrDisabled": {
"type": "byte",
"value": 0
},
"Tileset": {
"type": "resref",
"value": "tts01"
},
"Version": {
"type": "dword",
"value": 24
"value": 25
},
"Width": {
"type": "int",

View File

@@ -929,13 +929,17 @@
}
]
},
"TileBrdrDisabled": {
"type": "byte",
"value": 0
},
"Tileset": {
"type": "resref",
"value": "tic01"
},
"Version": {
"type": "dword",
"value": 15
"value": 16
},
"Width": {
"type": "int",

View File

@@ -268,27 +268,6 @@
"value": "Painting on Easel"
}
},
{
"__struct_id": 9,
"Comment": {
"type": "cexostring",
"value": "volition's Bio Placeables by volition\r\n"
}
},
{
"__struct_id": 9,
"Comment": {
"type": "cexostring",
"value": "volition's Bio Placeables by volition\r\n"
}
},
{
"__struct_id": 9,
"Comment": {
"type": "cexostring",
"value": "volition's Bio Placeables by volition\r\n"
}
},
{
"__struct_id": 9,
"Comment": {
@@ -302,6 +281,27 @@
"type": "cexostring",
"value": ""
}
},
{
"__struct_id": 9,
"Comment": {
"type": "cexostring",
"value": "Dirt Mound"
}
},
{
"__struct_id": 9,
"Comment": {
"type": "cexostring",
"value": "Dirt Mound"
}
},
{
"__struct_id": 9,
"Comment": {
"type": "cexostring",
"value": "Dirt Mound"
}
}
]
},

File diff suppressed because it is too large Load Diff

View File

@@ -493,7 +493,7 @@
"__struct_id": 2,
"Orientation": {
"type": "float",
"value": 3.092477798461914
"value": 3.092477321624756
},
"X": {
"type": "float",
@@ -1093,7 +1093,7 @@
},
"CR": {
"type": "float",
"value": 18.0
"value": 20.0
},
"ResRef": {
"type": "resref",
@@ -1101,14 +1101,14 @@
},
"SingleSpawn": {
"type": "byte",
"value": 1
"value": 0
}
}
]
},
"Difficulty": {
"type": "int",
"value": 5
"value": 0
},
"DifficultyIndex": {
"type": "int",
@@ -1227,11 +1227,11 @@
},
"ResetTime": {
"type": "int",
"value": 1000
"value": 3600
},
"Respawns": {
"type": "int",
"value": 2
"value": -1
},
"SpawnOption": {
"type": "int",

View File

@@ -1557,6 +1557,10 @@
"type": "resref",
"value": "cnrholywater"
},
"xModelPart1": {
"type": "word",
"value": 6
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -5099,6 +5103,10 @@
"type": "resref",
"value": "cnrpecanfruit"
},
"xModelPart1": {
"type": "word",
"value": 12
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -5232,6 +5240,10 @@
"type": "resref",
"value": "cnrpecanfruit"
},
"xModelPart1": {
"type": "word",
"value": 12
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -5565,6 +5577,10 @@
"type": "resref",
"value": "cnrsageleaf"
},
"xModelPart1": {
"type": "word",
"value": 17
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -6846,6 +6862,18 @@
"type": "resref",
"value": "holysymbol"
},
"xModelPart1": {
"type": "word",
"value": 53
},
"xModelPart2": {
"type": "word",
"value": 42
},
"xModelPart3": {
"type": "word",
"value": 12
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -6947,6 +6975,10 @@
"type": "resref",
"value": "cnrblkcohoshroot"
},
"xModelPart1": {
"type": "word",
"value": 47
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -7048,6 +7080,10 @@
"type": "resref",
"value": "eldenser"
},
"xModelPart1": {
"type": "word",
"value": 87
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -7145,6 +7181,10 @@
"type": "resref",
"value": "nw_it_gold001"
},
"xModelPart1": {
"type": "word",
"value": 1
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -8886,6 +8926,18 @@
"type": "resref",
"value": "nw_it_mboots001"
},
"xModelPart1": {
"type": "word",
"value": 11
},
"xModelPart2": {
"type": "word",
"value": 11
},
"xModelPart3": {
"type": "word",
"value": 11
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -8917,109 +8969,6 @@
"value": [
{
"__struct_id": 0,
"AddCost": {
"type": "dword",
"value": 486605056
},
"BaseItem": {
"type": "int",
"value": 0
},
"Charges": {
"type": "byte",
"value": 0
},
"Cost": {
"type": "dword",
"value": 486884896
},
"Cursed": {
"type": "byte",
"value": 0
},
"DescIdentified": {
"type": "cexolocstring",
"value": {}
},
"Description": {
"type": "cexolocstring",
"value": {}
},
"Identified": {
"type": "byte",
"value": 0
},
"LocalizedName": {
"type": "cexolocstring",
"value": {}
},
"ModelPart1": {
"type": "byte",
"value": 184
},
"ModelPart2": {
"type": "byte",
"value": 0
},
"ModelPart3": {
"type": "byte",
"value": 0
},
"Plot": {
"type": "byte",
"value": 255
},
"PropertiesList": {
"type": "list",
"value": []
},
"Repos_PosX": {
"type": "word",
"value": 0
},
"Repos_Posy": {
"type": "word",
"value": 0
},
"StackSize": {
"type": "word",
"value": 13992
},
"Stolen": {
"type": "byte",
"value": 0
},
"Tag": {
"type": "cexostring",
"value": ""
},
"TemplateResRef": {
"type": "resref",
"value": "cnrfullplatecob"
},
"XOrientation": {
"type": "float",
"value": 0.0
},
"XPosition": {
"type": "float",
"value": -1.0
},
"YOrientation": {
"type": "float",
"value": 1.0
},
"YPosition": {
"type": "float",
"value": -1.0
},
"ZPosition": {
"type": "float",
"value": -1.0
}
},
{
"__struct_id": 1,
"AddCost": {
"type": "dword",
"value": 0
@@ -9116,7 +9065,7 @@
},
"Repos_PosX": {
"type": "word",
"value": 1
"value": 0
},
"Repos_Posy": {
"type": "word",
@@ -9138,6 +9087,18 @@
"type": "resref",
"value": "cnrtaxeiron"
},
"xModelPart1": {
"type": "word",
"value": 41
},
"xModelPart2": {
"type": "word",
"value": 41
},
"xModelPart3": {
"type": "word",
"value": 31
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -9160,7 +9121,7 @@
}
},
{
"__struct_id": 2,
"__struct_id": 1,
"AddCost": {
"type": "dword",
"value": 0
@@ -9257,7 +9218,7 @@
},
"Repos_PosX": {
"type": "word",
"value": 2
"value": 1
},
"Repos_Posy": {
"type": "word",
@@ -9279,6 +9240,18 @@
"type": "resref",
"value": "cnrtaxebron"
},
"xModelPart1": {
"type": "word",
"value": 13
},
"xModelPart2": {
"type": "word",
"value": 13
},
"xModelPart3": {
"type": "word",
"value": 23
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -9301,7 +9274,7 @@
}
},
{
"__struct_id": 3,
"__struct_id": 2,
"AddCost": {
"type": "dword",
"value": 0
@@ -9316,7 +9289,7 @@
},
"Cost": {
"type": "dword",
"value": 1804
"value": 3611
},
"Cursed": {
"type": "byte",
@@ -9429,7 +9402,7 @@
},
"Repos_PosX": {
"type": "word",
"value": 3
"value": 2
},
"Repos_Posy": {
"type": "word",
@@ -9451,6 +9424,18 @@
"type": "resref",
"value": "cnrtaxefire"
},
"xModelPart1": {
"type": "word",
"value": 41
},
"xModelPart2": {
"type": "word",
"value": 41
},
"xModelPart3": {
"type": "word",
"value": 31
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -9473,7 +9458,7 @@
}
},
{
"__struct_id": 4,
"__struct_id": 3,
"AddCost": {
"type": "dword",
"value": 0
@@ -9601,7 +9586,7 @@
},
"Repos_PosX": {
"type": "word",
"value": 4
"value": 3
},
"Repos_Posy": {
"type": "word",
@@ -9623,6 +9608,18 @@
"type": "resref",
"value": "cnrtaxeitita"
},
"xModelPart1": {
"type": "word",
"value": 41
},
"xModelPart2": {
"type": "word",
"value": 42
},
"xModelPart3": {
"type": "word",
"value": 32
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -9645,7 +9642,7 @@
}
},
{
"__struct_id": 5,
"__struct_id": 4,
"AddCost": {
"type": "dword",
"value": 0
@@ -9775,7 +9772,7 @@
},
"Repos_PosX": {
"type": "word",
"value": 5
"value": 4
},
"Repos_Posy": {
"type": "word",
@@ -9797,6 +9794,18 @@
"type": "resref",
"value": "cnrtaxesilv"
},
"xModelPart1": {
"type": "word",
"value": 11
},
"xModelPart2": {
"type": "word",
"value": 11
},
"xModelPart3": {
"type": "word",
"value": 21
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -9819,7 +9828,7 @@
}
},
{
"__struct_id": 6,
"__struct_id": 5,
"AddCost": {
"type": "dword",
"value": 0
@@ -9834,7 +9843,7 @@
},
"Cost": {
"type": "dword",
"value": 979
"value": 2392
},
"Cursed": {
"type": "byte",
@@ -9916,7 +9925,7 @@
},
"Repos_PosX": {
"type": "word",
"value": 6
"value": 5
},
"Repos_Posy": {
"type": "word",
@@ -9938,6 +9947,18 @@
"type": "resref",
"value": "cnrtaxeligh"
},
"xModelPart1": {
"type": "word",
"value": 13
},
"xModelPart2": {
"type": "word",
"value": 13
},
"xModelPart3": {
"type": "word",
"value": 13
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -9960,7 +9981,7 @@
}
},
{
"__struct_id": 7,
"__struct_id": 6,
"AddCost": {
"type": "dword",
"value": 0
@@ -9975,7 +9996,7 @@
},
"Cost": {
"type": "dword",
"value": 1804
"value": 3611
},
"Cursed": {
"type": "byte",
@@ -10088,7 +10109,7 @@
},
"Repos_PosX": {
"type": "word",
"value": 7
"value": 6
},
"Repos_Posy": {
"type": "word",
@@ -10110,6 +10131,18 @@
"type": "resref",
"value": "cnrtaxeacid"
},
"xModelPart1": {
"type": "word",
"value": 12
},
"xModelPart2": {
"type": "word",
"value": 12
},
"xModelPart3": {
"type": "word",
"value": 22
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -10261,6 +10294,18 @@
"type": "resref",
"value": "nw_it_mpotion005"
},
"xModelPart1": {
"type": "word",
"value": 22
},
"xModelPart2": {
"type": "word",
"value": 33
},
"xModelPart3": {
"type": "word",
"value": 11
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -10621,6 +10666,10 @@
"type": "resref",
"value": "nw_it_mneck003"
},
"xModelPart1": {
"type": "word",
"value": 7
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -10880,6 +10929,10 @@
"type": "resref",
"value": "x1_it_mring001"
},
"xModelPart1": {
"type": "word",
"value": 22
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -11139,6 +11192,10 @@
"type": "resref",
"value": "x1_it_mring002"
},
"xModelPart1": {
"type": "word",
"value": 22
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -11252,6 +11309,10 @@
"type": "resref",
"value": "zep_lantern"
},
"xModelPart1": {
"type": "word",
"value": 122
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -11544,6 +11605,10 @@
"type": "resref",
"value": "zep_holysyshaund"
},
"xModelPart1": {
"type": "word",
"value": 15
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -11681,6 +11746,10 @@
"type": "resref",
"value": "potionofcurel003"
},
"xModelPart1": {
"type": "word",
"value": 153
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -11818,6 +11887,10 @@
"type": "resref",
"value": "potionofcurel001"
},
"xModelPart1": {
"type": "word",
"value": 153
},
"XOrientation": {
"type": "float",
"value": 0.0
@@ -11955,6 +12028,10 @@
"type": "resref",
"value": "holywaterflask"
},
"xModelPart1": {
"type": "word",
"value": 49
},
"XOrientation": {
"type": "float",
"value": 0.0

View File

@@ -710,6 +710,25 @@
"value": "shopkeep001"
}
},
{
"__struct_id": 0,
"CR": {
"type": "float",
"value": 14.0
},
"FACTION": {
"type": "cexostring",
"value": "Commoner"
},
"NAME": {
"type": "cexostring",
"value": "Nicky"
},
"RESREF": {
"type": "resref",
"value": "nicky"
}
},
{
"__struct_id": 0,
"CR": {
@@ -34145,25 +34164,6 @@
"value": "monodrone"
}
},
{
"__struct_id": 0,
"CR": {
"type": "float",
"value": 14.0
},
"FACTION": {
"type": "cexostring",
"value": "Commoner"
},
"NAME": {
"type": "cexostring",
"value": "Nicky"
},
"RESREF": {
"type": "resref",
"value": "nicky"
}
},
{
"__struct_id": 0,
"CR": {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

BIN
_module/ncs/plc_respawn.ncs Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,22 @@
void RespawnPlaceable(location lSpawn)
{
object oNew = CreateObject(OBJECT_TYPE_PLACEABLE, GetTag(OBJECT_SELF), lSpawn);
SetLocalInt(oNew, "Respawning", FALSE);
}
void main()
{
object oSelf = OBJECT_SELF;
location lSpawn = GetLocation(oSelf);
// Check if placeable is empty
object oItem = GetFirstItemInInventory(oSelf);
if (GetIsObjectValid(oItem))
{
return; // Do nothing if it has items inside
}
SetLocalInt(oSelf, "Respawning", TRUE);
DestroyObject(oSelf, 0.0);
DelayCommand(7200.0, RespawnPlaceable(lSpawn));
}

View File

@@ -0,0 +1,22 @@
void RespawnPlaceable(location lSpawn)
{
object oNew = CreateObject(OBJECT_TYPE_PLACEABLE, GetTag(OBJECT_SELF), lSpawn);
SetLocalInt(oNew, "Respawning", FALSE);
}
void main()
{
object oSelf = OBJECT_SELF;
location lSpawn = GetLocation(oSelf);
// Check if placeable is empty
object oItem = GetFirstItemInInventory(oSelf);
if (GetIsObjectValid(oItem))
{
return; // Do nothing if it has items inside
}
SetLocalInt(oSelf, "Respawning", TRUE);
DestroyObject(oSelf, 0.0);
DelayCommand(7200.0, RespawnPlaceable(lSpawn));
}

View File

@@ -0,0 +1,13 @@
void RespawnPlaceable(location lSpawn)
{
object oNew = CreateObject(OBJECT_TYPE_PLACEABLE, GetResRef(OBJECT_SELF), lSpawn);
}
void main()
{
object oSelf = OBJECT_SELF;
location lSpawn = GetLocation(oSelf);
DestroyObject(oSelf, 0.0);
DelayCommand(7200.0, RespawnPlaceable(lSpawn));
}

View File

@@ -0,0 +1,87 @@
{
"__data_type": "UTI ",
"AddCost": {
"type": "dword",
"value": 1
},
"BaseItem": {
"type": "int",
"value": 29
},
"Charges": {
"type": "byte",
"value": 0
},
"Comment": {
"type": "cexostring",
"value": ""
},
"Cost": {
"type": "dword",
"value": 1
},
"Cursed": {
"type": "byte",
"value": 0
},
"DescIdentified": {
"type": "cexolocstring",
"value": {
"0": "",
"id": 58574
}
},
"Description": {
"type": "cexolocstring",
"value": {
"0": "This skull has soaked in water for a very long time. A thin veneer of slime covers it."
}
},
"Identified": {
"type": "byte",
"value": 1
},
"LocalizedName": {
"type": "cexolocstring",
"value": {
"0": "Eerie Old Skull",
"id": 13502
}
},
"ModelPart1": {
"type": "byte",
"value": 21
},
"PaletteID": {
"type": "byte",
"value": 54
},
"Plot": {
"type": "byte",
"value": 0
},
"PropertiesList": {
"type": "list",
"value": []
},
"StackSize": {
"type": "word",
"value": 1
},
"Stolen": {
"type": "byte",
"value": 0
},
"Tag": {
"type": "cexostring",
"value": "EerieOldSkull"
},
"TemplateResRef": {
"type": "resref",
"value": "ts_eerieoldskull"
},
"xModelPart1": {
"type": "word",
"value": 21
}
}

View File

@@ -0,0 +1,286 @@
{
"__data_type": "UTP ",
"AnimationState": {
"type": "byte",
"value": 0
},
"Appearance": {
"type": "dword",
"value": 2520
},
"AutoRemoveKey": {
"type": "byte",
"value": 0
},
"BodyBag": {
"type": "byte",
"value": 0
},
"CloseLockDC": {
"type": "byte",
"value": 0
},
"Comment": {
"type": "cexostring",
"value": "Dirt Mound"
},
"Conversation": {
"type": "resref",
"value": ""
},
"CurrentHP": {
"type": "short",
"value": 10
},
"Description": {
"type": "cexolocstring",
"value": {
"0": "Just the sort of thing you would find in nature.",
"id": 16810854
}
},
"DisarmDC": {
"type": "byte",
"value": 0
},
"Faction": {
"type": "dword",
"value": 1
},
"Fort": {
"type": "byte",
"value": 5
},
"Hardness": {
"type": "byte",
"value": 5
},
"HasInventory": {
"type": "byte",
"value": 1
},
"HP": {
"type": "short",
"value": 10
},
"Interruptable": {
"type": "byte",
"value": 1
},
"ItemList": {
"type": "list",
"value": [
{
"__struct_id": 0,
"InventoryRes": {
"type": "resref",
"value": "ts_eerieoldskull"
},
"Repos_PosX": {
"type": "word",
"value": 0
},
"Repos_Posy": {
"type": "word",
"value": 0
}
},
{
"__struct_id": 1,
"InventoryRes": {
"type": "resref",
"value": "cnrgraveyarddirt"
},
"Repos_PosX": {
"type": "word",
"value": 2
},
"Repos_Posy": {
"type": "word",
"value": 0
}
},
{
"__struct_id": 2,
"InventoryRes": {
"type": "resref",
"value": "cnrgraveyarddirt"
},
"Repos_PosX": {
"type": "word",
"value": 3
},
"Repos_Posy": {
"type": "word",
"value": 0
}
},
{
"__struct_id": 3,
"InventoryRes": {
"type": "resref",
"value": "cnrgraveyarddirt"
},
"Repos_PosX": {
"type": "word",
"value": 4
},
"Repos_Posy": {
"type": "word",
"value": 0
}
}
]
},
"KeyName": {
"type": "cexostring",
"value": ""
},
"KeyRequired": {
"type": "byte",
"value": 0
},
"Lockable": {
"type": "byte",
"value": 0
},
"Locked": {
"type": "byte",
"value": 0
},
"LocName": {
"type": "cexolocstring",
"value": {
"0": "Dirt Mound",
"id": 16811660
}
},
"OnClick": {
"type": "resref",
"value": ""
},
"OnClosed": {
"type": "resref",
"value": "plc_respawn_oc"
},
"OnDamaged": {
"type": "resref",
"value": ""
},
"OnDeath": {
"type": "resref",
"value": "plc_respawn_od"
},
"OnDisarm": {
"type": "resref",
"value": ""
},
"OnHeartbeat": {
"type": "resref",
"value": ""
},
"OnInvDisturbed": {
"type": "resref",
"value": ""
},
"OnLock": {
"type": "resref",
"value": ""
},
"OnMeleeAttacked": {
"type": "resref",
"value": ""
},
"OnOpen": {
"type": "resref",
"value": ""
},
"OnSpellCastAt": {
"type": "resref",
"value": ""
},
"OnTrapTriggered": {
"type": "resref",
"value": ""
},
"OnUnlock": {
"type": "resref",
"value": ""
},
"OnUsed": {
"type": "resref",
"value": ""
},
"OnUserDefined": {
"type": "resref",
"value": ""
},
"OpenLockDC": {
"type": "byte",
"value": 0
},
"PaletteID": {
"type": "byte",
"value": 11
},
"Plot": {
"type": "byte",
"value": 1
},
"PortraitId": {
"type": "word",
"value": 0
},
"Ref": {
"type": "byte",
"value": 0
},
"Static": {
"type": "byte",
"value": 0
},
"Tag": {
"type": "cexostring",
"value": "AU_DIRT01"
},
"TemplateResRef": {
"type": "resref",
"value": "au_dirt01"
},
"TrapDetectable": {
"type": "byte",
"value": 1
},
"TrapDetectDC": {
"type": "byte",
"value": 0
},
"TrapDisarmable": {
"type": "byte",
"value": 1
},
"TrapFlag": {
"type": "byte",
"value": 0
},
"TrapOneShot": {
"type": "byte",
"value": 1
},
"TrapType": {
"type": "byte",
"value": 0
},
"Type": {
"type": "byte",
"value": 0
},
"Useable": {
"type": "byte",
"value": 1
},
"Will": {
"type": "byte",
"value": 0
}
}