-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtravel.php
63 lines (61 loc) · 2.69 KB
/
travel.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<?php
/***************************************************************************
* travel.php
* -------------------
* copyright : (C) 2004 Unlimited Creators based on Gamers-Fusion ver 2.5
* email : [email protected]
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
***************************************************************************/
$title="Stajnie";
require_once("header.php");
if (!isset($_GET['akcja'])) {
$_GET['akcja'] = '';
}
if (!$_GET['akcja'] && $stat['miejsce'] == 'Altara') {
print "Witaj w Stajniach. St±d mo¿esz wyruszyæ do innych miejsc ¶wiata Vallheru.<br>";
print "<ul>";
print "<li><a href=travel.php?akcja=gory>Góry Kazad-nar (koszt 1000 sztuk z³ota)</a></li>";
print "</ul>";
}
if (!$_GET['akcja'] && $stat['miejsce'] != 'Altara') {
print "Witaj w Stajniach. Têdy mo¿esz wróciæ do stolicy Vallheru, Altary.<br>";
print "- <a href=travel.php?akcja=powrot>Wróæ do Altary (koszt 1000 sztuk z³ota)</a>";
}
if ($_GET['akcja'] == 'gory') {
if ($gracz['credits'] < 1000) {
print "Nie masz tyle pieniêdzy!";
require_once("footer.php");
exit;
}
mysql_query("update players set miejsce='Góry' where id=$stat[id]");
mysql_query("update players set credits=credits-1000 where id=$stat[id]");
print "Dotar³e¶ do Gór Kazad-nar. Wejd¼ <a href=gory.php>tutaj</a> aby zobaczyæ co ciebie czeka.";
}
if ($_GET['akcja'] == 'powrot') {
if ($gracz['credits'] < 1000) {
print "Nie masz tyle pieniêdzy!";
require_once("footer.php");
exit;
}
mysql_query("update players set miejsce='Altara' where id=$stat[id]");
mysql_query("update players set credits=credits-1000 where id=$stat[id]");
print "Dotar³e¶ do Altary. Wejd¼ <a href=city.php>tutaj</a> aby zobaczyæ co ciebie czeka.";
}
require_once("footer.php"); ?>