EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Development (https://www.eqemulator.org/forums/forumdisplay.php?f=590)
-   -   Striats codefix for setguild tested and working (https://www.eqemulator.org/forums/showthread.php?t=23183)

Striat 07-09-2007 02:06 PM

To fix this in perlparser.cpp

Code:

XS(XS__setguild);
XS(XS__setguild)
{
        dXSARGS;
        if (items != 2)
                Perl_croak(aTHX_ "Usage: setguild(new_guild_id, new_rank)");

                unsigned long                new_guild_id = (unsigned long)SvUV(ST(0));
        char        new_rank = (char)*SvPV_nolen(ST(1));

        quest_manager.setguild(new_guild_id, new_rank);

        XSRETURN_EMPTY;
}

Change:

Code:

char        new_rank = (char)*SvPV_nolen(ST(1));
To:
Code:

int        new_rank = (int)SvIV(ST(1));
Recompile and you should be good to go.

Angelox 07-19-2007 09:17 PM

This code is working fine also

Striat 07-20-2007 06:25 PM

Credit for this then would actually go to Bleh:)

gernblan 08-26-2007 10:56 AM

This ever get committed?

KLS 08-27-2007 03:09 PM

I can check and see tonight.

KLS 08-31-2007 01:13 AM

This has been previously committed.. okay so that wasn't that night but I did get to it!


All times are GMT -4. The time now is 03:59 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.