mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-26 11:40:44 +00:00
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:
1 parent
c6d4d8f291
commit
a1cc68d214
5 files changed
+43
No files matched your search
@@ -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];
|
||||
|
||||
Reference in new issue
Block a user