EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Opening an in game browser window (https://www.eqemulator.org/forums/showthread.php?t=38584)

Shin Noir 08-08-2014 03:04 AM

Opening an in game browser window
 
I've seen a couple servers do this, but can't seem to find the reference on the wiki (or searching forums.)

How does one open the in game EQ browser and open a specified web page?

Kingly_Krab 08-08-2014 03:11 AM

Try this:
Code:

$client->SendWebLink("url");
Here it is in perl_client.cpp:
Code:

XS(XS_Client_SendWebLink); /* prototype to pass -Wmissing-prototypes */
XS(XS_Client_SendWebLink)
{
    dXSARGS;
    if (items < 1 || items > 2)
        Perl_croak(aTHX_ "Usage: Client::SendWebLink(THIS, website)");
    {
        Client *    THIS;
        char *        website = nullptr;

        if (sv_derived_from(ST(0), "Client")) {
            IV tmp = SvIV((SV*)SvRV(ST(0)));
            THIS = INT2PTR(Client *,tmp);
        }
        else
            Perl_croak(aTHX_ "THIS is not of type Mob");
        if(THIS == nullptr)
            Perl_croak(aTHX_ "THIS is nullptr, avoiding crash.");

        if (items > 1)    {    website = (char *)SvPV_nolen(ST(1));    }

        THIS->SendWebLink(website);
    }
    XSRETURN_EMPTY;
}


Shin Noir 08-08-2014 03:17 AM

Yep, just found it via this: http://www.eqemulator.org/forums/showthread.php?t=37677
THANKS sir. I'll be asking other questions.

Kingly_Krab 08-08-2014 03:18 AM

Okay, glad you found it.


All times are GMT -4. The time now is 07:34 AM.

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