mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-07 17:22:26 +00:00
[Quest API] Add AddNimbusEffect(effect_id) to Perl. (#1412)
- Add $client->AddNimbusEffect(effect_id) to Perl.
This commit is contained in:
parent
65150b0581
commit
797eaf308d
@ -6257,6 +6257,20 @@ XS(XS_Mob_GetLastName) {
|
|||||||
XSRETURN(1);
|
XSRETURN(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
XS(XS_Mob_AddNimbusEffect);
|
||||||
|
XS(XS_Mob_AddNimbusEffect) {
|
||||||
|
dXSARGS;
|
||||||
|
if (items != 2)
|
||||||
|
Perl_croak(aTHX_ "Usage: Mob::AddNimbusEffect(THIS, int effect_id)"); // @categories Script Utility
|
||||||
|
{
|
||||||
|
Mob* THIS;
|
||||||
|
int effect_id = (int) SvIV(ST(1));
|
||||||
|
VALIDATE_THIS_IS_MOB;
|
||||||
|
THIS->AddNimbusEffect(effect_id);
|
||||||
|
}
|
||||||
|
XSRETURN_EMPTY;
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef BOTS
|
#ifdef BOTS
|
||||||
XS(XS_Mob_CastToBot); /* prototype to pass -Wmissing-prototypes */
|
XS(XS_Mob_CastToBot); /* prototype to pass -Wmissing-prototypes */
|
||||||
XS(XS_Mob_CastToBot)
|
XS(XS_Mob_CastToBot)
|
||||||
@ -6625,6 +6639,7 @@ XS(boot_Mob) {
|
|||||||
newXSproto(strcpy(buf, "GetHateClosest"), XS_Mob_GetHateClosest, file, "$");
|
newXSproto(strcpy(buf, "GetHateClosest"), XS_Mob_GetHateClosest, file, "$");
|
||||||
newXSproto(strcpy(buf, "GetHateListByDistance"), XS_Mob_GetHateListByDistance, file, "$;$");
|
newXSproto(strcpy(buf, "GetHateListByDistance"), XS_Mob_GetHateListByDistance, file, "$;$");
|
||||||
newXSproto(strcpy(buf, "GetLastName"), XS_Mob_GetLastName, file, "$");
|
newXSproto(strcpy(buf, "GetLastName"), XS_Mob_GetLastName, file, "$");
|
||||||
|
newXSproto(strcpy(buf, "AddNimbusEffect"), XS_Mob_AddNimbusEffect, file, "$$");
|
||||||
#ifdef BOTS
|
#ifdef BOTS
|
||||||
newXSproto(strcpy(buf, "CastToBot"), XS_Mob_CastToBot, file, "$");
|
newXSproto(strcpy(buf, "CastToBot"), XS_Mob_CastToBot, file, "$");
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user