Opening a web page thru a command?

Here you can post threads requesting help on the official POL Ultima Online Emulator Core 095. Note: Core 095 is no longer officially supported.
Post Reply
Poi
Grandmaster Poster
Posts: 298
Joined: Fri Apr 14, 2006 9:36 am

Opening a web page thru a command?

Post 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
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post 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");
Poi
Grandmaster Poster
Posts: 298
Joined: Fri Apr 14, 2006 9:36 am

Post by Poi »

Sorry i dont know this scripting well. Thanks though i got it working
Post Reply