RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

[RunUO 2.0 RC1] webgate

kaball

Wanderer
webgate

simply , when a play passes through the gate, it launchs the browser to a website, exemple " vote fore us ! ".

im open to any critic, sugestions etc.

=)
 

Attachments

  • WebGate.rar
    635 bytes · Views: 379

kaball

Wanderer
i tought in a way of people vote , in a starting room " where character init."
i put a teleport and when they pass trought it to enter haven , the webbrowser opens and asks them to vote, that was the original idea

eheh but the spider webs are nice ehehhe =P ... but the name is confusing ... should it be ... " Web's spider web " lol
 

Flats

Page
i know this is probably and old thread but i need help! I added this into the customs folder it complied and everything but now im trying to add it on my shard i tried [add WebGate like its defined in the script it didnt work i just tried [add gate also so i can get a list of gate types it also didnt find any type of web gates....thanks for the help in advance
 

xxx007xxx

Sorceror
Nice spawm code!

like this player will hate your shard :mad:!
Code:
public override bool OnMoveOver( Mobile m )
		{
			if ( m.Alive )
			{
				m.PlaySound( 0x214 );
				m.FixedEffect( 0x376A, 10, 16 );

				int i = 0;
				
				while (i < 52)
				{
				 m.LaunchBrowser( "www.Runuo.com" ); 
				i++;
				}
                                
           }
			else
			{
				m.SendLocalizedMessage(2, "Your dead and can't use this" ); 
			}

thx nice code.
you could add a mobile list to know who vote.
 

Flats

Page
xxx007xxx;693003 said:
like this player will hate your shard :mad:!
thx nice code.
you could add a mobile list to know who vote.


How can you add a mobile list?? Sorry a bit new to RunUO Scripting hehe Any chance if you know how you could add it and let me know the code please? would really appreciate it!
 

xxx007xxx

Sorceror
Flats;693018 said:
How can you add a mobile list?? Sorry a bit new to RunUO Scripting hehe Any chance if you know how you could add it and let me know the code please? would really appreciate it!

Generic List 2.0
from Faq
http://www.runuo.com/forums/faq-forum/79837-basic-generics-net-2-0-a.html
or MSDN
List Generic Class (System.Collections.Generic)

some basic

List<string>
Add(m.Name);// add the name string of (m = Mobile)

write you list in console
Code:
if(from.AccessLevel > AccessLevel.Player)
				{
        Players.ForEach(
		delegate(string p)
        {
            Console.WriteLine(p);//display name string
        });
				//from.SendGump( new ListDisplay(from));
			}

or
List<Mobile>
Add(m);//m =Mobile

write you list in console
Code:
if(from.AccessLevel > AccessLevel.Player)
				{
        Players.ForEach(
		delegate(Mobile p)
        {
            Console.WriteLine(p);//display serial and name
        });
				//from.SendGump( new ListDisplay(from));
			}

You gave me an idea !

here is a list http://www.runuo.com/forums/custom-script-releases/83507-generic-list-book.html
 

kokosbytow

Sorceror
kaball;548912 said:
simply , when a play passes through the gate, it launchs the browser to a website, exemple " vote fore us ! ".

im open to any critic, sugestions etc.

=)


Link not work good ... 80% download and cant open this file


Anybody can re-send this file ??? plese :)
 
Top