• 🎉 Hey there! I've just launched my brand new server voting platform — Metin2 P Servers 🚀

Not answered Sanii switchbot, small problem

Member
Oct
Threads
2
41
1
0
6
HubMoney
436

AD: Mt2009 - Mobile & PC - 30 January 2026 CHECK THE PRESENTATION!

Hi!
I added sanii switchbot and if i put an item in switchbot and i teleport the item will be equiped usually not as intended. I saw a topic with same problem and the fix was the clientmanagerplayer.cpp but i couldn't fix it, can someone help me?
 

Attachments

  • fura.PNG
    fura.PNG
    54.6 KB · Views: 88
Solution
do you have a solution for this?
I could fix it. Previous person helped me. As i mentioned the problem was in the clientmanagerplayer.cpp. In the tutorial the coding was a bit different(bad).

Here is an example as a solution:
snprintf(queryStr, sizeof(queryStr),
"SELECT id,window+0,pos,count,vnum,socket0, socket1, socket2,attrtype0,attrvalue0,attrtype1,attrvalue1,attrtype2,attrvalue2,attrtype3,attrvalue3,attrtype4,attrvalue4,attrtype5,attrvalue5,attrtype6,attrvalue6 "
"FROM item%s WHERE owner_id=%d AND (window in ('INVENTORY','EQUIPMENT','DRAGON_SOUL_INVENTORY','BELT_INVENTORY','SWITCHBOT'))",
GetTablePostfix(), packet->player_id)...
Metin2Hub Bot
M2Hub Bot
Feb
Threads
66
2,366
2
1,293
113
HubMoney
1,678
Hi!
I added sanii switchbot and if i put an item in switchbot and i teleport the item will be equiped usually not as intended. I saw a topic with same problem and the fix was the clientmanagerplayer.cpp but i couldn't fix it, can someone help me?

Hello dear user,

Your post will be under surveillance by bots for the next few hours.

Forum description : Metin2 private server, Metin2 download, Metin2 support, Metin2 Forum, Metin2 Pvp Servers, Errors, Bugs, Requests, Metin2 Pvp Forum, Everything About Metin2.
 
Member
Oct
Threads
2
41
1
0
6
HubMoney
436
do you have a solution for this?
I could fix it. Previous person helped me. As i mentioned the problem was in the clientmanagerplayer.cpp. In the tutorial the coding was a bit different(bad).

Here is an example as a solution:
snprintf(queryStr, sizeof(queryStr),
"SELECT id,window+0,pos,count,vnum,socket0, socket1, socket2,attrtype0,attrvalue0,attrtype1,attrvalue1,attrtype2,attrvalue2,attrtype3,attrvalue3,attrtype4,attrvalue4,attrtype5,attrvalue5,attrtype6,attrvalue6 "
"FROM item%s WHERE owner_id=%d AND (window in ('INVENTORY','EQUIPMENT','DRAGON_SOUL_INVENTORY','BELT_INVENTORY','SWITCHBOT'))",
GetTablePostfix(), packet->player_id);
CDBManager::instance().ReturnQuery(queryStr, QID_ITEM, peer->GetHandle(), new ClientHandleInfo(dwHandle, packet->player_id));

 
Solution
Member
Dec
Threads
0
17
0
1
HubMoney
303
I could fix it. Previous person helped me. As i mentioned the problem was in the clientmanagerplayer.cpp. In the tutorial the coding was a bit different(bad).

Here is an example as a solution:
snprintf(queryStr, sizeof(queryStr),
"SELECT id,window+0,pos,count,vnum,socket0, socket1, socket2,attrtype0,attrvalue0,attrtype1,attrvalue1,attrtype2,attrvalue2,attrtype3,attrvalue3,attrtype4,attrvalue4,attrtype5,attrvalue5,attrtype6,attrvalue6 "
"FROM item%s WHERE owner_id=%d AND (window in ('INVENTORY','EQUIPMENT','DRAGON_SOUL_INVENTORY','BELT_INVENTORY','SWITCHBOT'))",
GetTablePostfix(), packet->player_id);
CDBManager::instance().ReturnQuery(queryStr, QID_ITEM, peer->GetHandle(), new ClientHandleInfo(dwHandle, packet->player_id));

Give u discord nick