Log in

View Full Version : When I give NPCs item in game i get Unknown Slot error


mwmdragon
06-03-2003, 05:13 PM
This is what i get...

ERROR: Getitem(): Unknown slot: 0x0050
ERROR: Getitem(): Unknown slot: 0x0050
ERROR: Getitem(): Unknown slot: 0x0051
ERROR: Getitem(): Unknown slot: 0x0051
ERROR: Getitem(): Unknown slot: 0x0052
ERROR: Getitem(): Unknown slot: 0x0052
ERROR: Getitem(): Unknown slot: 0x0053
ERROR: Getitem(): Unknown slot: 0x0053
ERROR: Getitem(): Unknown slot: 0x0054
ERROR: Getitem(): Unknown slot: 0x0054
ERROR: Getitem(): Unknown slot: 0x0055
ERROR: Getitem(): Unknown slot: 0x0055
ERROR: Getitem(): Unknown slot: 0x0056
ERROR: Getitem(): Unknown slot: 0x0056
ERROR: Getitem(): Unknown slot: 0x0057
ERROR: Getitem(): Unknown slot: 0x0057
ERROR: Getitem(): Unknown slot: 0x0058
ERROR: Getitem(): Unknown slot: 0x0058
ERROR: Getitem(): Unknown slot: 0x0059
ERROR: Getitem(): Unknown slot: 0x0059


I can talk to the NPC fine but when i hand in the item i get this and then i get my item back instead of the new summoned item.


Here is the quest code.




EVENT_SAY {
if($1- =~ "Hail"){ SAY("Hail. $name ! Welcome to Dragon's Den Server, Are you [ New ] Here?.") }
if($1- =~ "New"){ SAY("Give me your Newbie token for proof and I will help you.") }
}
EVENT_ITEM {
if ($item1=="32552"){ SAY("Take this for protection, and enjoy great adventures in this land.")
summonitem("32553") }
}




Any idea about how to fix this ??

Arastiroth
06-03-2003, 07:11 PM
Have you tried handing items to other npcs? I think you'll get the same error. When I sourced in the updated db.sql file that Drawde posted in his World Data 1.1 final (before he posted the updated, fixed version -- haven't tried that file), I got a bunch of errors when I sourced it in and subsequently lots of errors in the reloaddb.sql. I think it was the errors that caused the problem.

Try and see if you do get that bug when you try and hand npc's anything (or pc's -- when I had the bug I only noticed it with PC's... never tried to give anything to an NPC). If you do, then what I did to get it to work, and source without any/minimal errors, was first source in the basic 4.3 DB.sql, then source in Drawde's updatedb.sql (forget the exact filename), then sourced in reloaddb.sql, etc. Got no errors, and found that the "ERROR: Getitem()..." bug disappeared, along with a few others (backpack errors).

I haven't looked at or tried any quests yet, so I can't say if there are any problems with that, just noticed your error was the same as mine so thought it could be the same thing that happened with me.

Hope that helps. If anything was too confusing let me know and I'll try to explain better. :D

mwmdragon
06-04-2003, 03:44 AM
I did exactly what you said but I got the same error, thanks for trying to help though. I appreciate it :)

Can anyone else help with this problem?

Mauritius
06-04-2003, 06:01 PM
same here.
I am using 44DR1+worlddata1.1final+itemsbooks
Got the problem with npc's doing the lvl1 quest

Wolfman
06-05-2003, 12:23 AM
The errors given when trying to give an NPC or pet an item are because the item slots arent defined in the code. The slots for inventory and banks and bags are defined. Just give the devs some time to get the packet info they need for NPC transactions.