mirror of
https://github.com/EQEmu/Server.git
synced 2026-04-17 19:02:25 +00:00
True fix for $client->UpdateTaskActivity(TaskID, ActivityID, Count, [ignore_quest_update])
This commit is contained in:
parent
85a27cdd74
commit
9419bc8d54
@ -5053,20 +5053,24 @@ XS(XS_Client_GetSpellBookSlotBySpellID)
|
||||
XSRETURN(1);
|
||||
}
|
||||
|
||||
#include <iostream>
|
||||
|
||||
XS(XS_Client_UpdateTaskActivity); /* prototype to pass -Wmissing-prototypes */
|
||||
XS(XS_Client_UpdateTaskActivity)
|
||||
{
|
||||
dXSARGS;
|
||||
if (items <= 4)
|
||||
if (items < 4)
|
||||
Perl_croak(aTHX_ "Usage: Client::UpdateTaskActivity(THIS, TaskID, ActivityID, Count, [ignore_quest_update])");
|
||||
{
|
||||
bool ignore_quest_update = false;
|
||||
|
||||
Client * THIS;
|
||||
|
||||
int TaskID = (int)SvIV(ST(1));
|
||||
int ActivityID = (int)SvIV(ST(2));
|
||||
int Count = (int)SvUV(ST(3));
|
||||
if (items == 4){
|
||||
|
||||
if (items == 5){
|
||||
ignore_quest_update = (bool)SvTRUE(ST(4));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user