Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Private Server
You last visited: Today at 22:18

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

Advertisement



guys need help with voting nspc

Discussion on guys need help with voting nspc within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2008
Posts: 126
Received Thanks: 31
guys need help with voting nspc

guys how do i add voting nspc when someone votes they will get cps in there inventory
jasoncoolman is offline  
Thanks
1 User
Old 09/13/2010, 18:32   #2
 
elite*gold: 0
Join Date: May 2006
Posts: 297
Received Thanks: 58
Quote:
case 3016555:
{
if (option == 0)
{
GC.AddSend(Packets.NPCSay("Would you like to vote for CrankCo?"));
GC.AddSend(Packets.NPCSay("you get 25 cps for open the link, and 5000CP!, if u Vote IN the website!"));
GC.AddSend(Packets.NPCLink("yes ofcourse", 1));
GC.AddSend(Packets.NPCLink("uhh na, im lame!", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());

}
if (option == 1)
{
GC.MyChar.CPs += 500;
GC.LocalMessage(2105, "http://www.xtremetop100.com/in.php?site=1132270770");
Game.World.SendMsgToAll("SYSTEM", " Congratulation " + GC.MyChar.Name + " got enough cps for voting, if he votes in the web, he gets 5000 more! ", 2011, 0);
}
else
{
GC.AddSend(Packets.NPCSay("you can vote only once 12 hours"));
GC.AddSend(Packets.NPCLink("I see", 255));
GC.AddSend(Packets.NPCSetFace(N.Avatar));
GC.AddSend(Packets.NPCFinish());
}
}
break;
}
just little modified..

credits to whoever would like to get the credits.
pintser is offline  
Old 09/13/2010, 20:33   #3
 
elite*gold: 0
Join Date: Jul 2008
Posts: 126
Received Thanks: 31
Quote:
Originally Posted by pintser View Post
just little modified..

credits to whoever would like to get the credits.
dude where do i put it??????????????
jasoncoolman is offline  
Old 09/13/2010, 22:21   #4
 
Arcо's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 8,765
Received Thanks: 5,291
In Packethandling/NPCDialog.cs
Arcо is offline  
Old 09/13/2010, 22:34   #5
 
elite*gold: 21
Join Date: Jul 2005
Posts: 9,193
Received Thanks: 5,377
Please note this has no checks for if the character has already voted or a 12 hour check or any way to handle if they've ACTUALLY voted.

basically it's a free cp exploit you are adding to your server.
pro4never is offline  
Old 09/13/2010, 22:40   #6
 
.Beatz's Avatar
 
elite*gold: 0
Join Date: May 2006
Posts: 1,190
Received Thanks: 516
you would want to add a check to it. Something like
Code:
if (GC.MyChar.VoteToday < 1)
That is if you want players to be able to only vote once a day.
To make it able to vote say once every 12 hours you will need to do a Time check.
.Beatz is offline  
Old 09/14/2010, 01:15   #7
 
elite*gold: 0
Join Date: Aug 2010
Posts: 452
Received Thanks: 75
I did ipcheck + character check at sametime.
Wich will be reseted everyday :P
dowhatuwant is offline  
Reply


Similar Threads Similar Threads
hello need help with voting
09/15/2010 - Conquer Online 2 - 4 Replies
GUYS how do i get voting cps if somone votes they will get cps need help how do i do dat
PAOTW #30 - Voting
07/05/2010 - General Art - 9 Replies
topic: stress this week's participants: fullsize recommended! #1 http://www.abload.de/img/unbenannt59xy.png #2
PAOTW #28 - Voting
06/14/2010 - General Art - 14 Replies
topic: fable fullsize recommended! #1 http://www.abload.de/img/metin2katzecdby.png #2 http://img535.imageshack.us/img535/9597/shrekc.jp g
PAOTW #26 - Voting
05/31/2010 - General Art - 18 Replies
Diese Woche stehen zur Wahl://This week's participants: Topic: free-style, black-white restriction Fullsize recommended! #1 http://img443.imageshack.us/img443/8321/lonelylue .png #2
ROFLMAO over that Voting
09/07/2008 - Dekaron - 2 Replies
Hey dear Epvpers team your Voting is a joke or ? All that 13 year old kidds that come from school and download the 1 click hack and make 2moons again to a hackerfestival All ppl want easy things Why u dont ask in your Vote U want easy Leeching Yes U want to work 4 a Speedhack etc. NO let vacs in the UG and realese difficult tutorials



All times are GMT +2. The time now is 22:18.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.