gplotAppraiseFavOpenStore(object, object, int, int)
Opens a store, modifying the store prices by the Appraise skill of the PCspeaker.
NOTE: This script always results in a good appraise result.
void gplotAppraiseFavOpenStore( object oStore, object oPC, int nBonusMarkUp = 0, int nBonusMarkDown = 0 );
Parameters
oStore
The merchant inventory that we will be opening.
oPC
The player character we are checking against.
nBonusMarkUp
The percentage to markup the items for sale. (Default: 0)
nBonusMarkDown
The percentage to mark down the price of items the merchant buys. (Default: 0)
Description
Opens a store, modifying the store prices by the Appraise skill of the oPC.
NOTE: This script always results in a good appraise result.
Requirements
#include "nw_i0_plot"
Version
???
Example
// Lets' open a merchant, remember this function always returns a favorable check.
#include "nw_i0_plot"
#include "x0_i0_anims"
void main()
{
// Get random nearest store object.
object oMerchant = GetRandomObjectByType(OBJECT_TYPE_STORE, 100.0);
// Remember nBonusMarkUp/nBonusMarkDown default to 0.
gplotAppraiseFavOpenStore(oMerchant, OBJECT_SELF);
}
See Also
| functions: | GetSkillRank | gplotAppraiseOpenStore |
| categories: | Get Data from Creature Functions |
author: Baragg, editors: Mistress, Kolyana