Jump to content

Recommended Posts

  • Honorable Member

This is the hidden content, please

Metin2 Download

 

This is the hidden content, please

2819150UYZqLT.png

 

Me and @Gurgarath tested it on windows server, we didn't see any problem.

If you have a problem with time(_t) or another bug, let me know so I can fix it.

Edited by Mali
  • Metin2 Dev 211
  • Eyes 8
  • Dislove 1
  • Sad 1
  • Think 1
  • Confused 1
  • Good 59
  • Love 11
  • Love 127

 

Link to comment
https://metin2.dev/topic/28501-drop-items-destroy-time-info/
Share on other sites

First of all, I would say thank you on behalf of the whole community.
I testing for 20-25 mins, for being sure, but seems everything okay for me.
Ingame pic: 
Thanks for the release.
HNY 

Spoiler

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1
  • Premium
1 minute ago, Tatsumaru said:

giphy.gif

best art ever XD

Tried, and working perfectly.
https://metin2.download/picture/ZXYf8gopYkI6ayGQsumPDR4YfSk1hb3G/.gif

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 1
  • Lmao 2

Ulthar

  • Bot
3 minutes ago, ReFresh said:

@ Cryptex Server source problem, it's just your fault. Check your server source files to find the real number of item destroy time. 

In my server the timer is 5 seconds I check 2 hours and everything is right like in the files 

english_banner.gif

  • Active+ Member

@ Cryptex Just search and use your brain, believe me, it's not too hard to find the functions. Sources are different, problem can be in configs in serverfiles too.

Spoiler
For dropped items without ownership
//item.h

void StartDestroyEvent(int iSec=300);

//item.cpp

void CItem::StartDestroyEvent(int iSec)

 

Edited by ReFresh

I'll be always helpful!  😉

  • Bot
10 hours ago, ReFresh said:

@ Cryptex Just search and use your brain, believe me, it's not too hard to find the functions. Sources are different, problem can be in configs in serverfiles too.

  Hide contents
For dropped items without ownership
//item.h

void StartDestroyEvent(int iSec=300);

//item.cpp

void CItem::StartDestroyEvent(int iSec)

 

is so hard to understand?.. i have everywhere 5 seconds and is the same.. it's show me 225 second.. 2 hours i spend to to be like in the tutorials... and is the same.

if i put 5 seconds it show me 225 seconds.. if i put 3 minutes (180seconds) it show me 335 seconds.. where is the problem ?

spacer.png

For dropped items without ownership 

//item.h 

void        StartDestroyEvent(int iSec=5);

//item.cpp

void CItem::StartDestroyEvent(int iSec)
{
    if (m_pkDestroyEvent)
        return;

    item_event_info* info = AllocEventInfo<item_event_info>();
    info->item = this;

    SetDestroyEvent(event_create(item_destroy_event, info, PASSES_PER_SEC(iSec)));
    TPacketGCItemDestroyTime p;
    p.bHeader = HEADER_GC_ITEM_DESTROY_TIME;
    p.dwVID = m_dwVID;
    p.tDestroyTime = tDestroyTime = time(0) + iSec;
    PacketAround(&p, sizeof(p));
}

//char_item.cpp

pkItemToDrop->StartDestroyEvent(5);

Edited by Metin2 Dev
Core X - External 2 Internal
  • Good 1

english_banner.gif

  • Forum Moderator

Cryptex is right, it is not properly working on FreeBSD, it is working perfectly fine on Windows though. He will have 225 seconds displayed but the item will vanish after 5. You can also see it above in the thread. It's most likely a time_t mismatch

Edited by Gurgarath

Gurgarath
coming soon
My Services

  • Bot
6 minutes ago, Gurgarath said:

Cryptex is right, it is not properly working on FreeBSD, it is working perfectly fine on Windows though. He will have 225 seconds displayed but the item will vanish after 5. You can also see it above in the thread. It's most likely a time_t mismatch

So, what can we do ?

english_banner.gif

  • Forum Moderator

Either fix it yourself (Client time exhauster, dirty division, specific time specifier and so on) or wait for an update

Gurgarath
coming soon
My Services

  • Bot
1 hour ago, Mali said:

This is the hidden content, please

now is with - 

spacer.png

It's working now, ty 

spacer.pngspacer.png

Edited by Metin2 Dev
Core X - External 2 Internal
  • Metin2 Dev 9
  • Dislove 1
  • Confused 1
  • Good 1
  • Love 1
  • Love 2

english_banner.gif

  • 3 months later...

I have a big Problem show :

 

https://metin2.download/picture/mbfloGtcJMi1Ild34V8t5FbhdqNlA48o/.gif

 

My syserr is empty 

 

please help me 

Discord : 

PrincePuma009#3021

Edited by Metin2 Dev
Core X - External 2 Internal
  • 1 month later...
  • 11 months later...
  • 1 year later...
  • 5 weeks later...

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.