Voting Script! (RuneFlyFF/Osa)

Joined
Apr 21, 2009
Messages
1,377
Reaction score
930
Hello, I have created a voting script that is based off of a WoW script that is based off of php and some java. I have been neglecting this project for the past few weeks but decided to take it up again last night. When I started this project, php was new to me, I have learned much more about it now and can finish it successfully.

As of now this is how it works:
A box appears at the top left corner (Can be edited) that will prompt you for a character name.

Upon inputting your charname, it will check the database for the account of that character, and insert an entry in a separate table with both the account name and the time of insertion. (This is done with php)

Next it will create a cookie (vote) to tell the vote box whether to appear or not. (This part needs some debugging)

When the vote button is pressed, it will mail the item of choice to the character that the player selects. (ex. in mine I have 15moons/10suns/5oricalcums/100m/bloodyweaps)

If the player tries to vote before the 12 hours are up, the vote box will disappear.

Once the 12 hours are up, and the player tries to vote, the account name will be deleted from the voting table, allowing the player to vote again.


I have a preview on my website that is fully functional (I will not give a link here), and bellow is a picture of it:
Mootie - Voting Script! (RuneFlyFF/Osa) - RaGEZONE Forums


If anyone is interested, pm me (I have a caali version too, but I will not release it of course.) I can also make this for your project if you provide me a database with working mail or inventory.


Decided to release the OsaFlyFF version. Please follow this guide:
Ok, for OsaFlyFF you will need a table called "votewatch" and 2 files in your FTP server.

First: Execute a mysql query:
Code:
SET FOREIGN_KEY_CHECKS=0;CREATE TABLE `votewatch` ( `accid` int(10) NOT NULL, `ctime` int(11) NOT NULL, PRIMARY KEY (`accid`)) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;

Next, open your webserver and create two files. vote.php and votegateway.php.

Download this file: LINK FIXED!
Put vote.php into your webserver, then follow the instructions in it to edit the code for your server.

In votegateway.php, put:
Code:
<?php 
setcookie('vote', '1', time() + 43200);
?>
<script language='javascript'>
setTimeout("location.href='http://www.yourvotesite.com'",1);
</script>
Change the yourvotesite.com to your voting page.

Use your osaflyff config.php to connect to your mysql server and you should be good to go!

Thanks for taking interest and pm if you have any questions.



Note: Btw this is my first release...Don't expect perfection, at least not yet.
CREDITS: Please give me credits if you use this. I'm giving credits to Ultra-Spidy, who created the base for WoW.
 
Last edited:
Not bad at all for a serious server once some files are perfected, but this isn't a [Release]...
Change your title to [Preview]? Or release it XD, but you said it's not finished, so I think you should change your title to [Preview]
 
Not bad at all for a serious server once some files are perfected, but this isn't a [Release]...
Change your title to [Preview]? Or release it XD, but you said it's not finished, so I think you should change your title to [Preview]

Well, I was thinking of it as a semi-release, since it works and is highly usable, yet has some minor bugs. Just pm me if you want the code for it. Like I said, I don't want every caali server to get their hands on it...Also there is a problem with the RuneFlyFF voting system. The vote is counted and the info/mail goes into the database and mail box in game, yet the mailbox crashes the client...I'm still learning c++ so if anyone has a fix for the mail, it would be appreciated!
 
Thanks for the support! ^_^ it's just a simple script I spent an hour or two editing. I'm having some trouble with the cookie checking function (Won't check it until the person presses "vote"), so I might just release it here for rune/osa.

Again, if anyone wants me to do some php scripts for their server files or anything just pm me.
 
Please don't ask for the caali voting system. I don't feel it would be suitable to give it away here. Also, I dont want every noob caali server to be the top of the topsites. <.<

k just send it.. and only who have enought peoples in the server will get enought vots lol..
 
i am currently in process of editing this script to work with official, if all goes well and i get working i will give credits to mootie for base for me to edit. Also may release to all.
 
Back