PWE_PRC8/_module/nss/ats_flwr_use.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

20 lines
608 B
Plaintext

#include "ats_inc_common"
#include "ats_const_common"
void main()
{
object oPlayer = GetLastUsedBy();
object oThisOreVein = OBJECT_SELF;
// Gets the weapon in the right hand slot of the player
object oWeaponOnPlayer = GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPlayer);
if(ATS_GetTagBaseType(oWeaponOnPlayer) == CSTR_TAILORTOOL )
{
//AssignCommand(oPlayer, ActionAttack(oThisOreVein, TRUE));
AssignCommand(oPlayer, DoPlaceableObjectAction(oThisOreVein,PLACEABLE_ACTION_BASH));
}
else
FloatingTextStringOnCreature(CSTR_ERROR1_MINING, oPlayer, FALSE);
}