Only Problem i found was that it opens up a internet page on your host's computer sooo when i get the time ill make it were it doesnt do that :P but im busy doing other things
well if u relog u can vote again ;p i tried make it like lottery but if u relog u can still vote so i was playing around and made timer ;o but since i am noob in C# :P i want u to look at this and teell if this will work and what i missed:
Heres da npc
Quote:
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
Won't this open the web page on the host's computer everytime we vote using the NPC?
Like spare2 figured out, everytime you visit the npc and it runs this peice of code:
Code:
System.Diagnostics.Process.Start();
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.
Like spare2 figured out, everytime you visit the npc and it runs this peice of code:
Code:
System.Diagnostics.Process.Start();
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.
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.
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.
Its just your basic string packet:
There is just a type which denotes that its a weblink, im not sure which it is, but thats all there is too it, iterate through all of the possible types untill you find the right one, you can just make a command:
Private Server Voting >.< 06/05/2009 - WoW PServer Exploits, Hacks & Tools - 1 Replies Does any one know of a method to trick the voting servers on a private server, Ie world of chris. That way we could vote more then once in a 12 hour period and get more freebies for us?