Further file organization
Further file organization
This commit is contained in:
20
nwn/nwnprc/trunk/ocfixerf/M1S3CMakeClay.nss
Normal file
20
nwn/nwnprc/trunk/ocfixerf/M1S3CMakeClay.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "prc_inc_castlvl"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oPC = GetLastOpenedBy();
|
||||
if(!GetIsObjectValid(GetItemPossessedBy(OBJECT_SELF, "M1S03ICLAY"))
|
||||
&& !GetIsObjectValid(GetItemPossessedBy(oPC, "M1S03ICLAY")))
|
||||
{
|
||||
int i, nClass;
|
||||
for(i = 1; i <= 3; i++)
|
||||
{
|
||||
nClass = GetClassByPosition(i, oPC);
|
||||
if(GetIsArcaneClass(nClass))
|
||||
{
|
||||
CreateItemOnObject("M1S03ICLAY", OBJECT_SELF);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user