PenUltima Online

It is currently Sat Sep 06, 2008 10:02 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Opening a web page thru a command?
PostPosted: Sun Apr 30, 2006 2:13 pm 
Offline

Joined: Fri Apr 14, 2006 9:36 am
Posts: 240
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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 30, 2006 9:12 pm 
Offline

Joined: Sat Feb 04, 2006 5:49 pm
Posts: 750
Location: Chicago, IL USA
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");


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 02, 2006 1:08 pm 
Offline

Joined: Fri Apr 14, 2006 9:36 am
Posts: 240
Sorry i dont know this scripting well. Thanks though i got it working


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl