PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
CreateItemInBackpack( of_character, objtype, amount := 1)

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    PenUltima Online Forum Index -> Feature Suggestions
Display posts from previous:   

Author Message
GEEK



Joined: 22 Jul 2006
Posts: 29
Location: Italy

PostPosted: Mon Aug 28, 2006 11:09 am    Post subject: CreateItemInBackpack( of_character, objtype, amount := 1) Reply with quote

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....

Author Message
Austin
POL Developer


Joined: 30 Jan 2006
Posts: 355
Location: San Diego, California

PostPosted: Mon Aug 28, 2006 1:27 pm    Post subject: Reply with quote

Use GetItemDescriptor() in polsys.em and create the object using that.

Author Message
CWO



Joined: 04 Feb 2006
Posts: 699
Location: Chicago, IL USA

PostPosted: Mon Aug 28, 2006 1:29 pm    Post subject: Reply with quote

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 Very Happy gotta love double-sided features Wink

Author Message
GEEK



Joined: 22 Jul 2006
Posts: 29
Location: Italy

PostPosted: Mon Aug 28, 2006 2:26 pm    Post subject: Reply with quote

Beh... I have create item to earth and moved after to backpack but thanks for answers Smile

Post new topic   This topic is locked: you cannot edit posts or make replies.    PenUltima Online Forum Index -> Feature Suggestions All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty