Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
37
_module/nss/qst_overall4_4.nss
Normal file
37
_module/nss/qst_overall4_4.nss
Normal file
@@ -0,0 +1,37 @@
|
||||
#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_RIGHTHAND;
|
||||
oItem = GetItemInSlot(iItemPosition,oPC);
|
||||
|
||||
if (!GetIsObjectValid(oItem) && GetLevelByClass(CLASS_TYPE_MONK,oPC)>0)
|
||||
{
|
||||
iItemPosition = INVENTORY_SLOT_ARMS;
|
||||
oItem = GetItemInSlot(iItemPosition,oPC);
|
||||
}
|
||||
|
||||
if (GetIsObjectValid(oItem))
|
||||
{
|
||||
ip = ItemPropertyDamageBonus(IP_CONST_DAMAGETYPE_DIVINE,IP_CONST_DAMAGEBONUS_1d12);
|
||||
IPSafeAddItemProperty(oItem,ip);
|
||||
ip = ItemPropertyDamageBonus(IP_CONST_DAMAGETYPE_MAGICAL,IP_CONST_DAMAGEBONUS_1d12);
|
||||
IPSafeAddItemProperty(oItem,ip);
|
||||
DelayCommand(1.0,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 wielding a weapon in your right hand or wearing monk gloves to recieve bonus.");
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user