Shared Memory and RuleSets
Anyone know what rule set is exposed to shared memory? Let me explain, I am trying pull the ExpansionSettings rule from SharedDatabase:LoadLootDrops and it is always returning the default. Either the expansion settings are not being pulled before the loot drops are loaded or I do not know the default rule set, or maybe there is not one. My best guess is that you are not really supposed to use rulesets here, or it would take some substantial code changes. I do not mind doing the code changes but if there is a default ruleset that would be helpful.
|
Looking under rulesys.cpp if the request is not coming from a zone, it will not load the rules, probably hits a return. This is probably what I am experiencing. I may need to shift gears and working within loottables.cpp instead.
|
Ah hah! Figured it out. I small change to shared_memory/main.cpp got me what I wanted, I am basically loading the rules there and I can now access the values in loot.cpp
|
This is really cool what your doing. Are you going to basically turn on loot by enabled expansion as your server progresses?
Celestial |
Yes, and it is working perfectly. I am in Greater Faydark right now and set a skeleton spawn spot for Velious, our current era and it repops fine. I then change it in the editor for another era, out of our current range such as Luclin and repop the zone...no skeleton. Other than some code changes I also of course had to add a tinyint to the spawn2 table, called expansion.
But yes I have done spawns and loot, both are working fine. I gave the skeleton different eras of loot and the only thing they are spawned with is current era loot. Things like a Skeleton Tibia never enters the loot table. |
This is where I set the skeleton for a higher expansion, I picked PoR on this instance, he instantly quit popping.
http://legacyoffroststone.com/forum/...nshots/npc.jpg |
This is great stuff. Do you have plans to have settings for melee and other things that changed (pets for example)? Also quests via expansion?
|
I plan on doing all of it in time. Luckily i had already thought about a lot of these things as I was fixing issues. As some know certain class and race combinations were only allowed during certain expansions and you cannot block those from the database in Titanium. When I made those changes for the combinations I did it using the expansions column.
Not sure if I mentioned it in a previous post but I have found you really do need an expansions_min and expansions_max column because many things existed in only a certain era, they came and went. |
Legacy items come to mind immediately :)
|
|
All times are GMT -4. The time now is 12:17 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.