PenUltima Online

It is currently Sun Sep 07, 2008 3:50 am

All times are UTC - 8 hours




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: CreateItemInBackpack( of_character, objtype, amount := 1)
PostPosted: Mon Aug 28, 2006 7:09 am 
Offline

Joined: Sat Jul 22, 2006 8:25 am
Posts: 29
Location: Italy
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....

_________________
--------------------------
ZuluHotelItalia Admin


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 28, 2006 9:27 am 
Offline
POL Developer
User avatar

Joined: Wed Jan 25, 2006 2:30 am
Posts: 410
Location: San Diego, California
Use GetItemDescriptor() in polsys.em and create the object using that.

_________________
-Austin


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 28, 2006 9:29 am 
Offline

Joined: Sat Feb 04, 2006 5:49 pm
Posts: 750
Location: Chicago, IL USA
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 :D gotta love double-sided features :wink:


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 28, 2006 10:26 am 
Offline

Joined: Sat Jul 22, 2006 8:25 am
Posts: 29
Location: Italy
Beh... I have create item to earth and moved after to backpack but thanks for answers :-)

_________________
--------------------------
ZuluHotelItalia Admin


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: Google [Bot] and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl