[POL 097-2006-10-19-gentoo] DestroyItem & ReserveItem

Report core bugs regarding the Ultima Online Emulator Core release (version 097). You can attach your Core Dump. One bug per post.
Locked
qrak
Grandmaster Poster
Posts: 198
Joined: Sun Feb 05, 2006 4:35 pm

[POL 097-2006-10-19-gentoo] DestroyItem & ReserveItem

Post by qrak »

Im using include canAccess (reserveitem function) in my script

if(!can_access(who, item))
return;
endif

It's impossible to destroy item via DestroyItem function when item is reserved.

In most cases function DestroyItem doesn't destroy items.
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Post by Austin »

As far as I can tell, no changes have been made.

If you use ReserveItem() then only that script has access (for the most part) to the item until you call ReleaseItem() or the script ends.
qrak
Grandmaster Poster
Posts: 198
Joined: Sun Feb 05, 2006 4:35 pm

Post by qrak »

I don't get it. So if i want to destroy any reserved item i have to release it? that is pretty damn annoying. I have problems with my scripts right now because most of things can't be destroyed (guildstones, smelted ore etc).
Same problem with pol96.4 is described here:

http://forums.polserver.com/viewtopic.php?t=1001
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Post by Austin »

First off, your response was pretty damned rude and uncalled for.

Secondly, its not a change I made, its also one that wasn't documented.
I didn't just write you off, I looked into it. Im restraining from flaming you back... but sheesh ... people say and Americans are rude....

Anyway the problem is theres a check now in DestroyItem() for if an item is 'gotten' which means its on the cursor.. it is setting it to gotten when picked up, but not ungetting it when dropped. Not sure exactly why yet, it ungets it if its equipment and put on, but otherwise nothing seems to be done when it is put back down.

Should have it fixed soon, though.
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Post by Austin »

Its been fixed now.
Xandros
Expert Poster
Posts: 76
Joined: Fri Feb 17, 2006 12:25 pm

Post by Xandros »

Cheer up!
That really was an annoying problem, and from your first response
he got the impression that it was meant to be like this.

Xandros
qrak
Grandmaster Poster
Posts: 198
Joined: Sun Feb 05, 2006 4:35 pm

Post by qrak »

Sorry if that response was rude. It wasn't meant to be like this.
Locked