Jump to content


Photo

unique_id - for cards after added to item


Best Answer 4144, 21 March 2017 - 05:16 PM

Must be 0xFFFFFFFF

Look like docs really wrong...


Or for all existing now flags will be 7 F: 0xFFFFFFF


Docs should be fixed after this pr will be merged: https://github.com/H...cules/pull/1646

Go to the full post


  • Please log in to reply
10 replies to this topic

#1 Klutz

Klutz

    Advanced Member

  • Members
  • PipPipPip
  • 84 posts

Posted 18 March 2017 - 10:28 PM

Hi,

 

I am moving my server from eAthena to Hercules.

And i saw the unique_id feature hercules has.

 

I forced serial the important cards i want to keep track, but sadlyunique_id doesn't stay after adding card to weapon, armor and etc...

 

I was wondering how can i keep this data even after card was added to weapon and removed from weapon.

Maybe adding card0_unique_id for each slot will do the work, but i can't find the procedure who deals with card insert.

 

The second option is to log that this item was inserted to other item, but i don't think Hercules has this feature either.

 

 

Does anyone have any idea how to do that?

 

Regards,

Tomer


Edited by Klutz, 18 March 2017 - 10:45 PM.


#2 4144

4144

    Advanced Member

  • Core Developers
  • 234 posts
  • Emulator:Hercules
  • Github:4144

Posted 19 March 2017 - 12:25 PM

Hercules log most events.

I think no special tool for log analysis, but sql can works like basic analysis tool.

 

For insert card logged card delete, then insert event



#3 Klutz

Klutz

    Advanced Member

  • Members
  • PipPipPip
  • 84 posts

Posted 19 March 2017 - 05:30 PM

Hercules log most events.

I think no special tool for log analysis, but sql can works like basic analysis tool.

 

For insert card logged card delete, then insert event

My logs configuration:

map_log: {
    // Enable Logs? (Note 3)
    // 0x00000 - Don't log at all
    // 0x00001 - (T) Log trades
    // 0x00002 - (V) Log vending transactions
    // 0x00004 - (P) Log items drop/picked by players
    // 0x00008 - (L) Log items drop/looted by monsters
    // 0x00010 - (S) Log NPC transactions (buy/sell)
    // 0x00020 - (N) Log Script transactions (items deleted/acquired through quests)
    // 0x00040 - (D) Log items stolen from mobs (Steal/Gank)
    // 0x00080 - © Log player-used items (consumables/pet&hom&merc food/items used for skills&attacks)
    // 0x00100 - (O) Log produced/ingredient items
    // 0x00200 - (U) Log MVP prize items
    // 0x00400 - (A) Log player created/deleted items (through @/# commands)
    // 0x00800 - ® Log items placed/retrieved from storage.
    // 0x01000 - (G) Log items placed/retrieved from guild storage.
    // 0x02000 - (E) Log mail system transactions.
    // 0x04000 - (I) Log auction system transactions.
    // 0x08000 - (B) Log buying store transactions
    // 0x20000 - (K) Log account bank transactions
    // 0x10000 - (X) Log all other transactions (rentals expiring/inserting cards/items removed by item_check/
    //           rings deleted by divorce/pet egg (un)hatching/pet armor (un)equipping/Weapon Refine skill/Remove Trap skill)
    // Example: Log trades+vending+script items+created items: 1+2+32+1024 = 1059
    // Please note that moving items from inventory to cart and back is not logged by design.
    enable: 0xFFFFF
 
 
 
And it doesn't log any insert/extract card to weapon or any armor item


#4 4144

4144

    Advanced Member

  • Core Developers
  • 234 posts
  • Emulator:Hercules
  • Github:4144

Posted 20 March 2017 - 01:46 AM

Look like docs for flags outdated. 0xFFFFF mean log all.

After you can see logs in table pick_log or like this, not remember exact table name.

 

For log types see src/map/log.c and function log_picktype2char

Here codes after return.



#5 Klutz

Klutz

    Advanced Member

  • Members
  • PipPipPip
  • 84 posts

Posted 20 March 2017 - 07:18 AM

Look like docs for flags outdated. 0xFFFFF mean log all.

After you can see logs in table pick_log or like this, not remember exact table name.

 

For log types see src/map/log.c and function log_picktype2char

Here codes after return.

That's what  i am saying.

It doesn't log it at all, no matter what i do.

 

Something seems to be broken



#6 4144

4144

    Advanced Member

  • Core Developers
  • 234 posts
  • Emulator:Hercules
  • Github:4144

Posted 20 March 2017 - 01:05 PM

It log all events. Or almost all.

But docs outdated.

It log card inserts if you speaking about it



#7 Klutz

Klutz

    Advanced Member

  • Members
  • PipPipPip
  • 84 posts

Posted 20 March 2017 - 07:28 PM

It log all events. Or almost all.

But docs outdated.

It log card inserts if you speaking about it

It doesn't

I didn't even read the docs, I checked on the picklog itself.

 

There is nothin there about -1 for the card i am inserting.

So it's not logged.



#8 4144

4144

    Advanced Member

  • Core Developers
  • 234 posts
  • Emulator:Hercules
  • Github:4144

Posted 21 March 2017 - 03:26 PM

Then you not enabled it by mask.

Try fix mask and restart server.



#9 Klutz

Klutz

    Advanced Member

  • Members
  • PipPipPip
  • 84 posts

Posted 21 March 2017 - 04:24 PM

Then you not enabled it by mask.

Try fix mask and restart server.

 enable: 0xFFFFF



#10 4144

4144

    Advanced Member

  • Core Developers
  • 234 posts
  • Emulator:Hercules
  • Github:4144

Posted 21 March 2017 - 05:16 PM   Best Answer

Must be 0xFFFFFFFF

Look like docs really wrong...


Or for all existing now flags will be 7 F: 0xFFFFFFF


Docs should be fixed after this pr will be merged: https://github.com/H...cules/pull/1646



#11 Klutz

Klutz

    Advanced Member

  • Members
  • PipPipPip
  • 84 posts

Posted 21 March 2017 - 11:39 PM

Must be 0xFFFFFFFF

Look like docs really wrong...


Or for all existing now flags will be 7 F: 0xFFFFFFF


Docs should be fixed after this pr will be merged: https://github.com/H...cules/pull/1646

Now that works .

 

Thank you so much  <3






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


This topic has been visited by 20 user(s)