Files
Anphillia_PRC8/_module/nss/hc_act_thieftool.nss
Jaysyn904 28cdb617b3 Initial commit
Adding all of the current content for Anphillia Unlimited.
2024-01-04 07:49:38 -05:00

20 lines
611 B
Plaintext

#include "hc_text_activate"
void main()
{
object oUser=OBJECT_SELF;
object oOther=GetLocalObject(oUser,"OTHER");
object oItem=GetLocalObject(oUser,"ITEM");
string sItemTag=GetLocalString(oUser,"TAG");
DeleteLocalString(oUser,"TAG");
DeleteLocalObject(oUser,"ITEM");
DeleteLocalObject(oUser,"OTHER");
if (GetDistanceBetweenLocations(GetLocation(oUser),
GetLocation(oOther)) > FeetToMeters(10.0))
SendMessageToPC(oUser, MOVECLOSER);
else
{
DestroyObject(oItem);
SendMessageToPC(oUser, TOOLBREAK);
}
}