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
MoveItemToContainer and Insert Scripts [POL2006-01-18 Linux]

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 096
Display posts from previous:   

Author Message
Pierce



Joined: 02 Feb 2006
Posts: 259

PostPosted: Tue May 09, 2006 7:27 am    Post subject: MoveItemToContainer and Insert Scripts [POL2006-01-18 Linux] Reply with quote

MoveItemToContainer don't stacks items to an existing stack.

Code:

program can_insert(who, backpack,  movetype, insmethod, item, existing_stack, amt_to_add )

program on_insert(who, backpack, movetype, insmethod, item, existing_stack, amt_to_add )


If you do that as player everthing works fine. Lets say put an apple into a backpack give:

movetype: 0
insmethod: 1
existing_stack: uninit

Adding a second apple gives:

movetype: 0
insmethod: 2
existing_stack: Item Ref

If you do this via script with MoveItemToContainer you get both times (first and second apple) the same. It won't find the already existing apple.

movetype: 1
insmethod: 1
existing_stack: uninit

Author Message
Pierce



Joined: 02 Feb 2006
Posts: 259

PostPosted: Sat Jun 03, 2006 10:15 pm    Post subject: Reply with quote

Is this a bug? Cause it seems i am the only one who has it. Even in newer cores.

Author Message
DeiviD



Joined: 19 Jun 2006
Posts: 79

PostPosted: Fri Sep 08, 2006 1:45 pm    Post subject: Reply with quote

i have that on 095 and didnt found a way around it too :X

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Fri Sep 08, 2006 5:35 pm    Post subject: Reply with quote

First things first, switch to using MoveObjectToLocation() for your scripts.

Secondly, if that does not fix this (the others are now depreciated), let me know. There was an older issue involving this I believe, but unsure if it was fixed as of yet. If not, I can look into and see what I come up with.

Author Message
Pierce



Joined: 02 Feb 2006
Posts: 259

PostPosted: Fri Sep 08, 2006 7:34 pm    Post subject: Reply with quote

I am a little astonished now.
MoveItemToContainer is depreciated in 96/97?
Cause ecompile does the compile in 96 test cores and even on the latest 97 test cores.


Last edited by Pierce on Fri Sep 08, 2006 7:39 pm; edited 1 time in total

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Fri Sep 08, 2006 7:36 pm    Post subject: Reply with quote

Nevermind, smack me. I have been working with MOTL so much lately, I got it stuck on my brain Smile

Ignore that, hehe.

When I get the chance, I'll be looking into the oninsert system and how it handles existing stacks (previously reported). My 1st year wedding anniversary is this weekend, so don't expect to much out of me this weekend though Smile

Author Message
Pierce



Joined: 02 Feb 2006
Posts: 259

PostPosted: Fri Sep 08, 2006 7:43 pm    Post subject: Reply with quote

Happy first wedding anniversary for you and your wife Very Happy
You just saved me before i get a heart attack Wink

Author Message
Pierce



Joined: 02 Feb 2006
Posts: 259

PostPosted: Sat Apr 14, 2007 5:35 pm    Post subject: Reply with quote

If that is fixed for 96, is this also fixed for 97? Or should i make a new topic there? Perhaps you could move this topic there, cause it exists for newer version, too.

Post new topic   Reply to topic    PenUltima Online Forum Index -> Bug Reports 096 All times are GMT - 4 Hours
Page 1 of 1

 




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