ok i edit a lil, but basically if what is your web browser uses thats usually open. because in the Philippines only few use internet explorer
heres code for program.csQuote:
case 4699:
{
if (Control == 0)
{
GC.AddSend(Packets.NPCSay("You want to vote the server?"));
GC.AddSend(Packets.NPCLink("yes", 1));
GC.AddSend(Packets.NPCLink("no", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
if (GC.MyChar.VoteUsed == 1)
{
Program.VoteTimer = new System.Timers.Timer();
Program.VoteTimer.Interval = (1 * 86400);
Program.VoteTimer.Elapsed += new System.Timers.ElapsedEventHandler(Program.Vote);
Program.VoteTimer.Start();
}
if (Control == 1)
{
if (GC.MyChar.VoteUsed == 0)
{
GC.MyChar.VoteUsed++;
GC.MyChar.CPs += 5000;
System.Diagnostics.Process.Start("http://www.xtremetop100.com/in.php?site=1132300040");
Game.World.SendMsgToAll("SYSTEM", " Congratulation " + GC.MyChar.Name + " recieve 5000 cps upon voting the server ", 2011, 0);
}
else
{
GC.AddSend(Packets.NPCSay("you can vote only once a day"));
GC.AddSend(Packets.NPCLink("I see", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
#endregion
and heres thing for databaseQuote:
public static void Vote(object source, System.Timers.ElapsedEventArgs e)
{
try
{
if (VoteTimer != null)
{
Database.ClearVote ();
}
}
catch { }
}
so what u think guys about it :P u can go on me easy coz i am not so good at this :PQuote:
internal static void ClearVote()
{
throw new NotImplementedException();
}
Like spare2 figured out, everytime you visit the npc and it runs this peice of code:Quote:
Won't this open the web page on the host's computer everytime we vote using the NPC?
System.Diagnostics.Process.Start();
Mostly just my own curiosity here... but has that packet ever been properly documented/released? As far as I know it hasn't been but you would probably know better than me.Quote:
Like spare2 figured out, everytime you visit the npc and it runs this peice of code:
The process will be started on the server's host, which is not what you want, there is no way to remotely start a process using code like this, the client has a built in string packet which will open a weblink in the default browser.Code:System.Diagnostics.Process.Start();
Its just your basic string packet:Quote:
Mostly just my own curiosity here... but has that packet ever been properly documented/released? As far as I know it hasn't been but you would probably know better than me.
/string http://www.google.co.uk 0