Added CCOH and missing areas Changed some areas to be craftable, Fixed some on death issues, Fixed the Gaurd
36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: 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));
|
|
}
|
|
}
|