Shakes & Fidget Private - Full Script (Tulyita)

05/26/2014 07:09 krpet25#556
You need to find this:
Quote:
$db_data ['thirst'] += 1200;
$db_data ['beers'] += 0;
$db_data ['mushroom'] -= 1;
And change it to this:
Quote:
$db_data ['thirst'] += 1200;
$db_data ['beers'] += 1;
$db_data ['mushroom'] -= 1;
05/26/2014 07:44 UND3RW0RLD#557
Quote:
Originally Posted by MsCryCZ View Post
ǝnd1ǝss-ɯonǝʎ
~~~~> Bubbles <~~~~
Can you please send me the administration? I think with everything completely! and named it in the bud pm or here on the forum put it necessary to uloz.to, mediafire
ill provide a version of it today. :)
05/26/2014 14:33 MsCryCZ#558
Ok... send me a link when a complete ;) and time ?
05/26/2014 15:31 UND3RW0RLD#559
this is a smaller version of my admin-interface
english version (took me an hour to translate it -.-)
[Only registered and activated users can see links. Click Here To Register...]

install:

-> extract to www-root (htdocs in xampp)

-> change: backend/secrets.php

-> change: backend/config.php

Code:
CREATE TABLE `game_settings` (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `setting` varchar(255) NOT NULL,
  `value` varchar(255) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
Code:
INSERT INTO `game_settings` (`id`, `setting`, `value`) VALUES (NULL, 'EVENT', '0');
request.php
find:
PHP Code:
function event(){
$event 4//0 = nothing, 1 = TP event, 2 = Epic event, 3 = gold event, 4 = mushroom event, 5 = chirstmas event
return $event;

replace with:
PHP Code:
function event(){
    
$qry $GLOBALS ['db']->prepare "SELECT value FROM game_settings WHERE setting = 'EVENT' LIMIT 1" );
    
$qry->execute ();
    
$res $qry->fetchAll PDO::FETCH_ASSOC );
    
$event $res [0] ['value'];
    return 
$event;

Code:
ALTER TABLE  `user_data` ADD  `last_ip` VARCHAR( 30 ) NOT NULL AFTER  `email` ;
find:
PHP Code:
        // add new user to DB
        
$qry $db->prepare 
put over it:
PHP Code:
        // Jessis Multi-Acc-fix
        
$ip $_SERVER['REMOTE_ADDR'];
        
// End of Fix 
extend query with last_ip

find:
PHP Code:
        $qry->bindParam ':pass'$pass ); 
put over it:
PHP Code:
        $qry->bindParam ':lastip'$ip ); 
find:
PHP Code:
        // set ssid in database
        
$qry $db->prepare 
put over it:
PHP Code:
        // Jessis Multi-Acc-fix
        
$ip $_SERVER['REMOTE_ADDR'];
        
// End of Fix 
extend the query

find:
PHP Code:
        $qry->bindParam ':id'$db_data ['user_id'] ); 
put over it:
PHP Code:
        $qry->bindParam ':ip'$ip ); 
find:
PHP Code:
 if ($db_data ['medal_commerce'] < $db_data ['silver']){
$db_data ['medal_commerce'] = $db_data ['silver']; 
$qry $db->prepare "UPDATE user_data SET
medal_commerce = :medalc
WHERE ssid = :ssid" 
); 
put over it
PHP Code:
 // UPDATE IP
$ip $_SERVER['REMOTE_ADDR'];
$qry $db->prepare "UPDATE user_data SET last_ip = :lastip WHERE ssid = :ssid" );
$qry->bindParam ':lastip'$ip );
$qry->bindParam ':ssid'$SSID);
$qry->execute ();
// End of UPDATE IP 
Code:
ALTER TABLE `user_data` ADD `last_activ` VARCHAR( 30 ) NOT NULL AFTER `last_ip`
find
PHP Code:
        // UPDATE IP
        
$ip $_SERVER['REMOTE_ADDR'];
        
$qry $db->prepare "UPDATE user_data SET last_ip = :lastip WHERE ssid = :ssid" );
        
$qry->bindParam ':lastip'$ip );
        
$qry->bindParam ':ssid'$SSID);
        
$qry->execute ();
        
// End of UPDATE IP 
replace with
PHP Code:
        // UPDATE IP & activity
        
