Areas and Fixes
Added CCOH and missing areas Changed some areas to be craftable, Fixed some on death issues, Fixed the Gaurd
This commit is contained in:
35
_module/nss/pv_purge_tmp_var.nss
Normal file
35
_module/nss/pv_purge_tmp_var.nss
Normal file
@@ -0,0 +1,35 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Name:
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Destroys all unecessary variables at a
|
||||
conversation exit or abort
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "pv_config_param"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oNPCMerchant = OBJECT_SELF;
|
||||
int iItem = 0;
|
||||
|
||||
DeleteLocalInt(oNPCMerchant, "PV_NUM_DISPLAY_ITEM");
|
||||
DeleteLocalInt(oNPCMerchant, "PV_TOTAL_NUM_ITEMS");
|
||||
DeleteLocalInt(oNPCMerchant, "PV_CURRENT_PAGE_NUMBER");
|
||||
DeleteLocalObject(oNPCMerchant, "PV_ITEM_CHOSEN");
|
||||
DeleteLocalInt(oNPCMerchant, "PV_CONVO_OPTION_CHOSEN");
|
||||
DeleteLocalInt(oNPCMerchant, "PV_QUANTITY_TO_BUY");
|
||||
|
||||
// Object variables for items inside backpacks
|
||||
for (iItem = 1; iItem <= MAX_ITEMS_PER_PAGE; iItem++)
|
||||
{
|
||||
DeleteLocalObject(oNPCMerchant, "PV_BACKPACK_ITEM_NUM_" + IntToString(iItem) );
|
||||
}
|
||||
|
||||
// Object variables for the backpacks
|
||||
for (iItem = 0; iItem < MAX_BACKPACKS_PER_INVENTORY; iItem++)
|
||||
{
|
||||
DeleteLocalObject(oNPCMerchant, "PV_BACKPACK_NUM_"+IntToString(iItem));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user