MoveitemtoContaier problem

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
Nightson
Neophyte Poster
Posts: 33
Joined: Mon Apr 02, 2007 1:13 pm

MoveitemtoContaier problem

Post 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?
Luth
Former Developer
Posts: 200
Joined: Mon Jan 30, 2006 8:10 am

Re: MoveitemtoContaier problem

Post by Luth »

It may be that your CanRemove script for the backpack is denying the item movement.
Nightson
Neophyte Poster
Posts: 33
Joined: Mon Apr 02, 2007 1:13 pm

Re: MoveitemtoContaier problem

Post by Nightson »

Yarr ;] thx for advice ;]
Post Reply