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:
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:
PHP 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: vote.php 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 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.