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:
17
_module/nss/nk_fp_brazier.nss
Normal file
17
_module/nss/nk_fp_brazier.nss
Normal file
@@ -0,0 +1,17 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetLastUsedBy();
|
||||
object oStone = GetFirstItemInInventory(OBJECT_SELF);
|
||||
object oAnotherItem = GetNextItemInInventory(OBJECT_SELF);
|
||||
object oAnvil = GetNearestObjectByTag("NK_FP_ANVIL", OBJECT_SELF, 1);
|
||||
string sStoneTag = GetTag(oStone);
|
||||
|
||||
if ((oStone != OBJECT_INVALID) && (oAnotherItem == OBJECT_INVALID))
|
||||
{
|
||||
SetLocalString(oAnvil, "STONE", sStoneTag);
|
||||
}
|
||||
else
|
||||
{
|
||||
SetLocalString(oAnvil, "STONE", "invalid");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user