Enabled default treasure/loot system

Enabled default treasure/loot system.  Updated release archive.
This commit is contained in:
Jaysyn904 2024-01-25 23:45:37 -05:00
parent f9f89b27cc
commit 2b4380d613
8 changed files with 5093 additions and 87 deletions

View File

@ -32,6 +32,10 @@
"type": "dword", "type": "dword",
"value": 4 "value": 4
}, },
"FogClipDist": {
"type": "float",
"value": 45.0
},
"Height": { "Height": {
"type": "int", "type": "int",
"value": 12 "value": 12
@ -118,6 +122,10 @@
"type": "byte", "type": "byte",
"value": 5 "value": 5
}, },
"SkyBox": {
"type": "byte",
"value": 0
},
"SunAmbientColor": { "SunAmbientColor": {
"type": "dword", "type": "dword",
"value": 4605510 "value": 4605510
@ -6345,7 +6353,7 @@
}, },
"Version": { "Version": {
"type": "dword", "type": "dword",
"value": 10 "value": 11
}, },
"Width": { "Width": {
"type": "int", "type": "int",

File diff suppressed because it is too large Load Diff

View File

@ -451,7 +451,7 @@
}, },
"Mod_XPScale": { "Mod_XPScale": {
"type": "byte", "type": "byte",
"value": 10 "value": 14
}, },
"VarTable": { "VarTable": {
"type": "list", "type": "list",
@ -665,6 +665,21 @@
"type": "int", "type": "int",
"value": 1 "value": 1
} }
},
{
"__struct_id": 0,
"Name": {
"type": "cexostring",
"value": "X2_L_NOTREASURE"
},
"Type": {
"type": "dword",
"value": 1
},
"Value": {
"type": "int",
"value": 0
}
} }
] ]
} }

View File

@ -2583,7 +2583,7 @@
"__struct_id": 0, "__struct_id": 0,
"CR": { "CR": {
"type": "float", "type": "float",
"value": 6.0 "value": 7.0
}, },
"FACTION": { "FACTION": {
"type": "cexostring", "type": "cexostring",

Binary file not shown.

View File

@ -0,0 +1,20 @@
//:://////////////////////////////////////////////////
//:: prc_pwonspawn
/*
* Treasure script
*
*/
//:://////////////////////////////////////////////////
#include "x0_i0_treasure"
void main()
{
//* Create a small amount of treasure on the creature
if ((GetLocalInt(GetModule(), "X2_L_NOTREASURE") == FALSE))
{
CTG_GenerateNPCTreasure(TREASURE_TYPE_MONSTER, OBJECT_SELF);
}
}

View File

@ -14,7 +14,7 @@
}, },
"ChallengeRating": { "ChallengeRating": {
"type": "float", "type": "float",
"value": 6.0 "value": 7.0
}, },
"ClassList": { "ClassList": {
"type": "list", "type": "list",
@ -52,6 +52,10 @@
"type": "short", "type": "short",
"value": 80 "value": 80
}, },
"DecayTime": {
"type": "dword",
"value": 0
},
"Deity": { "Deity": {
"type": "cexostring", "type": "cexostring",
"value": "" "value": ""
@ -186,6 +190,10 @@
"type": "byte", "type": "byte",
"value": 1 "value": 1
}, },
"IsImmortal": {
"type": "byte",
"value": 0
},
"IsPC": { "IsPC": {
"type": "byte", "type": "byte",
"value": 0 "value": 0
@ -218,6 +226,10 @@
"type": "byte", "type": "byte",
"value": 0 "value": 0
}, },
"Lootable": {
"type": "byte",
"value": 0
},
"MaxHitPoints": { "MaxHitPoints": {
"type": "short", "type": "short",
"value": 80 "value": 80
@ -446,6 +458,139 @@
"value": 0 "value": 0
} }
}, },
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{
"__struct_id": 0,
"Rank": {
"type": "byte",
"value": 0
}
},
{ {
"__struct_id": 0, "__struct_id": 0,
"Rank": { "Rank": {
@ -463,6 +608,10 @@
"type": "list", "type": "list",
"value": [] "value": []
}, },
"StartingPackage": {
"type": "byte",
"value": 4
},
"Str": { "Str": {
"type": "byte", "type": "byte",
"value": 15 "value": 15
@ -475,8 +624,8 @@
"type": "cexostring", "type": "cexostring",
"value": "NW_ORCB" "value": "NW_ORCB"
}, },
"Tail": { "Tail_New": {
"type": "byte", "type": "dword",
"value": 0 "value": 0
}, },
"TemplateList": { "TemplateList": {
@ -495,8 +644,8 @@
"type": "short", "type": "short",
"value": 0 "value": 0
}, },
"Wings": { "Wings_New": {
"type": "byte", "type": "dword",
"value": 0 "value": 0
}, },
"Wis": { "Wis": {