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

22 lines
555 B
Plaintext

void main()
{
// Get the Tag of Flower Plant
string sFlowerPlantTag = GetTag(OBJECT_SELF);
// Get length of that Tag
int iTagLength = GetStringLength(sFlowerPlantTag);
// Find the color of that Flower Plant
string sFlowerTag = "ATS_FLOWER_" + GetStringRight(sFlowerPlantTag, iTagLength - 13);
// prepare to create Flower on Player
object oPlayer = GetLastUsedBy();
// SendMessageToPC(oPlayer, sFlowerTag); // Debug message
// Give the Player the Flower
CreateItemOnObject(sFlowerTag, oPlayer);
}