• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Sell custom item by trade (npc).

DukeeH

Active Member
Joined
Dec 6, 2010
Messages
550
Solutions
3
Reaction score
39
Hello otland, i can't sell a item that i made a copy throght otitemeditor (otb). Like: i copied dsm sprite to make (ex: green armor), then i go to the npc that buys loot, trying to sell the dragon scale mail, it show the count of dragon scale mails i have, the right name and price. But when i look at the item picture (on trade window) it shows the green armor. and when i click sell i can't sell the item. no error or nothing. but the item doesn't go and money doesn't come.
btw, when i say "sell x dragon scale mail" on the same npc. i can sell normally.

Thanks.
 
1343646213015.gif
 
it happens because the client ID for the items is same.
[cpp]void ProtocolGame::AddShopItem(NetworkMessage_ptr msg, const ShopInfo item)
{
const ItemType& it = Item::items[item.itemId];
msg->AddU16(it.clientId);[/cpp]you would need some kind of serverside hack for the server to know which item do you mean to sell, since dsm is the first server item it finds for that cllientId:p
 
There is any approved way? Or it's easier just change the CID to an unusual item?
@Cyko
Check your pm, I've sent a few days ago.
 
Back
Top