shefer Posted November 8, 2022 Group: Members Topic Count: 5 Topics Per Day: 0.01 Content Count: 10 Reputation: 0 Joined: 09/20/22 Last Seen: December 23, 2022 Share Posted November 8, 2022 How to monitor the player's use of an item with a script and prompt him when triggered. Like using potions, or using butterfly wings. Quote Link to comment Share on other sites More sharing options...
0 PsyOps Posted November 8, 2022 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 150 Reputation: 12 Joined: 12/03/18 Last Seen: 19 hours ago Share Posted November 8, 2022 I think scripts can't do the trick on this. A source modification is needed for this purpose. And you have to also create a database for this purpose. Depending on what you want to record for using items, it can be tedious to do. Also, i cannot imagine the amount of data you need to store for that purpose. XD Quote Link to comment Share on other sites More sharing options...
0 Akbare Posted November 20, 2022 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 491 Reputation: 20 Joined: 11/19/11 Last Seen: June 5, 2023 Share Posted November 20, 2022 On 11/8/2022 at 3:51 PM, shefer said: How to monitor the player's use of an item with a script and prompt him when triggered. Like using potions, or using butterfly wings. maybe can help Quote --------------------------------------- OnEquip_Script: Script to execute when the item is equipped. Warning, not all item bonuses will work here as expected. --------------------------------------- OnUnequip_Script: Script to execute when the item is unequipped or when a rental item expires. Warning, not all item bonuses will work here as expected. --------------------------------------- Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted January 26, 2023 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Yesterday at 01:10 PM Share Posted January 26, 2023 conf/log_athena.conf#L10-L44 // Enable Logs? (Note 3) // 0x00000000 - Don't log at all // 0x00000001 - (T) Log trades // 0x00000002 - (V) Log vending transactions // 0x00000004 - (P) Log items drop/picked by players // 0x00000008 - (L) Log items drop/looted by monsters // 0x00000010 - (S) Log NPC transactions (buy/sell) // 0x00000020 - (N) Log Script transactions (items deleted/acquired through quests) // 0x00000040 - (D) Log items stolen from mobs (Steal/Gank) // 0x00000080 - (C) Log player-used items (consumables/pet&hom&merc food/items used for skills&attacks) // 0x00000100 - (O) Log produced/ingredient items // 0x00000200 - (U) Log MVP prize items // 0x00000400 - (A) Log player created/deleted items (through @/# commands) // 0x00000800 - (R) Log items placed/retrieved from storage. // 0x00001000 - (G) Log items placed/retrieved from guild storage. // 0x00002000 - (E) Log mail system transactions. // 0x00004000 - (I) Log auction system transactions. // 0x00008000 - (B) Log buying store transactions // 0x00010000 - (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/Stylist) // 0x00020000 - ($) Log cash transactions // 0x00040000 - (K) Log account bank transactions // 0x00080000 - (F) Removed bound items when guild/party is broken // 0x00100000 - (Y) Log Roulette Lottery // 0x00200000 - (Z) Merged items from item mergers process. // 0x00400000 - (Q) Log items given from quest-granted drops. // 0x00800000 - (H) Log items consumed by Private Airship system // 0x01000000 - (J) Log Barter Shop transactions // 0x02000000 - (W) Log Laphine system transactions // 0x04000000 - (0) Enchantgrade UI // 0x08000000 - (1) Reform UI // 0x10000000 - (2) Enchant UI // 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_logs: 0xFFFFFFFF the log here should be good enough for you to track most of the item in your server. Quote Link to comment Share on other sites More sharing options...
Question
shefer
How to monitor the player's use of an item with a script and prompt him when triggered.
Like using potions, or using butterfly wings.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.