Loot: Multiple Items display

Old bugs stored here for reference.
Locked
User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Loot: Multiple Items display

Post by John Adams » Mon Aug 04, 2008 7:51 pm

I set up a loottable that would drop between 1-4 "a crab claw" items. When I looted my crab, I got 2 crab claws (cool!) but the display in the UI was a little off.
loot_name.jpg
I think that "2" is saying there were 2 of these items to loot. Eh?
Here's my SQLs:

Code: Select all

insert  into `lootdrop`(`id`,`loot_table_id`,`item_id`,`item_charges`,`equip_item`,`probability`) values (1,1,3930,1,0,100);
This is the item "a crab claw"

Code: Select all

insert  into `loottable`(`id`,`name`,`mincoin`,`maxcoin`,`maxlootitems`,`lootdrop_probability`,`coin_probability`) values (1,'crabs',1,5,4,100,50);
This is the loot table for the crabs, 100% probability on claws, 50% on coin (crabs have pockets?)

Code: Select all

insert  into `spawn_loot`(`id`,`spawn_id`,`loottable_id`) values (1,2530000,1);
insert  into `spawn_loot`(`id`,`spawn_id`,`loottable_id`) values (2,2530037,1);
insert  into `spawn_loot`(`id`,`spawn_id`,`loottable_id`) values (3,2530040,1);
insert  into `spawn_loot`(`id`,`spawn_id`,`loottable_id`) values (4,2530055,1);
This is the same loot table assigned to 4 NPCs on the island (all crabs)
You do not have the required permissions to view the files attached to this post.

User avatar
John Adams
Retired
Posts: 9684
Joined: Thu Jul 26, 2007 6:27 am
EQ2Emu Server: EQ2Emulator Test Center
Characters: John
Location: Arizona
Contact:

Post by John Adams » Tue Aug 05, 2008 3:33 pm

I am not so sure today that the "2" in the screen shot means 2 crab claws... because when I loot them, I only get one. Could be a second bug.

LethalEncounter
Team: Zombie
Posts: 2717
Joined: Wed Jul 25, 2007 10:10 pm

Post by LethalEncounter » Tue Aug 05, 2008 6:42 pm

It is just a display bug. Apparently the item struct changed for loots. This is kind of odd since it uses the basic item struct and items show up properly. The 2 is question is really the size of the description:

Code: Select all

 112: 00 00 00 0B 61 20 63 72 - 61 62 20 63 6C 61 77 32  | ....a crab claw2
 128: 00 41 20 6C 61 72 67 65 - 20 70 69 6E 63 65 72 20  | .A large pincer
 144: 66 72 6F 6D 20 77 68 61 - 74 20 73 65 65 6D 73 20  | from what seems
 160: 74 6F 20 62 65 20 61 20 - 63 72 75 73 74 61 63 65  | to be a crustace

Locked

Who is online

Users browsing this forum: No registered users and 0 guests