Initial commit

Initial commit.  Updated release archive.
This commit is contained in:
Jaysyn904
2024-06-13 15:08:33 -04:00
parent c0bd67a6a7
commit a6f6db7303
5236 changed files with 4203994 additions and 0 deletions

35
_module/nss/qp_ac.nss Normal file
View File

@@ -0,0 +1,35 @@
#include "utl_i_sqluuid"
#include "prc_x2_itemprop"
void main()
{
object oPC;
object oItem;
int iQuestPoints;
int iAC;
itemproperty ip;
string sTag;
oPC=GetPCSpeaker();
sTag = SQLocalsUUID_GetString(oPC,"QPTag");
oItem = GetItemPossessedBy(oPC, sTag);
if(GetIsObjectValid(oItem) != 0)
{
iAC=GetItemACValue(oItem);
if (iAC < 20)
{
iQuestPoints = SQLocalsUUID_GetInt(oPC,"QuestPoints");
iQuestPoints = iQuestPoints - 5;
SQLocalsUUID_SetInt(oPC,"QuestPoints",iQuestPoints);
ip=ItemPropertyACBonus(iAC+1);
IPSafeAddItemProperty(oItem,ip);
DelayCommand(1.0,AssignCommand(OBJECT_SELF,ActionCastFakeSpellAtObject(SPELL_AID,oPC)));
} else {
SendMessageToPC(oPC,"AC Bonus can't be raised higher than 20.");
}
} else {
SendMessageToPC(oPC,"Could not find item.");
}
}