Initial upload
Initial upload. PRC8 has been added. Module compiles, PRC's default AI & treasure scripts have been integrated. Started work on top hak for SLA / Ability / Scripting modifications.
This commit is contained in:
27
_module/nss/stx_cr_canch.nss
Normal file
27
_module/nss/stx_cr_canch.nss
Normal file
@@ -0,0 +1,27 @@
|
||||
#include "stx_inc_craft"
|
||||
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
|
||||
|
||||
object oHelmet = GetItemInSlot(INVENTORY_SLOT_HEAD, oPC);
|
||||
if (!GetIsObjectValid(oHelmet) || GetPlotFlag(oHelmet))
|
||||
return FALSE;
|
||||
|
||||
|
||||
// check the PC has their dye
|
||||
|
||||
|
||||
|
||||
object oDye=GetLocalObject(oPC,"dye_con_obj");
|
||||
if (GetItemPossessor(oDye)==oPC)
|
||||
{
|
||||
return TRUE;
|
||||
}
|
||||
else
|
||||
{
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user