Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
39
_module/nss/qst_overall4_5.nss
Normal file
39
_module/nss/qst_overall4_5.nss
Normal file
@@ -0,0 +1,39 @@
|
||||
#include "prc_x2_itemprop"
|
||||
#include "nw_i0_tool"
|
||||
#include "utl_i_sqluuid"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC;
|
||||
object oItem;
|
||||
int iItemPosition;
|
||||
itemproperty ip;
|
||||
|
||||
oPC = GetPCSpeaker();
|
||||
|
||||
iItemPosition = INVENTORY_SLOT_RIGHTRING;
|
||||
oItem = GetItemInSlot(iItemPosition,oPC);
|
||||
|
||||
if (GetIsObjectValid(oItem))
|
||||
{
|
||||
if (GetLevelByClass(CLASS_TYPE_SORCERER,oPC)>15)
|
||||
ip = ItemPropertyBonusLevelSpell(IP_CONST_CLASS_SORCERER,9);
|
||||
else if (GetLevelByClass(CLASS_TYPE_WIZARD,oPC)>15)
|
||||
ip = ItemPropertyBonusLevelSpell(IP_CONST_CLASS_WIZARD,9);
|
||||
else if (GetLevelByClass(CLASS_TYPE_CLERIC,oPC)>15)
|
||||
ip = ItemPropertyBonusLevelSpell(IP_CONST_CLASS_CLERIC,9);
|
||||
else
|
||||
ip = ItemPropertyBonusLevelSpell(IP_CONST_CLASS_DRUID,9);
|
||||
IPSafeAddItemProperty(oItem,ip);
|
||||
IPSafeAddItemProperty(oItem,ip);
|
||||
ip = ItemPropertyCastSpell(IP_CONST_CASTSPELL_STORM_OF_VENGEANCE_17,IP_CONST_CASTSPELL_NUMUSES_3_USES_PER_DAY);
|
||||
IPSafeAddItemProperty(oItem,ip);
|
||||
DelayCommand(1.0f,AssignCommand(OBJECT_SELF,ActionCastFakeSpellAtObject(SPELL_CURE_SERIOUS_WOUNDS,oPC)));
|
||||
DelayCommand(3.0f,AssignCommand(OBJECT_SELF,ActionSpeakString("Good luck.")));
|
||||
SQLocalsUUID_SetInt(oPC,"OverallQuest",133);
|
||||
}
|
||||
else
|
||||
{
|
||||
SendMessageToPC(oPC,"You must be wearing a ring on your right finger to recieve bonus.");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user