game/_incl_data/class/dnaction/15/shaiba.php
2022-06-07 00:30:34 +03:00

26 lines
670 B
PHP

<?
if( isset($s[1]) && $s[1] == '15/shaiba' ) {
/*
Ñóíäóê: Ñóíäóê Ñòðàæà, ìîæíî íàéòè
"Âåðõíÿÿ ×àñòü Êëþ÷à Ïîðòàëà" - 4443
*/
//Âñå ïåðåìåííûå ñîõðàíÿòü â ìàññèâå $vad !
$vad = array(
'go' => true
);
$r = 'Øàéáà ó âàñ! Çàáåéòå å¸ â âîðîòà ïðîòèâíèêà!';
//Óäàëÿåì øàéáó
mysql_query('DELETE FROM `dungeon_obj` WHERE `id` = "'.$obj['id'].'" LIMIT 1');
//Äîáàâëÿåì øàéáó â èíâåíòàðü èãðîêà
$vad['itm'] = $u->addItem(4910,$u->info['id']);
if($vad['itm'] > 0) {
mysql_query('UPDATE `items_users` SET `gift` = "Øàéáà" WHERE `id` = "'.$vad['itm'].'" LIMIT 1');
}
$this->sys_chat('<b>'.$u->info['login'].'</b> ïåðåõâàòèë Øàéáó!');
unset($vad);
}
?>