[DiscordArchive] Holy cow that was quick and effective. Do I need to take any steps after updating the values? Anythi
[DiscordArchive] Holy cow that was quick and effective. Do I need to take any steps after updating the values? Anythi
Archived author: Deleted User • Posted: 2022-06-06T00:20:37.432000+00:00
Original source
Holy cow that was quick and effective. Do I need to take any steps after updating the values? Anything with the server or clients?
Archived author: Revision • Posted: 2022-06-06T00:21:18.629000+00:00
Original source
You did update them, not just run the query I gave you? You should be able to use the command `reload npc_trainer` to reload the values and it should update instantly.
Archived author: Deleted User • Posted: 2022-06-06T00:22:51.844000+00:00
Original source
Yes, I updated the rows, ran the query again to verify the change persisted. So, I run the reload command in the client?
Archived author: Revision • Posted: 2022-06-06T00:23:12.548000+00:00
Original source
Yes, the command can be run from the client or the server console.
Archived author: Deleted User • Posted: 2022-06-06T00:24:32.759000+00:00
Original source
The effect was immediate. Thank you. So I am a little less lost, and don't have to ask help as often, what was the process you used to get the SpellID numbers?
Archived author: Revision • Posted: 2022-06-06T00:25:50.886000+00:00
Original source
I just used my AoWoW installation to find them, but to use PhpMyAdmin or HeidiSQL etc you could use the ID of Hira Snowdawn which is the mount trainer in Dalaran, `SELECT * FROM npc_trainer WHERE ID=31238` to find the reference IDs and grab those to find the spells associated to those references.
Archived author: Deleted User • Posted: 2022-06-06T00:27:29.298000+00:00
Original source
Thank you so much.
Archived author: Revision • Posted: 2022-06-06T00:29:35.865000+00:00
Original source
Ofc, you can also run a nested query to get the spells directly from the creature entry: `SELECT * FROM npc_trainer WHERE ID IN (SELECT ABS(SpellID) FROM npc_trainer WHERE ID=31238);`
Archived author: Deleted User • Posted: 2022-06-06T00:33:46.282000+00:00
Original source
Whew. I have some real work to do brushing up on SQL. It works though. From what I follow, this queries the npc_trainer table for all SpellID's associated with trainer ID=31238, and returns a list of the absolute values of those SpellID's which are used to query npc_trainer again, selecting those ID's.
Archived author: Revision • Posted: 2022-06-06T00:35:28.147000+00:00
Original source
Negative values inside npc_trainer are references, remove the - sign and that value is the ID of the entry in npc_trainer. That's why it's `ABS(SpellID)` as it pretty much removes the - sign. So yes, you're right. I think I'm a little confused by what you wrote but I believe you're saying the same thing.