Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Vote Bot (Simple tut Source )

Experienced Elementalist
Joined
Sep 29, 2014
Messages
214
Reaction score
20
Hello everyone !
i will give you a simple tut about making a vote bot.. i will do one as soon as i can and i will release it for free .. sure to end the poop which is happening in this days
here you go and it teach you how to think and make the vote bot:

#include <stdio.h>
#include <stdlib.h>

typedef struct {

char name[50];

int votes;

} candidates_t;


void showBallot(candidates_t cand[], int size) {

int i;

printf("\n");

printf("\t\t\t\t OFFICIAL BALLOT\n");

printf("\t\t OFFICIAL LIST OF STUDENT COUNCIL CANDIDATES 2010\n");

printf("\t\t\tDE LA SALLE UNIVERSITY-MANILA\n\n\n");



for(i=0; i<size; i++) {

printf("%d. %s\n", (i+1), cand.name);

}


// system("pause"); system("cls"); BAD


printf("INSTRUCTION:\n");

printf("TO VOTE FOR A CANDIDATE,INPUT THE NUMBER CORRESPONDING TO YOUR\n");

printf("CHOSEN STUDENCT COUNCIL CANDIDATE.\n\n");

printf("Enter Candidate Number (1-%d) you want to Vote: \n\n\n", (size+1));


}


int getVoteFromUser(int size) {

int vote;

for(;;)/> {

printf("Vote: ");

scanf("%d",&vote);

vote--;

if(vote>=0 && vote<20) { break; }

printf("Invalid Vote! Please Try Again\n");

}

return vote;

}



void showResults(candidates_t cand[], int size) {

int i;

for(i=0; i<size; i++) {

printf("%s got %d votes\n", cand.name, cand.votes);

}

}


int main() {

candidates_t cand[] = {

{ "AQUINO, Juan Gabriel", 0}, { "ASUNCION, Beal", 0}, { "CHONG, Jessica", 0},

{ "DACANAY, Therese", 0}, { "DE LEON, Alveene Joyce", 0}, { "ESPELETA, Paola", 0},

{ "GABALDON, Neil", 0}, { "HADAP, Krista", 0}, { "JUANO, Jeffrey", 0},

{ "KIONG, Jennifer", 0}, { "LIM, Jeremy", 0}, { "LO, Jimmy", 0},

{ "NG, Robbie", 0}, { "ORMOC, Regan", 0}, { "PANULAYA, Leonila", 0},

{ "RECENO, Roy Justin", 0}, { "SEVILLA, Nigel", 0}, { "TAN, Donald", 0},

{ "UY, Jocelle", 0}, { "VELASCO, Anton", 0},

};

int candSize = sizeof(cand)/sizeof(candidates_t);

showBallot(cand, candSize);

cand[getVoteFromUser(candSize)].votes++;

cand[getVoteFromUser(candSize)].votes++;

showResults(cand, candSize);

return 0;

}
 
Junior Spellweaver
Joined
Jan 1, 2007
Messages
149
Reaction score
7
Hello everyone !
i will give you a simple tut about making a vote bot.. i will do one as soon as i can and i will release it for free .. sure to end the poop which is happening in this days
here you go and it teach you how to think and make the vote bot:

#include <stdio.h>
#include <stdlib.h>

typedef struct {

char name[50];

int votes;

} candidates_t;


void showBallot(candidates_t cand[], int size) {

int i;

printf("\n");

printf("\t\t\t\t OFFICIAL BALLOT\n");

printf("\t\t OFFICIAL LIST OF STUDENT COUNCIL CANDIDATES 2010\n");

printf("\t\t\tDE LA SALLE UNIVERSITY-MANILA\n\n\n");



for(i=0; i<size; i++) {

printf("%d. %s\n", (i+1), cand.name);

}


// system("pause"); system("cls"); BAD


printf("INSTRUCTION:\n");

printf("TO VOTE FOR A CANDIDATE,INPUT THE NUMBER CORRESPONDING TO YOUR\n");

printf("CHOSEN STUDENCT COUNCIL CANDIDATE.\n\n");

printf("Enter Candidate Number (1-%d) you want to Vote: \n\n\n", (size+1));


}


int getVoteFromUser(int size) {

int vote;

for(;;)/> {

printf("Vote: ");

scanf("%d",&vote);

vote--;

if(vote>=0 && vote<20) { break; }

printf("Invalid Vote! Please Try Again\n");

}

return vote;

}



