Jump to content

[HELP]Drop item time C++ 40k


Recommended Posts

char_item.cpp and search:

ChatPacket(CHAT_TYPE_INFO, LC_TEXT("¶łľîÁř ľĆŔĚĹŰŔş 3şĐ ČÄ »ç¶óÁý´Ď´Ů."));
pkItemToDrop->StartDestroyEvent();

 

so example if want when you drop item, disapear in 5 sec put like this:

 

ChatPacket(CHAT_TYPE_INFO, LC_TEXT("¶łľîÁř ľĆŔĚĹŰŔş 3şĐ ČÄ »ç¶óÁý´Ď´Ů."));
pkItemToDrop->StartDestroyEvent(5);

Link to comment
Share on other sites

  • 6 years later...
  • Contributor
9 hours ago, SDlongju2 said:

not working for me, maybe any solution 2021 ?

It should work i'm sure, but you can modify it too in: item.h: StartDestroyEvent(int iSec=300); 

Note that it is applied to everything, including monsters. That's why Tacticus said to edit in char_item, because that only applied to players.

Edited by TMP4
  • Love 1
Link to comment
Share on other sites

8 hours ago, TMP4 said:

It should work i'm sure, but you can modify it too in: item.h: StartDestroyEvent(int iSec=300); 

Note that it is applied to everything, including monsters. That's why Tacticus said to edit in char_item, because that only applied to players.

it was the marty code so it have another line thats says if NEWSTUFETCETC THEN > 300 ELSE > normal 30 sec, su this 30 sec will never work i dint see it

  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 5

      Effect weapons

    2. 3

      Crystal Metinstone

    3. 3

      Feeding game source to LLM

    4. 113

      Ulthar SF V2 (TMP4 Base)

    5. 3

      Feeding game source to LLM

    6. 0

      Target Information System

    7. 3

      Feeding game source to LLM

    8. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.