$ip $_SERVER['REMOTE_ADDR'];
        
$qry $db->prepare "UPDATE user_data SET last_ip = :lastip, last_activ = :lastactiv WHERE ssid = :ssid" );
        
$qry->bindParam ':lastip'$ip );
        
$qry->bindParam ':lastactiv'$time );
        
$qry->bindParam ':ssid'$SSID);
        
$qry->execute ();
        
// End of UPDATE IP & activity 
find:
PHP Code:
        // potions
        
        
$time = new DateTime ();
        
$time $time->getTimestamp (); 
cut
PHP Code:
$time = new DateTime ();
        
$time $time->getTimestamp (); 
put it over
PHP Code:
        // UPDATE IP & activity
        
$ip $_SERVER['REMOTE_ADDR']; 
have fun :)
05/26/2014 15:53 EptunLP#560
And i also provide czech version here! :)
---- Link deleted ----
05/26/2014 15:57 TheBreakZus#561
It works perfect thanks a lot ;)

Gesendet von meinem HUAWEI P6-U06 mit Hilfe von Elitepvpers, bereitgestellt von appyet.com
05/26/2014 16:51 Dmixior#562
Maybe do you have clear files in witch you change this values?
05/26/2014 17:08 Sainze.#563
Wenn ich Beim Turm ein Gegner angreiffe dann Habe ich aufeinmal Keine Verbindung mehr

Oder Bei mir ist dauerthaft eine Quest Ich kann keine Neue anwählen Tränke werden nicht Angezeigt bei meinem Char und Auch keine Attribute :))
Bitte Helft mir


If I attack an enemy tower when suddenly I Have No longer a connection

Or With me is permanently a quest I can not select New potions are not Indicated for my char and also no attributes :))
Please Help me
05/26/2014 17:28 WielkaNogawka#564
Quote:
Originally Posted by ǝnd1ǝss-ɯonǝʎ View Post
this is a smaller version of my admin-interface
english version (took me an hour to translate it -.-)
[Only registered and activated users can see links. Click Here To Register...]

install:

-> extract to www-root (htdocs in xampp)

-> change: backend/secrets.php

-> change: backend/config.php