void showResults(candidates_t cand[], int size) {

int i;

for(i=0; i<size; i++) {

printf("%s got %d votes\n", cand.name, cand.votes);

}

}


int main() {

candidates_t cand[] = {

{ "AQUINO, Juan Gabriel", 0}, { "ASUNCION, Beal", 0}, { "CHONG, Jessica", 0},

{ "DACANAY, Therese", 0}, { "DE LEON, Alveene Joyce", 0}, { "ESPELETA, Paola", 0},

{ "GABALDON, Neil", 0}, { "HADAP, Krista", 0}, { "JUANO, Jeffrey", 0},

{ "KIONG, Jennifer", 0}, { "LIM, Jeremy", 0}, { "LO, Jimmy", 0},

{ "NG, Robbie", 0}, { "ORMOC, Regan", 0}, { "PANULAYA, Leonila", 0},

{ "RECENO, Roy Justin", 0}, { "SEVILLA, Nigel", 0}, { "TAN, Donald", 0},

{ "UY, Jocelle", 0}, { "VELASCO, Anton", 0},

};

int candSize = sizeof(cand)/sizeof(candidates_t);

showBallot(cand, candSize);

cand[getVoteFromUser(candSize)].votes++;

cand[getVoteFromUser(candSize)].votes++;

showResults(cand, candSize);

return 0;

}


Finaly someone that stands up and says STOP. No to MONOPOLIES.
 
Junior Spellweaver
Joined
Jan 1, 2007
Messages
149
Reaction score
7
RunOrDie when are you planning to release a full working bot?
 
Experienced Elementalist
Joined
Sep 29, 2014
Messages
214
Reaction score
20
When i finish it.. But you will need to pay for captchas... For deathbycaptcha
 
Junior Spellweaver
Joined
Jan 1, 2007
Messages
149
Reaction score
7
bots like this one you must pay to get it work btw all captcha passing service not free

I know its not free. Atleast when a bot like this will be released everyone can make his own votes on a much cheaper way
 
Experienced Elementalist
Joined
Sep 29, 2008
Messages
224
Reaction score
436
f r e e l a n c e r . c o m
pay some bucks and u can find ppls to do anything for u then u can act like a boss and try to sell it or its source or release it. your useless/stupid code example only showing that u dont know anything
 
Last edited:
Junior Spellweaver
Joined
Jan 1, 2007
Messages
149
Reaction score
7
f r e e l a n c e r . c o m
pay some bucks and u can find ppls to do anything for u then u can act like a boss and try to sell it or its source or release it. your useless/stupid code example only showing that u dont know anything
Uhm smart didn't think about that.
 
Experienced Elementalist
Joined
Sep 29, 2014
Messages
214
Reaction score
20
let them trust you :) but at the end they will know who is the right one ...
 
Initiate Mage
Joined
Jun 20, 2016
Messages
23
Reaction score
27
even after beshoy commented with the link that includes the source you still believe its his :eek:tt1:

When you do not know something you do not speak ...

You do not even know the source of this code...

beshoy is only a php coder and uses a language or program called Reverse engineering to make the dll under his command
 
Last edited:
Experienced Elementalist
Joined
Sep 29, 2014
Messages
214
Reaction score
20
It's surprising fact!! that the egyptians still cannot understand the english language ? i didn't say that code made by me ^^ XD @Anyone will say that link link link bla bla bla .. i like watching that funny scenes.. :)
at the end i will release it !...
 
Elite Diviner
Joined
Sep 17, 2013
Messages
433
Reaction score
120
It's surprising fact!! that the egyptians still cannot understand the english language ? i didn't say that code made by me ^^ XD @Anyone will say that link link link bla bla bla .. i like watching that funny scenes.. :)
at the end i will release it !...

Do you think this is English?
 
Joined
Aug 25, 2012
Messages
52
Reaction score
7
When you do not know something you do not speak ...
atleast i got a working vote service wbu?
You do not even know the source of this code...
do you ?
beshoy is only a php coder and uses a language or program called Reverse engineering to make the dll under his command
beshoy released a bot few years ago/
language or program choose the correct answer?
oh beshoy is only a php coder then why you paid him for the addons ?
 
Initiate Mage
Joined
Jun 20, 2016
Messages
23
Reaction score
27
Do you want to see what beshoy will answer when i ask him about the c++ basics ?
 
Back
Top