Fixed XP exploit
Fixed XP exploit. Full compile. Updated release archive.
This commit is contained in:
@@ -327,13 +327,17 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"TileBrdrDisabled": {
|
||||||
|
"type": "byte",
|
||||||
|
"value": 0
|
||||||
|
},
|
||||||
"Tileset": {
|
"Tileset": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": "tin01"
|
"value": "tin01"
|
||||||
},
|
},
|
||||||
"Version": {
|
"Version": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 23
|
"value": 24
|
||||||
},
|
},
|
||||||
"Width": {
|
"Width": {
|
||||||
"type": "int",
|
"type": "int",
|
||||||
|
|||||||
@@ -21,6 +21,10 @@
|
|||||||
"value": [
|
"value": [
|
||||||
{
|
{
|
||||||
"__struct_id": 0,
|
"__struct_id": 0,
|
||||||
|
"ActionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Animation": {
|
"Animation": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 40
|
"value": 40
|
||||||
@@ -48,7 +52,11 @@
|
|||||||
"__struct_id": 0,
|
"__struct_id": 0,
|
||||||
"Active": {
|
"Active": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": ""
|
"value": "isnewplayer"
|
||||||
|
},
|
||||||
|
"ConditionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
},
|
},
|
||||||
"Index": {
|
"Index": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
@@ -65,6 +73,10 @@
|
|||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": ""
|
"value": ""
|
||||||
},
|
},
|
||||||
|
"ConditionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Index": {
|
"Index": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 0
|
"value": 0
|
||||||
@@ -97,6 +109,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__struct_id": 1,
|
"__struct_id": 1,
|
||||||
|
"ActionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Animation": {
|
"Animation": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 41
|
"value": 41
|
||||||
@@ -126,6 +142,10 @@
|
|||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": ""
|
"value": ""
|
||||||
},
|
},
|
||||||
|
"ConditionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Index": {
|
"Index": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 1
|
"value": 1
|
||||||
@@ -158,6 +178,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__struct_id": 2,
|
"__struct_id": 2,
|
||||||
|
"ActionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Animation": {
|
"Animation": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 41
|
"value": 41
|
||||||
@@ -187,6 +211,10 @@
|
|||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": ""
|
"value": ""
|
||||||
},
|
},
|
||||||
|
"ConditionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Index": {
|
"Index": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 3
|
"value": 3
|
||||||
@@ -219,6 +247,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__struct_id": 3,
|
"__struct_id": 3,
|
||||||
|
"ActionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Animation": {
|
"Animation": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 0
|
"value": 0
|
||||||
@@ -248,6 +280,10 @@
|
|||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": ""
|
"value": ""
|
||||||
},
|
},
|
||||||
|
"ConditionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Index": {
|
"Index": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 5
|
"value": 5
|
||||||
@@ -263,6 +299,10 @@
|
|||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": ""
|
"value": ""
|
||||||
},
|
},
|
||||||
|
"ConditionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Index": {
|
"Index": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 4
|
"value": 4
|
||||||
@@ -295,6 +335,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__struct_id": 4,
|
"__struct_id": 4,
|
||||||
|
"ActionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Animation": {
|
"Animation": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 40
|
"value": 40
|
||||||
@@ -324,6 +368,10 @@
|
|||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": ""
|
"value": ""
|
||||||
},
|
},
|
||||||
|
"ConditionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Index": {
|
"Index": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 6
|
"value": 6
|
||||||
@@ -356,6 +404,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__struct_id": 5,
|
"__struct_id": 5,
|
||||||
|
"ActionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Animation": {
|
"Animation": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 0
|
"value": 0
|
||||||
@@ -401,6 +453,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__struct_id": 6,
|
"__struct_id": 6,
|
||||||
|
"ActionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Animation": {
|
"Animation": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 40
|
"value": 40
|
||||||
@@ -428,7 +484,11 @@
|
|||||||
"__struct_id": 0,
|
"__struct_id": 0,
|
||||||
"Active": {
|
"Active": {
|
||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": ""
|
"value": "isnewplayer"
|
||||||
|
},
|
||||||
|
"ConditionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
},
|
},
|
||||||
"Index": {
|
"Index": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
@@ -445,6 +505,10 @@
|
|||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": ""
|
"value": ""
|
||||||
},
|
},
|
||||||
|
"ConditionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Index": {
|
"Index": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 7
|
"value": 7
|
||||||
@@ -490,6 +554,10 @@
|
|||||||
"value": [
|
"value": [
|
||||||
{
|
{
|
||||||
"__struct_id": 0,
|
"__struct_id": 0,
|
||||||
|
"ActionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Animation": {
|
"Animation": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 0
|
"value": 0
|
||||||
@@ -515,6 +583,10 @@
|
|||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": ""
|
"value": ""
|
||||||
},
|
},
|
||||||
|
"ConditionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Index": {
|
"Index": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 1
|
"value": 1
|
||||||
@@ -547,6 +619,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__struct_id": 1,
|
"__struct_id": 1,
|
||||||
|
"ActionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Animation": {
|
"Animation": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 0
|
"value": 0
|
||||||
@@ -588,6 +664,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__struct_id": 2,
|
"__struct_id": 2,
|
||||||
|
"ActionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Animation": {
|
"Animation": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 0
|
"value": 0
|
||||||
@@ -613,6 +693,10 @@
|
|||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": "sc_istrained"
|
"value": "sc_istrained"
|
||||||
},
|
},
|
||||||
|
"ConditionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Index": {
|
"Index": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 5
|
"value": 5
|
||||||
@@ -628,6 +712,10 @@
|
|||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": "sc_belowlevel2"
|
"value": "sc_belowlevel2"
|
||||||
},
|
},
|
||||||
|
"ConditionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Index": {
|
"Index": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 3
|
"value": 3
|
||||||
@@ -643,6 +731,10 @@
|
|||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": ""
|
"value": ""
|
||||||
},
|
},
|
||||||
|
"ConditionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Index": {
|
"Index": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 2
|
"value": 2
|
||||||
@@ -675,6 +767,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__struct_id": 3,
|
"__struct_id": 3,
|
||||||
|
"ActionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Animation": {
|
"Animation": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 0
|
"value": 0
|
||||||
@@ -716,6 +812,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__struct_id": 4,
|
"__struct_id": 4,
|
||||||
|
"ActionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Animation": {
|
"Animation": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 0
|
"value": 0
|
||||||
@@ -757,6 +857,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__struct_id": 5,
|
"__struct_id": 5,
|
||||||
|
"ActionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Animation": {
|
"Animation": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 0
|
"value": 0
|
||||||
@@ -782,6 +886,10 @@
|
|||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": ""
|
"value": ""
|
||||||
},
|
},
|
||||||
|
"ConditionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Index": {
|
"Index": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 4
|
"value": 4
|
||||||
@@ -814,6 +922,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__struct_id": 6,
|
"__struct_id": 6,
|
||||||
|
"ActionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Animation": {
|
"Animation": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 34
|
"value": 34
|
||||||
@@ -855,6 +967,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__struct_id": 7,
|
"__struct_id": 7,
|
||||||
|
"ActionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Animation": {
|
"Animation": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 0
|
"value": 0
|
||||||
@@ -896,6 +1012,10 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"__struct_id": 8,
|
"__struct_id": 8,
|
||||||
|
"ActionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Animation": {
|
"Animation": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 0
|
"value": 0
|
||||||
@@ -921,6 +1041,10 @@
|
|||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": "sc_belowlevel2"
|
"value": "sc_belowlevel2"
|
||||||
},
|
},
|
||||||
|
"ConditionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Index": {
|
"Index": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 3
|
"value": 3
|
||||||
@@ -940,6 +1064,10 @@
|
|||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": ""
|
"value": ""
|
||||||
},
|
},
|
||||||
|
"ConditionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Index": {
|
"Index": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 2
|
"value": 2
|
||||||
@@ -985,6 +1113,10 @@
|
|||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": "sc_navarre1st"
|
"value": "sc_navarre1st"
|
||||||
},
|
},
|
||||||
|
"ConditionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Index": {
|
"Index": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 6
|
"value": 6
|
||||||
@@ -996,6 +1128,10 @@
|
|||||||
"type": "resref",
|
"type": "resref",
|
||||||
"value": ""
|
"value": ""
|
||||||
},
|
},
|
||||||
|
"ConditionParams": {
|
||||||
|
"type": "list",
|
||||||
|
"value": []
|
||||||
|
},
|
||||||
"Index": {
|
"Index": {
|
||||||
"type": "dword",
|
"type": "dword",
|
||||||
"value": 0
|
"value": 0
|
||||||
|
|||||||
@@ -2744,7 +2744,7 @@
|
|||||||
},
|
},
|
||||||
"Mod_XPScale": {
|
"Mod_XPScale": {
|
||||||
"type": "byte",
|
"type": "byte",
|
||||||
"value": 11
|
"value": 33
|
||||||
},
|
},
|
||||||
"VarTable": {
|
"VarTable": {
|
||||||
"type": "list",
|
"type": "list",
|
||||||
|
|||||||
Binary file not shown.
BIN
_module/ncs/ht5_mod_levelup.ncs
Normal file
BIN
_module/ncs/ht5_mod_levelup.ncs
Normal file
Binary file not shown.
BIN
_module/ncs/isnewplayer.ncs
Normal file
BIN
_module/ncs/isnewplayer.ncs
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,5 +1,5 @@
|
|||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
ExecuteScript("prc_levelup", OBJECT_SELF);
|
ExecuteScript("prc_levelup", OBJECT_SELF);
|
||||||
ExecuteScript("nw_o0_levelup", OBJECT_SELF);
|
ExecuteScript("ht5_mod_levelup", OBJECT_SELF);
|
||||||
}
|
}
|
||||||
36
_module/nss/ht5_mod_levelup.nss
Normal file
36
_module/nss/ht5_mod_levelup.nss
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
//::///////////////////////////////////////////////
|
||||||
|
//:: ht5_mod_levelup.nss
|
||||||
|
//::
|
||||||
|
//:://////////////////////////////////////////////
|
||||||
|
#include "nw_i0_henchman"
|
||||||
|
#include "nw_i0_generic"
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
object oPC = GetPCLevellingUp();
|
||||||
|
|
||||||
|
int nHD = GetHitDice(oPC);
|
||||||
|
|
||||||
|
if (GetIsObjectValid(oPC) == TRUE)
|
||||||
|
{
|
||||||
|
object oHench = GetHenchman(oPC);
|
||||||
|
if (GetIsObjectValid(oHench) == TRUE)
|
||||||
|
{
|
||||||
|
if (GetCanLevelUp(oPC, oHench) == TRUE)
|
||||||
|
{
|
||||||
|
object oNew = DoLevelUp(oPC, oHench);
|
||||||
|
if (GetIsObjectValid(oNew) == TRUE)
|
||||||
|
{
|
||||||
|
DelayCommand(1.0,AssignCommand(oNew, EquipAppropriateWeapons(oPC)));
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (nHD > 1)
|
||||||
|
{
|
||||||
|
int nMin = ((nHD * (nHD - 1)) / 2) * 1000;
|
||||||
|
SetXP(oPC, nMin);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
15
_module/nss/isnewplayer.nss
Normal file
15
_module/nss/isnewplayer.nss
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
int StartingConditional()
|
||||||
|
{
|
||||||
|
object oPC = GetPCSpeaker(); // Gets the player who initiated the conversation
|
||||||
|
|
||||||
|
int nXP = GetXP(oPC); // Get the player's current experience points
|
||||||
|
int nLevel = GetHitDice(oPC); // Get the player's level (Hit Dice)
|
||||||
|
|
||||||
|
// Return TRUE if the player has less than 1500 XP or is under 1st level
|
||||||
|
if (nXP < 1500 || nLevel < 1)
|
||||||
|
{
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
|
return FALSE; // Otherwise, return FALSE
|
||||||
|
}
|
||||||
Binary file not shown.
Reference in New Issue
Block a user