Initial upload.
Adding base PRC 4.19a files to repository.
This commit is contained in:
25
trunk/ocfixerf/m0q01a07elynelc2.nss
Normal file
25
trunk/ocfixerf/m0q01a07elynelc2.nss
Normal file
@@ -0,0 +1,25 @@
|
||||
#include "prc_class_const"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
if(GetLevelByClass(CLASS_TYPE_FAVOURED_SOUL, oPC)
|
||||
|| GetLevelByClass(CLASS_TYPE_MYSTIC, oPC)
|
||||
|| GetLevelByClass(CLASS_TYPE_SHUGENJA, oPC))
|
||||
{
|
||||
// Give scroll of Cure Minor wounds
|
||||
object oScroll = CreateItemOnObject("x2_it_spdvscr001", oPC);
|
||||
// Remove all class restrictions from the scroll
|
||||
itemproperty ipTest = GetFirstItemProperty(oScroll);
|
||||
while(GetIsItemPropertyValid(ipTest))
|
||||
{
|
||||
if(GetItemPropertyType(ipTest) == ITEM_PROPERTY_USE_LIMITATION_CLASS)
|
||||
RemoveItemProperty(oScroll, ipTest);
|
||||
|
||||
ipTest = GetNextItemProperty(oScroll);
|
||||
}
|
||||
}
|
||||
SetLocalInt(OBJECT_SELF,"NW_L_TALKLEVEL",2);
|
||||
SetLocalInt(GetModule(),"NW_G_M0Q01_PRIEST_TEST",1);
|
||||
}
|
||||
|
Reference in New Issue
Block a user