Added new Perl/LUA GetSpellIDByBookSlot (#1151)

Added a new questAPI GetSpellIDByBookSlot to allow for sorting spellbooks by various attributes (level, type, etc).  Allows to determine which spell is in what book slot.
This commit is contained in:
neckkola
2020-12-21 19:06:48 -04:00
committed by GitHub
parent c6d4d8f291
commit a1cc68d214
5 changed files with 43 additions and 0 deletions
+7
View File
@@ -5090,6 +5090,13 @@ void Client::UnmemSpellAll(bool update_client)
UnmemSpell(i, update_client);
}
uint32 Client::GetSpellIDByBookSlot(int book_slot) {
if (book_slot <= EQ::spells::SPELLBOOK_SIZE) {
return GetSpellByBookSlot(book_slot);
}
return -1; //default
}
uint16 Client::FindMemmedSpellBySlot(int slot) {
if (m_pp.mem_spells[slot] != 0xFFFFFFFF)
return m_pp.mem_spells[slot];