Battledale_PRC8/_module/nss/jw_remove_wolf.nss

18 lines
340 B
Plaintext
Raw Permalink Normal View History

/////// // /// //
#include "jw_wolf_script"
void main()
{
object oDM=GetPCSpeaker();
object oTarget=GetLocalObject(oDM,"norestarget");
SetLocalInt(oTarget,"iswolf",0);
object oWolf=GetItemPossessedBy(oTarget,"jw_wolf_item");
if (GetIsObjectValid(oWolf))
{
DestroyObject(oWolf);
}
removewolf(oTarget);
}