Jump to content
Araştır
  • Diğer seçenekler ...
Sonuçları bul ...
Sonuçları bul ...
KO Developers Platformuna Hoşgeldin!
zudokuxd10

Achievement Reward (Item Issued)

Önerilen Mesajlar

I was trying to fix the Achievement Reward but i failed obviusly.
so i need some help. when i pick an item chest for reward it only message:
"Item Issued" and i never receive the item.

what i need to do here.
thx

İletiyi paylaş


Link to post
Sitelerde Paylaş
Alıntı

I was trying to fix the Achievement Reward but i failed obviusly.
so i need some help. when i pick an item chest for reward it only message:
"Item Issued" and i never receive the item.

what i need to do here.
thx

 


You should check the function that prompts that message to the client.

 

İletiyi paylaş


Link to post
Sitelerde Paylaş
Alıntı

I was trying to fix the Achievement Reward but i failed obviusly.
so i need some help. when i pick an item chest for reward it only message:
"Item Issued" and i never receive the item.

what i need to do here.
thx

 


Benim tavsiyem Visual Studio hata ayıklayıcıyı kullanmaktır. 47 numaralı hattın üzerine bir kesme noktası koyun ve bir ödül seçmeye çalışın. Tahminim, aUser-> dstats == 5 kodun dönmesine neden oluyor.

 

İletiyi paylaş


Link to post
Sitelerde Paylaş
Alıntı

Provide the code here.

 


There is the full code of achievehandler:
https://pastebin.com/3kJgY7RA

 

 

 

 

Alıntı

Benim tavsiyem Visual Studio hata ayıklayıcıyı kullanmaktır. 47 numaralı hattın üzerine bir kesme noktası koyun ve bir ödül seçmeye çalışın. Tahminim, aUser-> dstats == 5 kodun dönmesine neden oluyor.

 



i will try it.

 

İletiyi paylaş


Link to post
Sitelerde Paylaş
Alıntı

There is the full code of achievehandler:
https://pastebin.com/3kJgY7RA



i will try it.

 


If it prompts the message to the client, then that means this part is executed successfully;

 

 

 

 

  aUser->dstats = 5;

 

    Packet result(WIZ_ACHIEVE, uint8(AchieveGetItem));

    result << uint16(rMainID)

        << uint16(1);

 

    GiveItem(iItemID, ItemCount);

 

    Send(&result);

 



Which includes a call to GiveItem function. There are three options here;

  • iItemID is invalid (no such item with that id exist in database)
  • ItemCount is invalid (either 0 or an amount that user cannot carry)
  • A control in GiveItem function prevents the process.



Check these.

 

İletiyi paylaş


Link to post
Sitelerde Paylaş
Alıntı
If it prompts the message to the client, then that means this part is executed successfully;

  aUser->dstats = 5;


Packet result(WIZ_ACHIEVE, uint8(AchieveGetItem));
result
GiveItem(iItemID, ItemCount);

Send(&result);


Which includes a call to GiveItem function. There are three options here;

  • iItemID is invalid (no such item with that id exist in database)
  • ItemCount is invalid (either 0 or an amount that user cannot carry)
  • A control in GiveItem function prevents the process.


Check these.


i was a big noob. i didn't check ItemID in ACHIEVE_MAIN table.
and that ItemID doesnt exists in ITEM.

hahahaa man really thanks!!!

İletiyi paylaş


Link to post
Sitelerde Paylaş
Alıntı
i was a big noob. i didn't check ItemID in ACHIEVE_MAIN table.
and that ItemID doesnt exists in ITEM.

hahahaa man really thanks!!!


No problem man. Glad you did solve your problem.

İletiyi paylaş


Link to post
Sitelerde Paylaş
Misafir
Bu konu kapalıdır ama konuya cevap yazmaya yetkiniz var görünüyor.

×
×
  • Yeni Oluştur...