mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 22:58:34 +00:00
New Perl/Lua buff functionality.
- Client::FindMemmedSpellBySlot(slot) This allows you to find memmed spells by a specific slot. Example: https://i.imgur.com/06OFT3c.png Perl Example: https://pastebin.com/BCr6KqSS - Client::MemmedCount() This will find the number of memmed spells the client has. Example: https://i.imgur.com/cY26DEl.png Perl Example: https://pastebin.com/T3ahSUgi
This commit is contained in:
@@ -5056,6 +5056,23 @@ void Client::UnmemSpellAll(bool update_client)
|
||||
UnmemSpell(i, update_client);
|
||||
}
|
||||
|
||||
uint16 Client::FindMemmedSpellBySlot(int slot) {
|
||||
if (m_pp.mem_spells[slot] != 0xFFFFFFFF)
|
||||
return m_pp.mem_spells[slot];
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int Client::MemmedCount() {
|
||||
int memmed_count = 0;
|
||||
for (int i = 0; i < EQEmu::spells::SPELL_GEM_COUNT; i++)
|
||||
if (m_pp.mem_spells[i] != 0xFFFFFFFF)
|
||||
memmed_count++;
|
||||
|
||||
return memmed_count;
|
||||
}
|
||||
|
||||
|
||||
void Client::ScribeSpell(uint16 spell_id, int slot, bool update_client)
|
||||
{
|
||||
if(slot >= EQEmu::spells::SPELLBOOK_SIZE || slot < 0)
|
||||
|
||||
Reference in New Issue
Block a user