diff --git a/ag/gm/include/npc.inc.php b/ag/gm/include/npc.inc.php
index e1b690f..9b2f75b 100644
--- a/ag/gm/include/npc.inc.php
+++ b/ag/gm/include/npc.inc.php
@@ -13,10 +13,10 @@ include_once(ROOT_PATH.'/include/attackenset.inc.php');
include_once(ROOT_PATH.'/include/erstellfunctions.inc.php');
include_once(ROOT_PATH.'/include/designfunctions.inc.php');
-defineIfNotDefined('ACTION_EDIT', 'edit');
-defineIfNotDefined('ACTION_CREATE', 'create');
-defineIfNotDefined('TASK_EDIT', 'dochange');
-defineIfNotDefined('TASK_CREATE', 'docreate');
+define('ACTION_EDIT', 'edit');
+define('ACTION_CREATE', 'create');
+define('TASK_EDIT', 'dochange');
+define('TASK_CREATE', 'docreate');
defineIfNotDefined('NPC_USER_NAME', 'animegame-npc');
function getDropItemsAsOptions(){
@@ -202,7 +202,6 @@ function displayNPCInfo($action, $task, $charid) {
echo "\t\t".'
Anzahl | |
'."\n";
echo "\t\t".'maximale Wiederholungen | |
'."\n";
echo "\t\t".'Preis | |
'."\n";
-
//attacken informationen
echo "\t".'Attacken bearbeiten |
'."\n";
for($i = 1;$i<11;$i++){
@@ -213,7 +212,6 @@ function displayNPCInfo($action, $task, $charid) {
}
echo ''."\n";
}
-
//menü
echo "\t".' |
'."\n";
echo "\t".'NPC Übersicht |
'."\n";
@@ -364,7 +362,6 @@ function displayNPCOverview($page) {
$sql = 'SELECT '.join($d_array,',').' from chars where rasse = \'NPC\' ORDER BY level, Name LIMIT '.($page*20).', 20';
$qry = mysql_query($sql);
- //$anzahlSeiten = ceil(mysql_num_rows(mysql_query($sql))/20);
$colspan = count($d_array);
echo "\t".'Übersicht |
'."\n";;
echo "\t".''."\n";
@@ -394,10 +391,10 @@ function displayNPCOverview($page) {
}
$total = mysql_num_rows(mysql_query('SELECT '.join($d_array,',').' from chars where rasse = \'NPC\''));
$url = '###LABEL###';
+ echo "\t".'
|
'."\n";
echo "\t".''.displayPagelinksNew(20, $total, $page, $url).' |
'."\n";
-
+ echo "\t".'
|
'."\n";
echo "\t".'Create a new NPC |
'."\n";
- echo "\t".'
|
'."\n";
}
function displayNPC($action, $task, $charid, $table, $page, $data, $att_ids){