Changed XP system over to PnP XP system
Changed XP system over to PnP XP system. Updated NWNxEE scripts. Full compile. Updated public release archive.
This commit is contained in:
@@ -16,6 +16,7 @@ void NWNX_Item_SetWeight(object oItem, int weight);
|
||||
/// @remark Total cost = base_value + additional_value.
|
||||
/// @remark Equivalent to SetGoldPieceValue NWNX2 function.
|
||||
/// @note Will not persist through saving.
|
||||
/// @note This value will also revert if item is identified or player relogs into server.
|
||||
/// @param oItem The item object.
|
||||
/// @param gold The base gold value.
|
||||
void NWNX_Item_SetBaseGoldPieceValue(object oItem, int gold);
|
||||
@@ -91,6 +92,39 @@ int NWNX_Item_GetBaseArmorClass(object oItem);
|
||||
/// @return The minimum level required to equip the item.
|
||||
int NWNX_Item_GetMinEquipLevel(object oItem);
|
||||
|
||||
/// @brief Move oItem to oTarget
|
||||
/// @remark Moving items from a container to the inventory of the container's owner (or the other way around) is always "silent" and won't trigger feedback messages
|
||||
/// @param oItem The item object.
|
||||
/// @param oTarget The target bag/creature/placeable or store object to move oItem to.
|
||||
/// @param bHideAllFeedback Hides all feedback messages generated by losing/acquiring items
|
||||
/// @return TRUE if the item was successfully moved to the target, otherwise FALSE
|
||||
int NWNX_Item_MoveTo(object oItem, object oTarget, int bHideAllFeedback = FALSE);
|
||||
|
||||
/// @brief Set a modifier to the Minimum Level to Equip (Item Level Restriction).
|
||||
/// @param oItem The item object.
|
||||
/// @param nModifier the modifier to apply (After any Override)
|
||||
/// @param bPersist Whether the modifier should persist to gff field. Strongly Recommended to be TRUE (See warning)
|
||||
/// @note This function (or override partner) must be used each server reset to reenable persistence. Recommended use on OBJECT_INVALID OnModuleLoad.
|
||||
/// @warning if Persistence is FALSE, or not renabled, beware characters may trigger ELC logging in with now-invalid ItemLevelRestrictions equipped.
|
||||
void NWNX_Item_SetMinEquipLevelModifier(object oItem, int nModifier, int bPersist = TRUE);
|
||||
|
||||
/// @brief Gets the applied modifier to the Minimum Level to Equip (Item Level Restriction).
|
||||
/// @param oItem The item object.
|
||||
int NWNX_Item_GetMinEquipLevelModifier(object oItem);
|
||||
|
||||
/// @brief Set an override to the Minimum Level to Equip (Item Level Restriction).
|
||||
/// @param oItem The item object.
|
||||
/// @param nOverride the nOverride to apply (Before any Modifier)
|
||||
/// @param bPersist Whether the modifier should persist to gff field. Strongly Recommended to be TRUE (See warning)
|
||||
/// @note This function (or modifier partner) must be used each server reset to reenable persistence. Recommended use on OBJECT_INVALID OnModuleLoad.
|
||||
/// @warning if Persistence is FALSE, or not renabled, beware characters may trigger ELC logging in with now-invalid ItemLevelRestrictions equipped.
|
||||
void NWNX_Item_SetMinEquipLevelOverride(object oItem, int nOverride, int bPersist = TRUE);
|
||||
|
||||
/// @brief Gets the applied override to the Minimum Level to Equip (Item Level Restriction).
|
||||
/// @param oItem The item object.
|
||||
int NWNX_Item_GetMinEquipLevelOverride(object oItem);
|
||||
|
||||
|
||||
/// @}
|
||||
|
||||
void NWNX_Item_SetWeight(object oItem, int w)
|
||||
@@ -205,3 +239,58 @@ int NWNX_Item_GetMinEquipLevel(object oItem)
|
||||
NWNX_CallFunction(NWNX_Item, sFunc);
|
||||
return NWNX_GetReturnValueInt();
|
||||
}
|
||||
|
||||
int NWNX_Item_MoveTo(object oItem, object oTarget, int bHideAllFeedback = FALSE)
|
||||
{
|
||||
string sFunc = "MoveTo";
|
||||
|
||||
NWNX_PushArgumentInt(bHideAllFeedback);
|
||||
NWNX_PushArgumentObject(oTarget);
|
||||
NWNX_PushArgumentObject(oItem);
|
||||
|
||||
NWNX_CallFunction(NWNX_Item, sFunc);
|
||||
|
||||
return NWNX_GetReturnValueInt();
|
||||
}
|
||||
|
||||
void NWNX_Item_SetMinEquipLevelModifier(object oItem, int nModifier, int bPersist = TRUE)
|
||||
{
|
||||
string sFunc = "SetMinEquipLevelModifier";
|
||||
|
||||
NWNX_PushArgumentInt(bPersist);
|
||||
NWNX_PushArgumentInt(nModifier);
|
||||
NWNX_PushArgumentObject(oItem);
|
||||
|
||||
NWNX_CallFunction(NWNX_Item, sFunc);
|
||||
}
|
||||
|
||||
int NWNX_Item_GetMinEquipLevelModifier(object oItem)
|
||||
{
|
||||
string sFunc = "GetMinEquipLevelModifier";
|
||||
|
||||
NWNX_PushArgumentObject(oItem);
|
||||
|
||||
NWNX_CallFunction(NWNX_Item, sFunc);
|
||||
return NWNX_GetReturnValueInt();
|
||||
}
|
||||
|
||||
void NWNX_Item_SetMinEquipLevelOverride(object oItem, int nOverride, int bPersist = TRUE)
|
||||
{
|
||||
string sFunc = "SetMinEquipLevelOverride";
|
||||
|
||||
NWNX_PushArgumentInt(bPersist);
|
||||
NWNX_PushArgumentInt(nOverride);
|
||||
NWNX_PushArgumentObject(oItem);
|
||||
|
||||
NWNX_CallFunction(NWNX_Item, sFunc);
|
||||
}
|
||||
|
||||
int NWNX_Item_GetMinEquipLevelOverride(object oItem)
|
||||
{
|
||||
string sFunc = "GetMinEquipLevelOverride";
|
||||
|
||||
NWNX_PushArgumentObject(oItem);
|
||||
|
||||
NWNX_CallFunction(NWNX_Item, sFunc);
|
||||
return NWNX_GetReturnValueInt();
|
||||
}
|
||||
|
Reference in New Issue
Block a user