game/_incl_data/class/magic/aniname.php

12 lines
425 B
PHP
Raw Normal View History

2023-03-31 18:42:06 +00:00
<?php
2022-06-06 21:30:34 +00:00
if(!defined('GAME'))
{
die();
}
if( $itm['magic_inci'] == 'aniname' ) {
2023-01-10 16:29:32 +00:00
$u->error = 'Теперь вы можете переименовать своего зверя';
2022-06-06 21:30:34 +00:00
mysql_query('UPDATE `users_animal` SET `rename` = 0 WHERE `uid` = '.$u->info['id'].' AND `delete` = 0 AND `pet_in_cage` = 0 LIMIT 1');
mysql_query('UPDATE `items_users` SET `iznosNOW` = `iznosNOW` + 1 WHERE `id` = '.$itm['id'].' LIMIT 1');
}
?>