Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

Reply
 
Thread Tools Display Modes
  #1  
Old 08-08-2014, 03:04 AM
Shin Noir's Avatar
Shin Noir
Legendary Member
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 502
Default 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?
__________________

~Shin Noir
DungeonEQ.com
Reply With Quote
  #2  
Old 08-08-2014, 03:11 AM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

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;
}
Reply With Quote
  #3  
Old 08-08-2014, 03:17 AM
Shin Noir's Avatar
Shin Noir
Legendary Member
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 502
Default

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

~Shin Noir
DungeonEQ.com
Reply With Quote
  #4  
Old 08-08-2014, 03:18 AM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

Okay, glad you found it.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 08:34 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3