Code:
CREATE TABLE `game_settings` (
  `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
  `setting` varchar(255) NOT NULL,
  `value` varchar(255) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1;
Code:
INSERT INTO `game_settings` (`id`, `setting`, `value`) VALUES (NULL, 'EVENT', '0');
request.php
find:
PHP Code:
function event(){
$event 4//0 = nothing, 1 = TP event, 2 = Epic event, 3 = gold event, 4 = mushroom event, 5 = chirstmas event
return $event;

replace with:
PHP Code:
function event(){
    
$qry $GLOBALS ['db']->prepare "SELECT value FROM game_settings WHERE setting = 'EVENT' LIMIT 1" );
    
$qry->execute ();
    
$res $qry->fetchAll PDO::FETCH_ASSOC );
    
$event $res [0] ['value'];
    return 
$event;

Code:
ALTER TABLE  `user_data` ADD  `last_ip` VARCHAR( 30 ) NOT NULL AFTER  `email` ;
find:
PHP Code:
        // add new user to DB
        
$qry $db->prepare 
put over it:
PHP Code:
        // Jessis Multi-Acc-fix
        
$ip $_SERVER['REMOTE_ADDR'];
        
// End of Fix 
extend query with last_ip

find:
PHP Code:
        $qry->bindParam ':pass'$pass ); 
put over it:
PHP Code:
        $qry->bindParam ':lastip'$ip ); 
find:
PHP Code:
        // set ssid in database
        
$qry $db->prepare 
put over it:
PHP Code:
        // Jessis Multi-Acc-fix
        
$ip $_SERVER['REMOTE_ADDR'];
        
// End of Fix 
extend the query

find:
PHP Code:
        $qry->bindParam ':id'$db_data ['user_id'] ); 
put over it:
PHP Code:
        $qry->bindParam ':ip'$ip ); 
find:
PHP Code:
 if ($db_data ['medal_commerce'] < $db_data ['silver']){
$db_data ['medal_commerce'] = $db_data ['silver']; 
$qry $db->prepare "UPDATE user_data SET
medal_commerce = :medalc
WHERE ssid = :ssid" 
); 
put over it
PHP Code:
 // UPDATE IP
$ip $_SERVER['REMOTE_ADDR'];
$qry $db->prepare "UPDATE user_data SET last_ip = :lastip WHERE ssid = :ssid" );
$qry->bindParam ':lastip'$ip );
$qry->bindParam ':ssid'$SSID);
$qry->execute ();
// End of UPDATE IP 
Code:
ALTER TABLE `user_data` ADD `last_activ` VARCHAR( 30 ) NOT NULL AFTER `last_ip`
find
PHP Code:
        // UPDATE IP
        
$ip $_SERVER['REMOTE_ADDR'];
        
$qry $db->prepare "UPDATE user_data SET last_ip = :lastip WHERE ssid = :ssid" );
        
$qry->bindParam ':lastip'$ip );
        
$qry->bindParam ':ssid'$SSID);
        
$qry->execute ();
        
// End of UPDATE IP 
replace with
PHP Code:
        // UPDATE IP & activity
        
$ip $_SERVER['REMOTE_ADDR'];
        
$qry $db->prepare "UPDATE user_data SET last_ip = :lastip, last_activ = :lastactiv WHERE ssid = :ssid" );
        
$qry->bindParam ':lastip'$ip );
        
$qry->bindParam ':lastactiv'$time );
        
$qry->bindParam ':ssid'$SSID);
        
$qry->execute ();
        
// End of UPDATE IP & activity 
find:
PHP Code:
        // potions
        
        
$time = new DateTime ();
        
$time $time->getTimestamp (); 
cut
PHP Code:
$time = new DateTime ();
        
$time $time->getTimestamp (); 
put it over
PHP Code:
        // UPDATE IP & activity
        
$ip $_SERVER['REMOTE_ADDR']; 
have fun :)




not work for me ;/
can you send me this request? (request only) please?
05/26/2014 17:36 UND3RW0RLD#565
Quote:
Originally Posted by WielkaNogawka View Post
not work for me ;/
can you send me this request? (request only) please?
-.-" the third..

I'll publish the needed "ACTS"

If you did changes to the ACTs you have to do them again after replacing them with mine, or you try it again with the old installation-guide. which is correct.. (i tried it based on a fresh request.php)

replacing the function event() is up to your own.

ACT_REGISTER

ACT_LOGIN

ACT_HERO
05/26/2014 22:09 Messias_80#566
Erstmal VIELEN VIELEN VIELEN DANK an alle die hier gearbeitet haben und es zu standen gebracht haben <3

Ich hätte allerdings paar fragen:

1. Wie kann ich die Zeit der Quests umstellen, damit es nicht iwie 30Sek oder so dauert sondern wie im echten, 5, 10, 15, 20min.

2. Bei einer SQL geht der Turm aber alles andere ist verbuggt, bei der anderen geht der Turm nicht aber der Rest läuft einwandfrei.

Ich weiß ist unhöfflich zu fragen weil ihr schon so viel Arbeit geleistet habt, würde mich aber trotzdem über eine Antwort freuen :).
05/27/2014 09:07 Crasim#567
Excuse me do you know where is the control of the composition of the email?
ES: "jonh.doe" "@" "email" "." "tld"?
because at the moment anyone can register with random characters .. and I wanted to create a system of email newsletters but will always bring a lot of errors if "fake email" is then serves also for an eventual recovery password
05/27/2014 09:19 UND3RW0RLD#568
PHP Code:
case $ACT_REGISTER 
PHP Code:
// TODO: validate email 
PHP Code:
$ERR_EMAIL_REJECTED 
have fun :D

script (not adapted for request.php)
05/27/2014 09:34 Crasim#569
Quote:
Originally Posted by ǝnd1ǝss-ɯonǝʎ View Post
PHP Code:
case $ACT_REGISTER 
PHP Code:
// TODO: validate email 
PHP Code:
$ERR_EMAIL_REJECTED 
have fun :D

script (not adapted for request.php)
For reset password is possible change url of request ? on swf ?
[Only registered and activated users can see links. Click Here To Register...]
05/27/2014 14:37 BaToTu#570
I've got that problem someone can help?

Text

Text

Text

Zarejestrowani uzytkownicy: 0

Ukončit