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!

[Release] Dekaron Vote Script

Newbie Spellweaver
Joined
Dec 23, 2008
Messages
46
Reaction score
29
With help of some other scripts i found a way to do it, vote ;)
Its a little tricky but it should be easy

Name: Vote Script (php)
Download:
Scan: Found nothing
Scan URL:


You will need:

mysql server ( )
mssql server ( )
apache server ( )
(Xampp may have mysql installed, but there is a bug, read below)

OK little tutorial: ;)

Make sure you have MYSQL (not mssql) (it should come with XAMPP)

1. Open your database manager for mysql (not mssql !)

----- There are many ways to use MySQL but if you installed XAMPP you will use "phpmyadmin"

2. Create a new database called "vote"
3. Open phpmyadmin
4. At the top you will see "import"
5. Select your vote.sql file
6. Press "GO"


----- Now you should have 2 tables in your vote database
----- Called: "Log" and "users"

If that is done, go to your "vote.php"
Open it with your editor

Edit the following:

PHP:
//----------------------------------------------------------
$coins = 25; //25 coins
$webpage = "YOURLINK";

// mssql 
	$mssql = array(
	'host' => "localhost",
	'user' => "sa",
	'pass' => "YOURPASSWORD"
	);
	
// mysql
	$mysql = array(
	'host' => "localhost",
	'user' => "root",
	'pass' => "YOURPASSWORD",
	'db'   => "vote"
	);
	
//----------------------------------------------------------
NOTE: Webpage:

Example:
PHP:
$webpage = "http://www.xtremetop100.com/in.php?site=1132286514";

NOTE: do not change 'db' => "vote" unless you created a mysql database for your vote script with a other name

Save your "vote.php"
Upload vote.php"
Upload "votenow.php"

TIP: can be a small popup (not recommended)

go to your site and look for "votenow.php"
or:

Enter your ACCOUNT NAME! (not character name!)


Have fun !!!!!!!!!!!!!!

Bugs, errors, comments, complaints, .... POST IT HERE, DONT MAKE A NEW TOPIC !



-------------------------------------------------------------------------------------

Bugs:


mssql_connect Bug:
Error msg: Fatal error: Call to undefined function mssql_connect()

Fix:
Open php.ini file
Find ;php_mssql.dll
Delete prefix ";"




Cant enter password for mysql:(Xampp)
Its seems you cant enter or modify your mysql password, here is how to:

Fix:

How I can set a "root" password in MySQL? (method 1)
The easiest way is to use the security console, which you can access at .

This "console" creates a password for the MySQL user "root" and is adjusting the phpMyAdmin configuration.


How I can set a "root" password in MySQL? (method 2)
With the"XAMPP Shell" (command prompt) you can also change the password. Open the shell and execute this command:
mysqladmin.exe -u root password secret

Of course, your password should not be "secret", too. In the next step you must adjust the phpMyAdmin configuration for this new password. In the file "\xampp\phpMyAdmin\config.inc.php" change the lines:
PHP:
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = '';
to:
PHP:
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'secret';

Instead in the XAMPP Shell, you can also change the password with phpMyAdmin, and then adjust the phpMyAdmin configuration.
 
Last edited:
Back
Top