View Full Version : Discovered Items
provocating
11-03-2013, 09:26 PM
What are the conditions for items to make it into discovered items? Is there a level when it starts happening, is it any items or special items?
Kingly_Krab
11-03-2013, 09:44 PM
What are the conditions for items to make it into discovered items? Is there a level when it starts happening, is it any items or special items?
I believe it is when the item is acquired whether it be by looting or summoning. A lot of the following items are summoned, none are looted, some are bought, some are from starting with them.
mysql> SELECT * FROM discovered_items;
+---------+------------+-----------------+----------------+
| item_id | char_name | discovered_date | account_status |
+---------+------------+-----------------+----------------+
| 1 | Gamemaster | 1381116756 | 300 |
| 2 | Chuwar | 1376675091 | 0 |
| 5 | Supernova | 1380665607 | 0 |
| 7 | Supernova | 1380665909 | 0 |
| 9 | Warrior | 1380248690 | 300 |
| 10 | Warrior | 1380248692 | 300 |
| 15 | Supernova | 1380666638 | 0 |
| 25 | Warrior | 1380660754 | 300 |
| 26 | Warrior | 1380660756 | 300 |
| 27 | Warrior | 1380660757 | 300 |
| 28 | Warrior | 1380660759 | 300 |
| 29 | Warrior | 1380660762 | 300 |
| 30 | Warrior | 1380660763 | 300 |
| 31 | Warrior | 1380660784 | 300 |
| 39 | Warrior | 1380666528 | 300 |
| 40 | Warrior | 1380666591 | 300 |
| 41 | Warrior | 1380666533 | 300 |
| 42 | Warrior | 1380666531 | 300 |
| 43 | Warrior | 1380666527 | 300 |
| 44 | Warrior | 1380666525 | 300 |
| 45 | Warrior | 1380666596 | 300 |
| 1001 | Kinglykrab | 1378430415 | 300 |
| 1002 | Kinglykrab | 1378430467 | 300 |
| 9997 | Gamemaster | 1381031401 | 300 |
| 9998 | Kinglykrab | 1380155170 | 300 |
| 10001 | Kinglykrab | 1378513435 | 300 |
| 13836 | Gamemaster | 1381031849 | 300 |
| 34217 | Warrior | 1380665689 | 300 |
| 62649 | Kinglykrab | 1380247313 | 300 |
| 82931 | Kinglykrab | 1379817431 | 300 |
| 82932 | Kinglykrab | 1379817434 | 300 |
| 82933 | Kinglykrab | 1379817434 | 300 |
| 82934 | Kinglykrab | 1379817435 | 300 |
| 82935 | Kinglykrab | 1379817437 | 300 |
| 82936 | Kinglykrab | 1379817437 | 300 |
| 82937 | Kinglykrab | 1379817438 | 300 |
| 129460 | Kinglykrab | 1379817398 | 300 |
| 129501 | Kinglykrab | 1378073665 | 300 |
| 129502 | Kinglykrab | 1378073669 | 300 |
| 129503 | Kinglykrab | 1378073669 | 300 |
| 129504 | Kinglykrab | 1378073670 | 300 |
| 129505 | Kinglykrab | 1378073671 | 300 |
| 129506 | Kinglykrab | 1378073673 | 300 |
| 129507 | Kinglykrab | 1378073674 | 300 |
+---------+------------+-----------------+----------------+
44 rows in set (0.05 sec)
provocating
11-03-2013, 09:59 PM
I wonder if there is a variable I am missing here? On my test server nothing appears to be populating in that table.
Kingly_Krab
11-03-2013, 10:13 PM
Yes, likely you're missing the rule_value setting.
mysql> SELECT * FROM rule_values WHERE rule_name LIKE 'Character:EnableDiscovere
dItems';
+------------+---------------------------------+------------+-------------------
-----------------------------------------------------------------------+
| ruleset_id | rule_name | rule_value | notes
|
+------------+---------------------------------+------------+-------------------
-----------------------------------------------------------------------+
| 1 | Character:EnableDiscoveredItems | true | If enabled, it ena
bles EVENT_DISCOVER_ITEM and also saves character names and timestamps |
+------------+---------------------------------+------------+-------------------
-----------------------------------------------------------------------+
1 row in set (0.00 sec)
Uleat
11-03-2013, 10:15 PM
Here's your rule: https://github.com/EQEmu/Server/blob/master/zone/inventory.cpp#L306
Are you trying this with your GM flag on?
causticcoder
11-04-2013, 09:21 AM
Here's your rule: https://github.com/EQEmu/Server/blob/master/zone/inventory.cpp#L306
Are you trying this with your GM flag on?
Nope, but I was definitely missing the rule.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.