#include "database_inc"

void main()

{

object pres3PC = GetPCSpeaker();

if(GetGold(pres3PC)>4999)
{
TakeGoldFromCreature(5000, pres3PC, TRUE);
SetLocalInt(pres3PC, "X1_AllowBlkGrd", 0);
DBSetPrestigePermisson (pres3PC,CLASS_TYPE_BLACKGUARD);
SendMessageToPC(pres3PC, "You have unlocked the Blackguard Prestige Class");
}
else
{
}
}