Giving and taking items
I want to take an item from the player and give him an other. Fortunately is this part of a quest so I thought I could use the on phase finished actions transfer item to player and npc. But it does not work. So I tried this script. But it does not work too although there is no error message. Could someone tell me what I did wrong?
I want to take an item from the player and give him an other. Fortunately is this part of a quest so I thought I could use the on phase finished actions transfer item to player and npc. But it does not work. So I tried this script. But it does not work too although there is no error message. Could someone tell me what I did wrong?
Code:
void main(){ object oPC = GetFirstPC(); object oItemA = GetObjectByTag("i46"); object oItemB = GetObjectByTag("i43"); ActionTakeItem(oItemA, oPC); ActionGiveItem(oItemB, oPC);}


