Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
38
_module/nss/qp_wizardry_3.nss
Normal file
38
_module/nss/qp_wizardry_3.nss
Normal file
@@ -0,0 +1,38 @@
|
||||
#include "utl_i_sqluuid"
|
||||
//#include "prc_x2_itemprop"
|
||||
#include "prc_x2_itemprop"
|
||||
#include "prc_inc_newip"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC;
|
||||
object oItem;
|
||||
int iQuestPoints;
|
||||
int iProp;
|
||||
itemproperty ip;
|
||||
string sTag;
|
||||
|
||||
|
||||
oPC=GetPCSpeaker();
|
||||
sTag = SQLocalsUUID_GetString(oPC,"QPTag");
|
||||
oItem = GetItemPossessedBy(oPC, sTag);
|
||||
|
||||
if(GetIsObjectValid(oItem) != 0)
|
||||
{
|
||||
iProp=SQLocalsUUID_GetInt(oPC,"QP_Wizardry3");
|
||||
if (iProp==0)
|
||||
{
|
||||
iQuestPoints = SQLocalsUUID_GetInt(oPC,"QuestPoints");
|
||||
iQuestPoints = iQuestPoints - 30;
|
||||
SQLocalsUUID_SetInt(oPC,"QuestPoints",iQuestPoints);
|
||||
SQLocalsUUID_SetInt(oPC,"QP_Wizardry3",1);
|
||||
ip=ItemPropertyWizardry(3);
|
||||
IPSafeAddItemProperty(oItem,ip);
|
||||
DelayCommand(1.0,AssignCommand(OBJECT_SELF,ActionCastFakeSpellAtObject(SPELL_BLACKSTAFF,oPC)));
|
||||
} else {
|
||||
SendMessageToPC(oPC,"You already have that enhancement.");
|
||||
}
|
||||
} else {
|
||||
SendMessageToPC(oPC,"Could not find item.");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user