For such instances of items the resref is also the same annunciation as the tag (IE if the resref is "ag_item_axefell" then the tag is "ag_item_axfell") i've double checked, its spelled the exactly the same as its copied and pasted so as to not cause any human errors.
Either way ive found a solution written above, so that script should no longer really be needed. The one I came up with is below:
This is applied to a trigger as the PC teleports into their home base
void main()
{
// Get the creature who triggered this event.
object oPC = GetEnteringObject();
// Only fire for (real) PCs.
if ( !GetIsPC(oPC) || GetIsDMPossessed(oPC) )
return;
// Only fire once per PC.
if ( GetLocalInt(oPC, "DO_ONCE__" + GetTag(OBJECT_SELF)) )
return;
SetLocalInt(oPC, "DO_ONCE__" + GetTag(OBJECT_SELF), TRUE);
// Give "ag_item_axfell" to the PC.
CreateItemOnObject("ag_item_axfell", oPC);
}
Right away the only problem I'll have with this is server resets which will reset the trigger and hence duplicate the item again.