1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Link Stone

Discussion in 'Script Support' started by Wise Ol Kor, Nov 27, 2016.

  1. Wise Ol Kor
    Offline

    Wise Ol Kor Member

    Joined:
    Sep 13, 2016
    Messages:
    33
    Likes Received:
    5
    Hello, im looking for a script that a player can use to open the web browser to a link we can add in. Like a vote stone but can be customed to use any url in the props.

    TY in advance for your time regarding this matter
     
  2. Po0ka
    Offline

    Po0ka Active Member

    Joined:
    Aug 19, 2014
    Messages:
    560
    Likes Received:
    68
    Code (C#):
    1. from.LaunchBrowser( stringurlhere ); //from being a Mobile.
    What you could do is using a Dictionary<string, string> so you can specifiy an unique display url, and the url itself.
     
  3. Wise Ol Kor
    Offline

    Wise Ol Kor Member

    Joined:
    Sep 13, 2016
    Messages:
    33
    Likes Received:
    5
    does this have to be in script or can i do it in a props ?
     
  4. Po0ka
    Offline

    Po0ka Active Member

    Joined:
    Aug 19, 2014
    Messages:
    560
    Likes Received:
    68
    Its not a simple props.
    There are various ways to script that, the best one would be via an ingame gump.
    If you want a quick job, you could use Json or XML to place the stuffs, but that would be the best scenario if you don't intend on editing it often or if you need to restart the server, otherwise you would need an ingame editor for the links.
    The other way around that requires less knowledge would be to hardcode ex:16 entries with props and edit them ingame via the props menu, but honestly, that's a quick job that can backfire at some point.
     
  5. Wise Ol Kor
    Offline

    Wise Ol Kor Member

    Joined:
    Sep 13, 2016
    Messages:
    33
    Likes Received:
    5
    I will have to see what way the team would like to go and see if programmers can figure this out. Thanks for the advice
     
  6. Milva
    Offline

    Admin Moderator

    Joined:
    Mar 3, 2013
    Messages:
    3,214
    Likes Received:
    371
    • Thanks! Thanks! x 1
  7. Wise Ol Kor
    Offline

    Wise Ol Kor Member

    Joined:
    Sep 13, 2016
    Messages:
    33
    Likes Received:
    5
    ok thats more understandable now, i can see what Pooka was referring to thank you Milva
     
  8. zerodowned
    Offline

    Moderator ServUO Developer

    Joined:
    Jun 28, 2014
    Messages:
    1,303
    Likes Received:
    162
    There is a vote stone that someone released, maybe vorspire, that most shards use now and includes a delay use timer
     
  9. Wise Ol Kor
    Offline

    Wise Ol Kor Member

    Joined:
    Sep 13, 2016
    Messages:
    33
    Likes Received:
    5
    yeah i remember seeing link stones in the add menus before. i was just looking for the type that looks like a guild stone, and i can link the urls in the props of the stone itself. I was able to come up with the command for the time being unless the guys can script up the link stone im looking for :)


    using System;
    using System.Collections.Generic;
    using Server.Commands;
    using Server.Mobiles;

    using Server;

    namespace Server.Scripts.Commands
    {
    public class facebookpage
    {
    public static void Initialize()
    {
    CommandSystem.Register("facebookpage", AccessLevel.Player, new CommandEventHandler(facebookpage_OnCommand));
    }


    [Usage( "facebook" )]
    [Description( "Brings up a webpage for facebook page." )]
    public static void facebookpage_OnCommand( CommandEventArgs arg )
    {
    Mobile m = arg.Mobile;
    m.LaunchBrowser( "https://www.facebook.com/Lands-of-Time-209426179503024/" );
    m.SendMessage( "Launching web browser... One moment..." );
    }
    }
    }


    Does the trick for now :)
     
    • Like Like x 1
  10. Neshoba
    Offline

    Neshoba Member

    Joined:
    Feb 1, 2016
    Messages:
    105
    Likes Received:
    6
    is a few of them out there the id can be changed to look like anything check this 1 and see if its what You need
    https://www.servuo.com/threads/voting-stone.2499/
    If not leave Me a message and Il get you a couple loaded We use 2 different stone 1 to vote 1 for website and misc things
     
Similar Threads: Link Stone
Forum Title Date
General Discussion Found a link to RunUO Archive that is active Jan 11, 2017
Archived Bug Reports Skree/Navrey attack animation blinking Oct 28, 2016
Script Support Link vet rewards to account? Oct 12, 2016
ServUO Discussion how can add any item on shard for link browser? Mar 3, 2016
Support trying to link spawners Feb 3, 2015
General Discussion Seeking Gargish Font files. (Britannian Runic font linked within) Sep 15, 2014
Archived Bug Reports BaseModule.LinkItem(Item item) - FIXED Mar 19, 2013