2022-06-06 21:30:34 +00:00
< ? php
if ( ! defined ( 'GAME' ))
{
die ();
}
2022-12-19 20:16:24 +00:00
class Magic
2022-06-06 21:30:34 +00:00
{
public $youuse = 0 ;
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD>
public function oslablenie ( $uid )
{
$ins = mysql_query ( 'INSERT INTO `eff_users` (`id_eff`,`uid`,`name`,`data`,`timeUse`) VALUES ("5","' . $uid . '","<22> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> ","add_m10=-1000|add_m11=-1000","' . time () . '")' );
if ( $ins )
{
return true ;
} else {
return false ;
}
}
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
public function useItems ( $id )
{
global $u , $c , $code ;
$itm = mysql_fetch_array ( mysql_query ( 'SELECT `im`.*,`iu`.* FROM `items_users` AS `iu` LEFT JOIN `items_main` AS `im` ON (`im`.`id` = `iu`.`item_id`) WHERE `iu`.`uid` = "' . $u -> info [ 'id' ] . '" AND `iu`.`id` = "' . mysql_real_escape_string (( int ) $id ) . '" LIMIT 1' ));
if ( isset ( $itm [ 'id' ]))
{
$st = $u -> lookStats ( $itm [ 'data' ]);
if ( isset ( $st [ 'usefromfile' ]) && $st [ 'usefromfile' ] == 1 )
{
if ( file_exists ( '_incl_data/class/magic/' . $itm [ 'magic_inci' ] . '.php' ))
{
require ( '_incl_data/class/magic/' . $itm [ 'magic_inci' ] . '.php' );
} else {
$u -> error = '7<> <37> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> (' . $itm [ 'magic_inci' ] . ')' ;
}
} elseif ( $itm [ 'type' ] == 30 )
{
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
$goodUse = 0 ; $use = array ();
if ( isset ( $st [ 'moment' ]))
{
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> (<28> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <20> <> )
if ( isset ( $st [ 'moment_hp' ]))
{
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
if ( $u -> stats [ 'hpNow' ] < $u -> stats [ 'hpAll' ])
{
$goodUse = 1 ;
$use [ 'moment_hp' ] = $st [ 'moment_hp' ];
if ( $u -> stats [ 'hpNow' ] + $use [ 'moment_hp' ] > $u -> stats [ 'hpAll' ])
{
$use [ 'moment_hp' ] = ceil ( $u -> stats [ 'hpAll' ] - $u -> stats [ 'hpNow' ]);
}
$u -> error .= '<27> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' . ( $use [ 'moment_hp' ]) . ' HP.<br>' ;
} else {
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
$goodUse = 0 ;
}
}
if ( isset ( $st [ 'moment_mp' ]))
{
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
if ( $u -> stats [ 'mpNow' ] < $u -> stats [ 'mpAll' ])
{
$goodUse = 1 ;
$use [ 'moment_mp' ] = $st [ 'moment_mp' ];
if ( $u -> stats [ 'mpNow' ] + $use [ 'moment_mp' ] > $u -> stats [ 'mpAll' ])
{
$use [ 'moment_mp' ] = ceil ( $u -> stats [ 'mpAll' ] - $u -> stats [ 'mpNow' ]);
}
$u -> error .= '<27> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' . ( $use [ 'moment_mp' ]) . ' MP.<br>' ;
} else {
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
$goodUse = 0 ;
}
}
if ( $itm [ 'iznosNOW' ] >= $itm [ 'iznosMAX' ])
{
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ...' ;
$goodUse = 0 ;
}
if (( $u -> info [ 'align' ] == 2 || $u -> info [ 'haos' ] > time ()) && isset ( $st [ 'nohaos' ]))
{
$goodUse = 0 ;
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
}
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <>
if ( $goodUse == 1 )
{
$itm [ 'iznosNOW' ] ++ ;
$upd = mysql_query ( 'UPDATE `items_users` SET `iznosNOW` = "' . $itm [ 'iznosNOW' ] . '" WHERE `id` = "' . $itm [ 'id' ] . '" AND `uid` = "' . $u -> info [ 'id' ] . '" LIMIT 1' );
if ( $upd )
{
$u -> stats [ 'hpNow' ] += $use [ 'moment_hp' ];
$u -> info [ 'hpNow' ] += $use [ 'moment_hp' ];
mysql_query ( 'UPDATE `stats` SET `hpNow` = "' . $u -> info [ 'hpNow' ] . '" WHERE `id` = "' . $u -> info [ 'id' ] . '" LIMIT 1' );
$u -> addDelo ( 1 , $u -> info [ 'id' ], '"<font color="maroon">System.inventory</font>": <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '" (+' . $use [ 'moment_hp' ] . ' HP) [itm:' . $itm [ 'id' ] . '].' , time (), $u -> info [ 'city' ], 'System.inventory' , 0 , 0 );
$this -> youuse ++ ;
$u -> error = '<27> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '"<br>' . $u -> error . '' ;
} else {
$u -> error = '<27> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ...' ;
}
}
} else {
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
$goodUse = 1 ;
if (( $u -> info [ 'align' ] == 2 || $u -> info [ 'haos' ] > time ()) && isset ( $st [ 'nohaos' ]))
{
$goodUse = 0 ;
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
}
if ( $goodUse == 1 )
{
$upd1 = 1 ;
$upd2 = 1 ;
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
if ( isset ( $st [ 'onlyOne' ]))
{
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
$goodUse = 0 ;
$upd1 = mysql_query ( 'UPDATE `eff_users` SET `delete` = "' . time () . '" WHERE `uid` = "' . $u -> info [ 'id' ] . '" AND `delete` = "0" AND `id_eff` = "' . $itm [ 'magic_inc' ] . '"' );
if ( $upd1 )
{
$goodUse = 1 ;
}
}
if ( isset ( $st [ 'oneType' ]))
{
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
$goodUse = 0 ;
$upd2 = mysql_query ( 'UPDATE `eff_users` SET `delete` = "' . time () . '" WHERE `uid` = "' . $u -> info [ 'id' ] . '" AND `delete` = "0" AND `overType` = "' . $itm [ 'overType' ] . '"' );
if ( $upd1 )
{
$goodUse = 1 ;
}
}
if ( $goodUse == 1 )
{
$us = $this -> add_eff ( $u -> info [ 'id' ], $itm [ 'magic_inc' ]);
if ( $us [ 0 ] == 1 )
{
$itm [ 'iznosNOW' ] ++ ;
mysql_query ( 'UPDATE `items_users` SET `iznosNOW` = "' . $itm [ 'iznosNOW' ] . '" WHERE `id` = "' . $itm [ 'id' ] . '" AND `uid` = "' . $u -> info [ 'id' ] . '" LIMIT 1' );
$u -> addDelo ( 1 , $u -> info [ 'id' ], '"<font color="maroon">System.inventory</font>": <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '" (' . $us [ 1 ] . ') [itm:' . $itm [ 'id' ] . '].' , time (), $u -> info [ 'city' ], 'System.inventory' , 0 , 0 );
$this -> youuse ++ ;
$u -> error = '<27> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '"<br>' . $us [ 1 ] . '' ;
} else {
$u -> error = '6<> <36> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '"' ;
}
} else {
$u -> error = '5<> <35> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '"' ;
}
}
}
//---------------
} elseif ( $itm [ 'type' ] == 29 )
{
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
$st = $u -> lookStats ( $itm [ 'data' ]);
$jl = $_GET [ 'login' ];
$_GET [ 'login' ] = urlencode ( $_GET [ 'login' ]);
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> (<28> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> )
$_GET [ 'login' ] = str_replace ( '%' , ' ' , $_GET [ 'login' ]);
$_GET [ 'login' ] = str_replace ( '25' , '' , $_GET [ 'login' ]);
$jl = str_replace ( '%' , ' ' , $jl );
$jl = str_replace ( '25' , '' , $jl );
if ( isset ( $st [ 'useOnLogin' ]) && $st [ 'useOnLogin' ] == 1 )
{
$usr = mysql_fetch_array ( mysql_query ( 'SELECT `st`.`hpNow`,`u`.`login`,`st`.`dnow`,`u`.`id`,`u`.`align`,`u`.`admin`,`u`.`clan`,`u`.`level`,`u`.`room`,`u`.`online`,`u`.`battle`,`st`.`team` FROM `users` AS `u` LEFT JOIN `stats` AS `st` ON (`u`.`id` = `st`.`id`) WHERE `u`.`city` = "' . $u -> info [ 'city' ] . '" AND (`u`.`login`="' . mysql_real_escape_string ( $_GET [ 'login' ]) . '" OR `u`.`login`="' . mysql_real_escape_string ( $jl ) . '") LIMIT 1' ));
if ( isset ( $usr [ 'id' ]))
{
if ( $itm [ 'iznosNOW' ] >= $itm [ 'iznosMAX' ])
{
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ...' ;
} elseif ( $itm [ 'magic_inci' ] == 'snowball' )
{
if ( $usr [ 'id' ] == $u -> info [ 'id' ])
{
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> ' ;
} elseif ( $usr [ 'online' ] < time () - 120 )
{
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> ;)' ;
} elseif ( $usr [ 'room' ] != $u -> info [ 'room' ])
{
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> [' . $usr [ 'room' ] . ' ' . $u -> info [ 'room' ] . ']' ;
} elseif ( $usr [ 'admin' ] > 0 && $u -> info [ 'admin' ] == 0 )
{
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
} elseif ( $usr [ 'battle' ] > 0 && $u -> info [ 'battle' ] != $usr [ 'battle' ])
{
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> ' ;
} else {
$usr [ 'hpNow' ] -= 1000 ;
if ( $usr [ 'hpNow' ] < 0 )
{
$usr [ 'hpNow' ] = 0 ;
}
$upd = mysql_query ( 'UPDATE `stats` SET `hpNow` = "' . $usr [ 'hpNow' ] . '" WHERE `id` = "' . $usr [ 'id' ] . '" LIMIT 1' );
if ( $upd )
{
$sx = '<27> <> ' ; $sx2 = '' ;
if ( $u -> info [ 'sex' ] == 1 )
{
$sx = '<27> <> ' ; $sx2 = '<27> ' ;
}
$itm [ 'iznosNOW' ] ++ ;
mysql_query ( 'UPDATE `items_users` SET `iznosNOW` = "' . $itm [ 'iznosNOW' ] . '" WHERE `id` = "' . $itm [ 'id' ] . '" AND `uid` = "' . $u -> info [ 'id' ] . '" LIMIT 1' );
$rtxt = '[img[items/snowball1.gif]] <20> <> <EFBFBD> <EFBFBD> ' . $sx . ' "' . $u -> info [ 'login' ] . '" <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' . $sx2 . ' <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> "' . $usr [ 'login' ] . '". <font color=red><b>-1000</b></font> [' . $usr [ 'hpNow' ] . '/????]' ;
mysql_query ( " INSERT INTO `chat` (`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`typeTime`) VALUES (' " . $u -> info [ 'city' ] . " ',' " . $u -> info [ 'room' ] . " ','','',' " . $rtxt . " ',' " . time () . " ','11','0','1') " );
unset ( $sx , $sx2 );
} else {
$u -> error = '<27> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ...' ;
}
}
} elseif ( $itm [ 'magic_inci' ] == 'atack' )
{
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
$usta = $u -> getStats ( $usr [ 'id' ], 0 ); // <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD>
$minHp = $usta [ 'hpAll' ] / 100 * 33 ; // <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
if ( $u -> info [ 'dnow' ] != $usr [ 'dnow' ]){
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> [<5B> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ]' ;
} elseif ( $u -> info [ 'battle' ] > 0 ){
$u -> error = '<27> <> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> ' ;
} elseif ( $usr [ 'id' ] == $u -> info [ 'id' ]){
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> ' ;
} elseif ( $usr [ 'online' ] < time () - 120 ){
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> ' ;
} elseif ( $usr [ 'room' ] != $u -> info [ 'room' ]){
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> [' . $usr [ 'room' ] . ' ' . $u -> info [ 'room' ] . ']' ;
} elseif ( $usr [ 'admin' ] > 0 && $u -> info [ 'admin' ] == 0 ){
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
} elseif ( $minHp > $usta [ 'hpNow' ]){
//<2F> <> <EFBFBD> <EFBFBD> <20> <>
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> .' ;
} else {
$atc = $this -> atackUser ( $u -> info [ 'id' ], $usr [ 'id' ], $usr [ 'team' ], $usr [ 'battle' ]);
if ( $atc == 1 && $u -> info [ 'align' ] != 2 ){
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD>
$sx = '' ;
if ( $u -> info [ 'sex' ] == 1 ){
$sx = '<27> ' ;
}
$itm [ 'iznosNOW' ] ++ ;
mysql_query ( 'UPDATE `items_users` SET `iznosNOW` = "' . $itm [ 'iznosNOW' ] . '" WHERE `id` = "' . $itm [ 'id' ] . '" AND `uid` = "' . $u -> info [ 'id' ] . '" LIMIT 1' );
$rtxt = '[img[items/pal_button8.gif]] "' . $u -> info [ 'login' ] . '" <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' . $sx . ' <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $usr [ 'login' ] . '".' ;
mysql_query ( " INSERT INTO `chat` (`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`typeTime`) VALUES (' " . $u -> info [ 'city' ] . " ',' " . $u -> info [ 'room' ] . " ','','',' " . $rtxt . " ',' " . time () . " ','11','0','1') " );
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> , <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD>
die ( '<script>top.frames[\'main\'].location = "main.php";</script>' );
} else {
$u -> error = '<27> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ...' ;
}
}
} else {
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
if ( $u -> info [ 'dnow' ] != $usr [ 'dnow' ])
{
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> [<5B> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ]' ;
} elseif ( $usr [ 'id' ] == $u -> info [ 'id' ] && isset ( $st [ 'useOnlyUser' ]))
{
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> ' ;
} elseif ( $usr [ 'online' ] < time () - 120 )
{
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> ;)' ;
} elseif ( $usr [ 'room' ] != $u -> info [ 'room' ])
{
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> [' . $usr [ 'room' ] . ' ' . $u -> info [ 'room' ] . ']' ;
} elseif ( $usr [ 'admin' ] > 0 && $u -> info [ 'admin' ] == 0 && isset ( $st [ 'useNoAdmin' ]))
{
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
} elseif ( $usr [ 'battle' ] > 0 && $u -> info [ 'battle' ] != $usr [ 'battle' ])
{
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> ' ;
} elseif (( $u -> info [ 'align' ] == 2 || $u -> info [ 'haos' ] > time ()) && isset ( $st [ 'nohaos' ]))
{
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
} else {
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
$goodUse = 1 ;
if ( isset ( $st [ 'onlyOne' ]))
{
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
$goodUse = 0 ;
$upd1 = mysql_query ( 'UPDATE `eff_users` SET `delete` = "' . time () . '" WHERE `uid` = "' . $usr [ 'id' ] . '" AND `delete` = "0" AND `id_eff` = "' . $itm [ 'magic_inc' ] . '"' );
if ( $upd1 )
{
$goodUse = 1 ;
}
}
if ( isset ( $st [ 'oneType' ]))
{
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
$goodUse = 0 ;
$upd2 = mysql_query ( 'UPDATE `eff_users` SET `delete` = "' . time () . '" WHERE `uid` = "' . $usr [ 'id' ] . '" AND `delete` = "0" AND `overType` = "' . $itm [ 'overType' ] . '"' );
if ( $upd1 )
{
$goodUse = 1 ;
}
}
if ( $goodUse == 1 )
{
$us = $this -> add_eff ( $usr [ 'id' ], $itm [ 'magic_inc' ]);
if ( $us [ 0 ] == 1 )
{
$itm [ 'iznosNOW' ] ++ ;
mysql_query ( 'UPDATE `items_users` SET `iznosNOW` = "' . $itm [ 'iznosNOW' ] . '" WHERE `id` = "' . $itm [ 'id' ] . '" AND `uid` = "' . $u -> info [ 'id' ] . '" LIMIT 1' );
if ( $u -> info [ 'id' ] != $usr [ 'id' ])
{
$u -> addDelo ( 1 , $u -> info [ 'id' ], '"<font color="maroon">System.inventory</font>": <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '" (' . $us [ 1 ] . ') <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $usr [ 'login' ] . '" (id' . $usr [ 'id' ] . ') [itm:' . $itm [ 'id' ] . '].' , time (), $u -> info [ 'city' ], 'System.inventory' , 0 , 0 );
$u -> addDelo ( 1 , $usr [ 'id' ], '"<font color="maroon">System.inventory</font>": <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $u -> info [ 'login' ] . '" (id' . $u -> info [ 'id' ] . ') <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '" (' . $us [ 1 ] . ') <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> [itm:' . $itm [ 'id' ] . '].' , time (), $usr [ 'city' ], 'System.inventory' , 0 , 0 );
$u -> error = '<27> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '" <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $usr [ 'login' ] . '"<br>' . $us [ 1 ] . '' ;
$rtxt = '[img[items/' . $itm [ 'img' ] . ']] "' . $u -> info [ 'login' ] . '" <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' . $sx . ' <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '" <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $usr [ 'login' ] . '".' ;
mysql_query ( " INSERT INTO `chat` (`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`typeTime`) VALUES (' " . $u -> info [ 'city' ] . " ',' " . $u -> info [ 'room' ] . " ','','',' " . $rtxt . " ',' " . time () . " ','11','0','1') " );
} else {
$u -> addDelo ( 1 , $u -> info [ 'id' ], '"<font color="maroon">System.inventory</font>": <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '" (' . $us [ 1 ] . ') <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> [itm:' . $itm [ 'id' ] . '].' , time (), $u -> info [ 'city' ], 'System.inventory' , 0 , 0 );
$u -> error = '<27> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '" <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <br>' . $us [ 1 ] . '' ;
$rtxt = '[img[items/' . $itm [ 'img' ] . ']] "' . $u -> info [ 'login' ] . '" <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' . $sx . ' <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '" <20> <> <20> <> <EFBFBD> <EFBFBD> .' ;
mysql_query ( " INSERT INTO `chat` (`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`typeTime`) VALUES (' " . $u -> info [ 'city' ] . " ',' " . $u -> info [ 'room' ] . " ','','',' " . $rtxt . " ',' " . time () . " ','11','0','1') " );
}
$this -> youuse ++ ;
} else {
$u -> error = '1<> <31> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '"' ;
}
} else {
$u -> error = '2<> <32> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '"' ;
}
}
}
} else {
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $jl . '" <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> (' . $u -> info [ 'city' ] . ')' ;
}
} elseif ( isset ( $st [ 'useOnItem' ]) && $st [ 'useOnItem' ] == 1 )
{
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
} else {
//<2F> <> <20> <> <EFBFBD> <EFBFBD>
$goodUse = 1 ;
if (( $u -> info [ 'align' ] == 2 || $u -> info [ 'haos' ] > time ()) && isset ( $st [ 'nohaos' ]))
{
$goodUse = 0 ;
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
}
if ( $goodUse == 1 )
{
$upd1 = 1 ;
$upd2 = 1 ;
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
if ( isset ( $st [ 'onlyOne' ]))
{
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
$goodUse = 0 ;
$upd1 = mysql_query ( 'UPDATE `eff_users` SET `delete` = "' . time () . '" WHERE `uid` = "' . $u -> info [ 'id' ] . '" AND `delete` = "0" AND `id_eff` = "' . $itm [ 'magic_inc' ] . '"' );
if ( $upd1 )
{
$goodUse = 1 ;
}
}
if ( isset ( $st [ 'oneType' ]))
{
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
$goodUse = 0 ;
$upd2 = mysql_query ( 'UPDATE `eff_users` SET `delete` = "' . time () . '" WHERE `uid` = "' . $u -> info [ 'id' ] . '" AND `delete` = "0" AND `overType` = "' . $itm [ 'overType' ] . '"' );
if ( $upd1 )
{
$goodUse = 1 ;
}
}
if ( $itm [ 'magic_inci' ] == 'add_animal' )
{
if ( $u -> info [ 'animal' ] > 0 )
{
$u -> error = '<27> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '", <20> <20> <> <EFBFBD> <20> <> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> .' ;
} else {
$anm = array ( 'type' => 1 , 'name' => '' , 'obraz' => '' , 'stats' => '' , 'sex' => 0 );
if ( $anm [ 'type' ] == 1 )
{
$anm [ 'name' ] = '<27> <> <EFBFBD> ' ;
$anm [ 'sex' ] = 0 ;
$anm [ 'obraz' ] = array ( 1 => '20132.gif' , 2 => '21139.gif' , 3 => '20864.gif' , 4 => '21301.gif' );
$anm [ 'stats' ] = 's1=2|s2=2|s3=2|s4=5|rinv=40|m9=5|m6=10' ;
}
$anm [ 'obraz' ] = $anm [ 'obraz' ][ rand ( 1 , count ( $anm [ 'obraz' ]))];
$ins = mysql_query ( 'INSERT INTO `users_animal` (`type`,`name`,`uid`,`obraz`,`stats`,`sex`) VALUES ("' . $anm [ 'type' ] . '","' . $anm [ 'name' ] . '","' . $u -> info [ 'id' ] . '","' . $anm [ 'obraz' ] . '","' . $anm [ 'stats' ] . '","' . $anm [ 'sex' ] . '")' );
if ( $ins )
{
$u -> info [ 'animal' ] = mysql_insert_id ();
mysql_query ( 'UPDATE `users` SET `animal` = "' . $u -> info [ 'animal' ] . '" WHERE `id` = "' . $u -> info [ 'id' ] . '" LIMIT 1' );
$u -> error = '<27> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '" <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> - "<3B> <> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> , <20> <> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ".' ;
$itm [ 'iznosNOW' ] ++ ;
mysql_query ( 'UPDATE `items_users` SET `iznosNOW` = "' . $itm [ 'iznosNOW' ] . '" WHERE `id` = "' . $itm [ 'id' ] . '" AND `uid` = "' . $u -> info [ 'id' ] . '" LIMIT 1' );
$u -> addDelo ( 1 , $u -> info [ 'id' ], '"<font color="maroon">System.inventory</font>": <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '" (' . $us [ 1 ] . ') [itm:' . $itm [ 'id' ] . '].' , time (), $u -> info [ 'city' ], 'System.inventory' , 0 , 0 );
} else {
$u -> error = '<27> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '", <20> <> <EFBFBD> -<2D> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> ...' ;
}
}
} elseif ( $goodUse == 1 )
{
$us = $this -> add_eff ( $u -> info [ 'id' ], $itm [ 'magic_inc' ]);
if ( $us [ 0 ] == 1 )
{
$itm [ 'iznosNOW' ] ++ ;
mysql_query ( 'UPDATE `items_users` SET `iznosNOW` = "' . $itm [ 'iznosNOW' ] . '" WHERE `id` = "' . $itm [ 'id' ] . '" AND `uid` = "' . $u -> info [ 'id' ] . '" LIMIT 1' );
$u -> addDelo ( 1 , $u -> info [ 'id' ], '"<font color="maroon">System.inventory</font>": <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '" (' . $us [ 1 ] . ') [itm:' . $itm [ 'id' ] . '].' , time (), $u -> info [ 'city' ], 'System.inventory' , 0 , 0 );
$this -> youuse ++ ;
$u -> error = '<27> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '"<br>' . $us [ 1 ] . '' ;
$rtxt = '[img[items/' . $itm [ 'img' ] . ']] "' . $u -> info [ 'login' ] . '" <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' . $sx . ' <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '" <20> <> <20> <> <EFBFBD> <EFBFBD> .' ;
mysql_query ( " INSERT INTO `chat` (`city`,`room`,`login`,`to`,`text`,`time`,`type`,`toChat`,`typeTime`) VALUES (' " . $u -> info [ 'city' ] . " ',' " . $u -> info [ 'room' ] . " ','','',' " . $rtxt . " ',' " . time () . " ','11','0','1') " );
} else {
$u -> error = '3<> <33> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '"' ;
}
} else {
$u -> error = '4<> <34> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> "' . $itm [ 'name' ] . '"' ;
}
}
//------------------------------
}
}
} else {
$u -> error = '<27> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> ' ;
}
}
public function add_eff ( $uid , $id )
{
$g = array ( 0 => 0 , 1 => '' );
$eff = mysql_fetch_array ( mysql_query ( 'SELECT * FROM `eff_main` WHERE `id2` = "' . $id . '" LIMIT 1' ));
if ( isset ( $eff [ 'id2' ]))
{
$n = $eff [ 'mname' ];
$d = $eff [ 'mdata' ];
$ins = mysql_query ( 'INSERT INTO `eff_users` (`overType`,`id_eff`,`uid`,`name`,`timeUse`,`data`) VALUES ("' . $eff [ 'oneType' ] . '","' . $eff [ 'id2' ] . '","' . $uid . '","' . $n . '","' . time () . '","' . $d . '")' );
if ( $ins )
{
$g [ 0 ] = 1 ;
$g [ 1 ] = '...' ;
}
}
return $g ;
}
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
public function atackUser ( $uid1 , $uid2 , $tm , $btl , $addExp = 0 )
{
$good = 0 ;
if ( $btl == 0 )
{
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
$ins = mysql_query ( ' INSERT INTO `battle` ( `city` , `time_start` , `players` , `timeout` , `type` , `invis` , `noinc` , `travmChance` , `typeBattle` , `addExp` , `money` ) VALUES (
" '. $u->info ['city'].' " ,
" '.time().' " ,
" '. $u->info ['login'].','. $usr['login'] .' " ,
" 180 " ,
" 0 " ,
" 0 " ,
" 0 " ,
" 50 " ,
" 9 " ,
" '. $addExp .' " ,
" 0 " ) ' );
if ( $ins )
{
$btl_id = mysql_insert_id ();
$upd2 = mysql_query ( 'UPDATE `users` SET `battle`="' . $btl_id . '" WHERE `id` = "' . $uid1 . '" OR `id` = "' . $uid2 . '" LIMIT 2' );
mysql_query ( 'UPDATE `stats` SET `team`="1",`zv` = "0" WHERE `id` = "' . $uid1 . '" LIMIT 1' );
mysql_query ( 'UPDATE `stats` SET `team`="2",`zv` = "0" WHERE `id` = "' . $uid2 . '" LIMIT 1' );
$good = 1 ;
}
} else {
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <20> <> <EFBFBD>
$upd = mysql_query ( 'UPDATE `users` SET `battle`="' . $btl . '" WHERE `id` = "' . $uid1 . '" LIMIT 1' );
if ( $upd )
{
$ltm = array ( 1 => 2 , 2 => 1 );
mysql_query ( 'UPDATE `stats` SET `team`="' . $ltm [ $tm ] . '" WHERE `id` = "' . $uid1 . '" LIMIT 1' );
$good = 1 ;
}
}
return $good ;
}
//<2F> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <20> <> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD> <EFBFBD>
public function magicCentralAttack ()
{
global $c , $code , $u , $re ;
}
}
$magic = new Magic ;
?>