Possible to make an id of an item that doesn't have one?
The question is, how do I make an id of an item that doesn't have one, without using the database? I need to know how to do it ingame, cause I made some items with "/item..." and for some reason it didn't have an id, so I can't drop it, nor put it in storage, cause it makes me getting a DC. And yes, I can probably do this in the database, but I need to know how to do it ingame as well. Like, how to automatically make the unknown item to get an known id? Dropping won't work, putting in storage won't work, and trading it won't work as well...
Re: Possible to make an id of an item that doesn't have one?
the simple answer is that if you can create an item with the /item command then it DOES have an id
It is physically impossible to make an item that doesn't have an id as the item would be NULL and would not exist in either the client or server.
It is quite possible to make an item that exists in the server but crashes your client due to a the server sending an invalid packet to display it... However if you can see the item in your inventory then the client is also recognizing it as a valid item.
If you load a character that has an invalid item then it will instantly kill your client the second you attempt to enter the game.
If you mean the item has no name or description then that just means you have made something that doesn't have an STL entry. If it shows as a white square in your inventory then it just means that the STB entry has no icon defined.
If you can't drop it, store it or sell it to an NPC then you have a problem. there are no GM commands (at least in the open source servers) that allow you to delete an item from your inventory.
Is it equipable? if so then there is a quick way to get rid of it.
1) equip it
2)use the /cha command to replace it with another item. You could also use the /set command but that will replace ALL equipped items in a given set
/cha command syntax for those of you not familiar with this command.
/cha [itemtype][id][stat][socket][refine] (only bolded are required. others default to 0 if left out)
Item type must be one of the following
Cap = hat
Mask = mask
Suit = body armor
Glov = glove or whatever you have on your hand
Shoe = shoe
Back = wings, bags etc
Shield = stuff held in the off hand. subweapon, shield, magic shield, doll etc.
Weap = weapon
We don't currently have any way to give jewelry items with this command. Maybe i should fix that