Register for your free account! | Forgot your password?

You last visited: Today at 21:01

  • Please register to post and access all features, it's quick, easy and FREE!

 

server voting for 5165

Reply
 
Old   #16
 
elite*gold: 0
Join Date: Mar 2009
Posts: 71
Received Thanks: 39
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



gulpi_de_gulat is offline  
Old   #17
 
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
Nice. Few people said this was "hard" and look. Looks simple lol'd. +k


copz1337 is offline  
Old   #18
 
elite*gold: 20
Join Date: Oct 2009
Posts: 1,009
Received Thanks: 621
Won't this open the web page on the host's computer everytime we vote using the NPC?
spare2 is offline  
Thanks
1 User
Old   #19
 
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
just change iexplorer to firefox - btw how can i make it so you can open the link as many times as you want. it only lets you do it once.


copz1337 is offline  
Old   #20
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,740
Received Thanks: 5,268
Quote:
Originally Posted by copz1337 View Post
just change iexplorer to firefox - btw how can i make it so you can open the link as many times as you want. it only lets you do it once.
Change the if vote used == 0 to what you want it to be.
Arcо is offline  
Old   #21
 
elite*gold: 0
Join Date: Feb 2009
Posts: 700
Received Thanks: 79
Quote:
Originally Posted by Hepatitis C View Post
Change the if vote used == 0 to what you want it to be.
on character.cs or npcdialog - votedused = 0 is on both.
copz1337 is offline  
Old   #22
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,740
Received Thanks: 5,268
Quote:
Originally Posted by copz1337 View Post
on character.cs or npcdialog - votedused = 0 is on both.
The one in character.cs is the definition.
I'm talking about when it is actually used.
Arcо is offline  
Old   #23
 
elite*gold: 0
Join Date: Mar 2009
Posts: 510
Received Thanks: 104
you need to make the number of votes used reset every 12 hhours or you will only be able to use it once.. + you gotta make it save in the database
AndreaCo is offline  
Old   #24
 
elite*gold: 0
Join Date: Dec 2009
Posts: 583
Received Thanks: 118
Quote:
Originally Posted by AndreaCo View Post
you need to make the number of votes used reset every 12 hhours or you will only be able to use it once.. + you gotta make it save in the database
I Agree with that andrea =P
.Ryu is offline  
Old   #25
 
elite*gold: 0
Join Date: May 2009
Posts: 157
Received Thanks: 15
Tested...

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
TheLeGend209 is offline  
Old   #26
 
elite*gold: 0
Join Date: Nov 2008
Posts: 66
Received Thanks: 1
it open the host iexplorer. how I can make it to open the player iexplorer?
mAr1u$ is offline  
Old   #27
 
elite*gold: 0
Join Date: Sep 2008
Posts: 494
Received Thanks: 120
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
heres code for program.cs
Quote:
public static void Vote(object source, System.Timers.ElapsedEventArgs e)
{
try
{
if (VoteTimer != null)
{
Database.ClearVote ();
}
}
catch { }
}
and heres thing for database
Quote:
internal static void ClearVote()
{
throw new NotImplementedException();
}
so what u think guys about it :P u can go on me easy coz i am not so good at this :P
Adziunia is offline  
Old   #28
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,227
Received Thanks: 2,476
Quote:
Originally Posted by spare2 View Post
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.
Korvacs is offline  
Thanks
1 User
Old   #29
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,196
Received Thanks: 5,305
Quote:
Originally Posted by Korvacs View Post
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.
pro4never is offline  
Old   #30
 
elite*gold: 20
Join Date: Mar 2006
Posts: 6,227
Received Thanks: 2,476
Quote:
Originally Posted by pro4never View Post
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:

Code:
/string http://www.google.co.uk 0
0 being the type.


Korvacs is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
Is it possible to cheat P.server Voting systems?
can anyone please tell me how to do it if it is =)
1 Replies - Ragnarok Online
Private Server Voting >.<
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...
1 Replies - WoW PServer Exploits, Hacks & Tools



All times are GMT +1. The time now is 21:01.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.