Page 1 of 1

MoveitemtoContaier problem

Posted: Sun Sep 14, 2008 2:15 pm
by Nightson

Code: Select all

var bankbox := FindBankBox(who);
var newpack := Createitemincontainer(who.backpack, 0xe75,1);
//MoveObjectToLocation(newpack, who.x, who.y, who.z);
var test := MoveItemToContainer(newpack, bankbox);
if(!test)
printtextabove(who,""+test.errortext);
endif
Returns error text = Could not remove item from its container

There is no such a error in Moveitemtocontainer

Any idea why?

Re: MoveitemtoContaier problem

Posted: Sun Sep 14, 2008 9:20 pm
by Luth
It may be that your CanRemove script for the backpack is denying the item movement.

Re: MoveitemtoContaier problem

Posted: Mon Sep 15, 2008 1:00 pm
by Nightson
Yarr ;] thx for advice ;]