Register for your free account! | Forgot your password?

You last visited: Today at 18:15

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

Advertisement



{5165} Voting NPC

Discussion on {5165} Voting NPC within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.

Reply
 
Old   #1
 
protoxxx's Avatar
 
elite*gold: 0
Join Date: Mar 2013
Posts: 14
Received Thanks: 8
Talking {5165} Voting NPC

Aight.. So I created an npc O.o


What this NPC does:
This NPC allows players and staff, to access your server voting page, and they will receive an award.

Here, leggo.

Add this code to NPCDialog.cs
Code:
#region Voting NPC - protoxxx Npc edits
case 30165:
{
    if (Control == 0)
    {
        GC.AddSend(Packets.NPCSay("Hey! " + GC.MyChar.Name + " Do you wanna vote for our server, for CPs?"));
        GC.AddSend(Packets.NPCLink("No shit!", 1));
        GC.AddSend(Packets.NPCLink("I have better things to do.", 255));
        GC.AddSend(Packets.NPCSetFace(N.Avatar));
        GC.AddSend(Packets.NPCFinish());

    }
    if (Control == 1)
    {
        
        {
            
            GC.MyChar.CPs += [B]edit how many cps player gets for voting[/B];
            Game.World.SendMsgToAll("SYSTEM", "http://www.xtremetop100.com/in.php?site=[B]Your vote site id (xtremetop100)[/B]", 2105, 0);
            Game.World.SendMsgToAll("SYSTEM", " Gratz " + GC.MyChar.Name + " got em cp rewardz. u shud vote too.. <3 ", 2011, 0);

        }
        
        {
            GC.AddSend(Packets.NPCSay("Sadly, voting is only allowed every 12 hours, On xtremetop100 system."));
            GC.AddSend(Packets.NPCLink("Fuck the system", 255));
            GC.AddSend(Packets.NPCSetFace(N.Avatar));
            GC.AddSend(Packets.NPCFinish());
        }
    }
    break;
}
#endregion
Add this to npcs.txt oldcodb.
Code:
30165 8400 2 34 1002 435 374
I bolded the text you gotta edit, to make it vote for your servers and if u dun wanna give any reward remove " GC.MyChar.CPs += edit how many cps player gets for voting;"

You shud prolly add the "voteused=false;" thingy in character.cs unless it dusnt give u any errors when u write in npc dialog.

no. idgaf if this was released before. i released it again. problem?
If you read the f***ing thread, perhaps <3<3<3thankme?<3<3<3
protoxxx is offline  
Old 03/24/2013, 08:51   #2
 
Spirited's Avatar
 
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,192
Using this code, how do you ensure that the player actually voted? You're basically just giving the player cps for clicking "No ****!". Also, when you click on that option, it sends the website to everyone, not just the user (which is a lot of spam if a lot of people are on clicking that thing). The last thing I noticed is the unnecessarily aggressive tone of the npc. Is it really appropriate to have the answers be "No ****" and "**** the system"? It makes you seem very immature and unprofessional.
Spirited is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Npc voting for 5165 and expball exp change?
11/05/2011 - CO2 Private Server - 0 Replies
Hello , i need a npc voting every 12 hour(with cps) for 5165 plz . And i need fix expball power. I use 10 exp ball and i get level 130. plz help me. thx
server voting for 5165
04/16/2011 - CO2 PServer Guides & Releases - 56 Replies
i dont know if someone release like this, vote for the server, but i saw some server have this NPC too. here we go first open character.cs and look for public byte LotteryUsed = 0;put under public byte VoteUsed = 0;now to the NPCDialog.cs add this#region Vote server case 30165: { if (Control == 0) { ...
Does Anyone Have 5165 Voting NPC
09/24/2010 - CO2 Private Server - 0 Replies
Does Anyone Have Voting NPC i want them to vote then they will get cps from it and i want them to for for only 12 hours only
Hi I need 5165 source act like Real Co 5165
09/15/2010 - CO2 Private Server - 4 Replies
I need a A source 5165 that all skills is available specially rb char like nin-nin-nin counterKill and nin-war-nin reflect and more, and also the attack rates should be fair not like +8 set can 1 hit +12 set, and also maybe the client, I need to study to make it in 5200+ source. I love to trade it with my cofarmer account VIP i have use it for 5 days only. PM or contact me in skype :marlyandedsel



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


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.