Oh yeah right.. My mistake.
If you don't use Ikarus, you can assign the pointer/id of the instance in a variable int.
Code:
var int pointer; pointer = Hlp_GetInstanceID(instance);
Then you can use this pointer in functions like:
Code:
var int pointer; pointer = Hlp_GetInstanceID(instance);
CreateInvItem(self,pointer);
Npc_RemoveInvItem(self,pointer);
B_GiveInvItems(self,other,pointer,1);