PDA

View Full Version : Opening an in game browser window


Shin Noir
08-08-2014, 03:04 AM
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: $client->SendWebLink("url");Here it is in perl_client.cpp: 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.