mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 11:28:25 +00:00
[Quest API] Fix LDoN Methods in Perl/Lua (#3287)
# Perl - Add `quest::removeldonloss(theme_id)`. - Add `quest::removeldonwin(theme_id)`. # Lua - Fix `eq.remove_ldon_win(theme_id)` as it was using `quest_manager.addldonwin(theme_id)` instead of `quest_manager.removeldonwin(theme_id)`.
This commit is contained in:
@@ -849,11 +849,21 @@ void Perl__addldonwin(uint32 theme_id)
|
||||
quest_manager.addldonwin(theme_id);
|
||||
}
|
||||
|
||||
void Perl__removeldonwin(uint32 theme_id)
|
||||
{
|
||||
quest_manager.removeldonwin(theme_id);
|
||||
}
|
||||
|
||||
void Perl__addldonloss(uint32 theme_id)
|
||||
{
|
||||
quest_manager.addldonloss(theme_id);
|
||||
}
|
||||
|
||||
void Perl__removeldonloss(uint32 theme_id)
|
||||
{
|
||||
quest_manager.removeldonloss(theme_id);
|
||||
}
|
||||
|
||||
void Perl__setnexthpevent(int at_mob_percentage)
|
||||
{
|
||||
quest_manager.setnexthpevent(at_mob_percentage);
|
||||
@@ -4632,6 +4642,8 @@ void perl_register_quest()
|
||||
package.add("remove_expedition_lockout_by_char_id", &Perl__remove_expedition_lockout_by_char_id);
|
||||
package.add("removeitem", (void(*)(uint32_t))&Perl__removeitem);
|
||||
package.add("removeitem", (void(*)(uint32_t, int))&Perl__removeitem);
|
||||
package.add("removeldonloss", &Perl__removeldonloss);
|
||||
package.add("removeldonwin", &Perl__removeldonwin);
|
||||
package.add("removetitle", &Perl__removetitle);
|
||||
package.add("rename", &Perl__rename);
|
||||
package.add("repopzone", &Perl__repopzone);
|
||||
|
||||
Reference in New Issue
Block a user