Page 1 of 1

Opening a web page thru a command?

Posted: Sun Apr 30, 2006 2:13 pm
by Poi
Hey i cannot figure this out anywhere except for MAYBE a script i seen in there somewhere but i cannot find it now. But i want it to open a webpage and i have no idea how to do this.

Example:

use uo;
use em;
program vote( me )
set := http://etc.com;
Openurl web;


or something




Found what i was tlaking about but i dont think this would help afterall:

Code: Select all

//Shinni's web page functions

Function OpenWebSite(who, url)
  var packet:="A5"+WordPacket(Len(url)+4);
  ForEach ascii_code in CAscZ(url)
    packet:=packet+BytePacket(ascii_code);
  EndForEach
  SendPacket(who, packet+"00");
EndFunction

Function BytePacket(byte)
  var paket:=Hex(byte);
  paket:="00"+paket[3, Len(paket)-2];
  Return (paket[Len(paket)-1, 2]);
EndFunction

Function WordPacket(word)
  var paket:=Hex(word);
  paket:="0000"+paket[3, Len(paket)-2];
  Return (paket[Len(paket)-3, 4]);
EndFunction

Function DoubleWordPacket(doubleword)
  var paket:=Hex(doubleword);
  paket:="00000000"+paket[3, Len(paket)-2];
  Return (paket[Len(paket)-7, 8]);
EndFunction

Posted: Sun Apr 30, 2006 9:12 pm
by CWO
whats so hard about it... thats exactly what we use on our shard and it works. Just include that code and do OpenWebSite(who, "www.something.com");

Posted: Tue May 02, 2006 1:08 pm
by Poi
Sorry i dont know this scripting well. Thanks though i got it working