PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
Opening a web page thru a command?

 
Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help (095)
Display posts from previous:   

Author Message
Poi



Joined: 14 Apr 2006
Posts: 203

PostPosted: Sun Apr 30, 2006 6:13 pm    Post subject: Opening a web page thru a command? Reply with quote

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:

//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

Author Message
CWO



Joined: 04 Feb 2006
Posts: 684
Location: Chicago, IL USA

PostPosted: Mon May 01, 2006 1:12 am    Post subject: Reply with quote

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");

Author Message
Poi



Joined: 14 Apr 2006
Posts: 203

PostPosted: Tue May 02, 2006 5:08 pm    Post subject: Reply with quote

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

Post new topic   Reply to topic    PenUltima Online Forum Index -> General Help (095) All times are GMT - 4 Hours
Page 1 of 1

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty