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:
24
_module/nss/tri_takerecipe.nss
Normal file
24
_module/nss/tri_takerecipe.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: FileName tri_takerecipe
|
||||
//:://////////////////////////////////////////////
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 11/20/2003 20:32:26
|
||||
//:://////////////////////////////////////////////
|
||||
void main()
|
||||
{
|
||||
|
||||
// Remove items from the player's inventory
|
||||
object oItemToTake;
|
||||
oItemToTake = GetItemPossessedBy(GetPCSpeaker(), "tri_brerecipe");
|
||||
|
||||
|
||||
if(GetIsObjectValid(oItemToTake) != 0)
|
||||
{DestroyObject(oItemToTake);
|
||||
CreateItemOnObject("tri_magicboots", GetPCSpeaker(), 1);}
|
||||
|
||||
else
|
||||
{
|
||||
ClearAllActions();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user