#474 Lua ability to Remove Known Spells

بسته‌شده
1 سال پیش باز شده توسط Dorbin · 1 دیدگاه

Similar to AddSpellBookEntry(Spawn, ###, 1), we need a way to remove spells from players. This is highly evident when we are changing a player's class.

Similarly, HasSpellBookEntry() could be useful for verifying before attempting to Remove or Add a spell.

Similar to AddSpellBookEntry(Spawn, ###, 1), we need a way to remove spells from players. This is highly evident when we are changing a player's class. Similarly, HasSpellBookEntry() could be useful for verifying before attempting to Remove or Add a spell.
image نظر 1 سال پیش
همكار

this was added in 417bea4214

  • New LUA Functions:

DeleteSpellBook(Player, type)

type = bit operand combination of: DELETE_TRADESKILLS = 1, DELETE_SPELLS = 2, DELETE_COMBAT_ART = 4, DELETE_ABILITY = 8, DELETE_NOT_SHOWN = 16 Eg. tradeskills and spells = (1+2) = 3

SendNewAdventureSpells(Player) - sends adventure spells by their level

SendNewTradeskillSpells(Player) - sends tradeskill spells by their level

RemoveSpellBookEntry(Player, spell_id)

this was added in https://git.eq2emu.com/devn00b/EQ2EMu/commit/417bea4214c1d49e04da8568c835331f21f4c181 - New LUA Functions: DeleteSpellBook(Player, type) type = bit operand combination of: DELETE_TRADESKILLS = 1, DELETE_SPELLS = 2, DELETE_COMBAT_ART = 4, DELETE_ABILITY = 8, DELETE_NOT_SHOWN = 16 Eg. tradeskills and spells = (1+2) = 3 SendNewAdventureSpells(Player) - sends adventure spells by their level SendNewTradeskillSpells(Player) - sends tradeskill spells by their level RemoveSpellBookEntry(Player, spell_id)
image 1 سال پیش بسته شد
برای پیوستن به گفتگو، وارد شودید.
درحال بارگذاری...
لغو
ذخيره
هنوز محتوایی ایجاد نشده.