12-02-2014, 10:30 PM
Here's the script. I'll let you all woprk on your scripting knowledge and figure out the answers yourselves... :D
Code:
//::///////////////////////////////////////////////
//:: Merchants of Borgo 1.4
//:: mob_sc_has_lore
//:: Copyright (c) 2007 CarfaxAbbey.net
//:://////////////////////////////////////////////
/*
Starting Conditional that determines whether
or not the owner of the store has enough
Lore skill to modify identification.
*/
//:://////////////////////////////////////////////
//:: Revised By: Diavlen ([email protected])
//:: Created On: October 8, 2007
//:: Revised On: December 29, 2007
//:://////////////////////////////////////////////
#include "mob_lib"
int StartingConditional()
{
object oPC = GetPCSpeaker();
if (REQUIRE_LORE_4_ID) {
int nLore = GetSkillRank(SKILL_LORE, oPC, TRUE);
if (nLore < MIN_LORE) return FALSE;
else return TRUE;
}
else return TRUE;
}