Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate

Autor Topic: 1.04x, how to get item serial from client  (Visto 973 veces)

0 Miembros and 1 Guest are viewing this topic.

Este tema esta marcado como solucionado. Pulsa aqui si quieres ver la solucion de este tema.

Offline buuug7 Posteado: April 16, 2023, 11:13:08 AM | Modificado: April 16, 2023, 11:15:47 AM by buuug7

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 9
  • Gracias recibida: 5
  • cn
1.04E, or 1.04d, get the item serial from server or get from database is easy, but how to get the item serial from client Main.dll ? i search the entire webiste and can not found how to get serial from mu client.

the ObjectItem struct of have a attibute UniqueID, but it does not work

{
/*+0*/ short ItemID;
/*+2*/ int Level;
/*+6*/ char Unknown6;
/*+7*/ char Unknown7;
/*+8*/ char Unknown8;
/*+9*/ WORD DamageMin;
/*+11*/ WORD DamageMax;
/*+13*/ char Unknown13;
/*+14*/ WORD Defense;
/*+16*/ WORD MagicDefense;
/*+18*/ char Unknown18;
/*+19*/ char Unknown19;
/*+20*/ short Unknown20;
/*+22*/ char Durability;
/*+23*/ char ExcellentOption;
/*+24*/ char AncientOption;
/*+25*/ short ReqStrenght;
/*+27*/ short ReqDextirity;
/*+29*/ short ReqEnergy;
/*+31*/ short ReqVitality;
/*+33*/ short ReqCommand;
/*+35*/ short ReqLevel;
/*+37*/ char SpecialCount;
/*+38*/ WORD SpecialType[8];
/*+54*/ BYTE SpecialValue[8];
/*+62*/ int UniqueID;
/*+66*/ char Unknown66;
/*+67*/ char PosX;
/*+68*/ char PosY;
/*+69*/ WORD HarmonyType;
/*+71*/ short HarmonyValue;
/*+73*/ char Is380Item;
/*+74*/ char SocketOption[5];
/*+79*/ char Unknown79;
/*+80*/ char SocketSeedIndex[5];
/*+85*/ char SocketSphereLevel[5];
/*+90*/ char SocketSet;
/*+91*/ BYTE gap01[5];
/*+96*/ char DurabilityState;
/*+97*/ char PeriodItem;
/*+98*/ char ExpiredItem;
/*+99*/ int ExpireDateConvert;
/*+103*/ int Unknown103; // 装备身上为1, 其他时候为2
} ObjectItem, * lpItemObj;
#pragma pack(pop)

Gracias:


Offline xufqing #1 Posteado: April 17, 2023, 11:21:11 PM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 29
  • Gracias recibida: 62
  • cn
物品ID?ObjectItem 不是有ItemID属性吗?


Offline webmonkey #2 Posteado: April 18, 2023, 12:20:43 AM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 45
  • Gracias recibida: 48
  • ar
item serial is never sent to client. What would you like to do with it client side?


Offline buuug7 #3 Posteado: April 18, 2023, 06:29:34 AM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 9
  • Gracias recibida: 5
  • cn
ItemID 不是物品序列号


Offline buuug7 #4 Posteado: April 18, 2023, 06:37:48 AM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 9
  • Gracias recibida: 5
  • cn
item serial is never sent to client. What would you like to do with it client side?

when character use some item kill monster and record the numbers of killed monsters with that item, and persisted it into database. in client, show kills number on item tooltip text.

database table example:

itemSerialaccountIdkillMonsters19988my_account99


Marcado como mejor respuesta por: buuug7 Posteado April 19, 2023, 02:26:00 AM

Offline webmonkey #5 Posteado: April 18, 2023, 10:07:21 AM

  • 0 puntos por ventas
  • *
  • Rank: Dedicado
  • Posts: 45
  • Gracias recibida: 48
  • ar
item serial is never sent to client. What would you like to do with it client side?

when character use some item kill monster and record the numbers of killed monsters with that item, and persisted it into database. in client, show kills number on item tooltip text.

database table example:

itemSerialaccountIdkillMonsters19988my_account99

Great idea! UniqueID is a client side only value, ItemID like the guys are saying is the item type. The easiest way I can think to get what you want is writing a custom packet that asks server amount of kills when you hover over an item, response can be stored in a single int in client, you don't need to store values for all items since you would be only displaying one tooltip at the time, then you could reference the value in the tooltip draw function. It would probably take a few ms to populate the value, but it's no big deal.

Harder approach would be to set a different array with item custom values, and you could populate the correct kill value when receiving item info from server, all live items in client are stored in a objectitems array, you could reference your new array with same index.


Offline buuug7 #6 Posteado: April 19, 2023, 06:28:48 AM

  • 0 puntos por ventas
  • *
  • Rank: Principiante
  • Posts: 9
  • Gracias recibida: 5
  • cn
item serial is never sent to client. What would you like to do with it client side?

when character use some item kill monster and record the numbers of killed monsters with that item, and persisted it into database. in client, show kills number on item tooltip text.

database table example:

itemSerialaccountIdkillMonsters19988my_account99

Great idea! UniqueID is a client side only value, ItemID like the guys are saying is the item type. The easiest way I can think to get what you want is writing a custom packet that asks server amount of kills when you hover over an item, response can be stored in a single int in client, you don't need to store values for all items since you would be only displaying one tooltip at the time, then you could reference the value in the tooltip draw function. It would probably take a few ms to populate the value, but it's no big deal.

Harder approach would be to set a different array with item custom values, and you could populate the correct kill value when receiving item info from server, all live items in client are stored in a objectitems array, you could reference your new array with same index.

Thank you for your answer. I originally thought that the serial number of the item could be get on the client side, as simple as get the item level, but now it seems that it is not possible. Your answer is simple and clear, thank you very much.


Solo usuarios registrados pueden comentar y agradecer, Logueate o Registrate


 

Related Topics

  Subject / Started by Replies Last post
3 Replies
1693 Views
Last post February 12, 2019, 09:55:41 PM
by joackle
9 Replies
7746 Views
Last post June 03, 2024, 10:26:16 PM
by chipcoidj
3 Replies
2569 Views
Last post September 28, 2021, 04:49:19 AM
by onlinezajzaj
0 Replies
347 Views
Last post April 09, 2022, 06:38:29 PM
by eliarwis
0 Replies
477 Views
Last post April 16, 2023, 11:07:46 AM
by buuug7