Battledale_PRC8/_module/nss/tri_unlock_weap.nss
Jaysyn904 7b9e44ebbb Initial upload
Initial upload.  PRC8 has been added.  Module compiles, PRC's default AI & treasure scripts have been integrated.  Started work on top hak for SLA / Ability / Scripting modifications.
2024-03-11 23:44:08 -04:00

22 lines
340 B
Plaintext

#include "database_inc"
void main()
{
object pres8PC = GetPCSpeaker();
if(GetGold(pres8PC)>4999)
{
TakeGoldFromCreature(5000, pres8PC, TRUE);
SetLocalInt(pres8PC, "X2_AllowWM", 0);
DBSetPrestigePermisson (pres8PC,CLASS_TYPE_WEAPON_MASTER);
SendMessageToPC(pres8PC, "You have unlocked the Weapon Master Prestige Class.");
}
else
{
}
}