Page 1 of 1
CreateItemInBackpack( of_character, objtype, amount := 1)
Posted: Mon Aug 28, 2006 7:09 am
by GEEK
CreateItemInBackpack( of_character, objtype, amount := 1 );
a new parameter like:
CreateItemInBackpack( of_character, objtype, amount := 1, NO_NOT_USE_STAK_IF_FOUND);
to order command to create new item and not to add ti prevous stack....
Posted: Mon Aug 28, 2006 9:27 am
by Austin
Use GetItemDescriptor() in polsys.em and create the object using that.
Posted: Mon Aug 28, 2006 9:29 am
by CWO
I know this is a bit screwy and takes a couple more cycles but
var item := CreateItemDescriptor(objtype);
item.CProps.NoStack := 1;
item := CreateItemInBackpack(of_character, item, amount := 1);
EraseObjProperty(item, "NoStack");
Just a note that CreateItemDescriptor is in POLSYS not UO.
CreateItemDescriptor was made for us to manipulate items before creation so we can create them straight into the stack instead of individually but of course this could be used the other way too

gotta love double-sided features

Posted: Mon Aug 28, 2006 10:26 am
by GEEK
Beh... I have create item to earth and moved after to backpack but thanks for answers
