$location = "The Rat-infested Alley behind the Doshin Office";
                $description = "\"Trying to steal from the Doshin, eh!\" one of the men growls.<br>Where before there were only relaxing men idly ignoring their duties there are now unsheathed katanas and glaring eyes.<br>A group of the Doshin advance on you before you can escape and proceed to rough you up with fists and the hilts of their katana.  Finally, they take most of your gold and toss you into the alley behind the building.\n" . "<br><br>\n" . "Bruised and battered, you find yourself in a dark alley. A rat scurries by. To your left lies the main street of the village.\n";
                $quickstat = "player";
                break;
            default:
                echo "The Doshin ignore your ill-funded attempt to bribe them.\n";
                break;
        }
    }
}
echo "<div class=\"brownTitle\">{$location}</div>\n";
echo "<div class=\"description\">\n";
echo $description;
echo "</div>\n";
echo "<p>\n";
if (getBounty($username) > 0) {
    echo "<form id=\"bribe_form\" action=\"doshin_office.php\" method=\"post\" name=\"bribe_form\">\n";
    echo "<div>\n";
    echo "<input id=\"bribe\"type=\"text\" size=\"4\" maxlength=\"6\" name=\"bribe\" class=\"textField\">\n";
    echo "<input id=\"command\" type=\"submit\" value=\"Bribe\" name=\"command\" class=\"formButton\">\n";
    echo "</div>\n";
    echo "</form>\n";
}
$row = $sql->Query("SELECT uname,bounty,class,level,clan,clan_long_name FROM players WHERE bounty > 0 AND confirmed = 1 and health > 0 ORDER BY bounty DESC");
$row = $sql->data;
if ($sql->rows) {
    echo "Click on a Name to view a Ninja's profile. (You can place a bounty on them from their profile)<br><br>\n";
    echo "Total Wanted Ninja: " . $sql->rows . "\n";
    echo "<hr>\n";
    echo "<table cellpadding=\"2\" cellspacing=\"1\" class=\"playerTable\">\n";
    echo "<tr>\n";
Exemple #2
0
function rewardBounty($bounty_to, $bounty_on)
{
    global $sql;
    $bounty = getBounty($bounty_on);
    setBounty($bounty_on, 0);
    //Sets bounty to zero.
    addGold($bounty_to, $bounty);
    return $bounty;
}
 /**
  * Returns a view spec hash for rendering a template
  *
  * @param p_data Array Hash of variables to pass to the view
  * @return Array
  */
 private function render($p_data)
 {
     $myBounty = getBounty($this->sessionData['char_id']);
     // Pulling the bounties.
     $data = query_array("SELECT player_id, uname, bounty, class_name AS class, level, clan_id, clan_name \n\t\t\tFROM players JOIN class ON class_id = _class_id LEFT JOIN clan_player ON player_id = _player_id \n\t\t\tLEFT JOIN clan ON clan_id = _clan_id WHERE bounty > 0 AND active = 1 and health > 0 ORDER BY bounty DESC");
     $p_data['data'] = $data;
     $p_data['myBounty'] = $myBounty;
     return ['template' => 'doshin.tpl', 'title' => 'Doshin Office', 'parts' => $p_data, 'options' => ['quickstat' => $p_data['quickstat']]];
 }
Exemple #4
0
function rewardBounty($bounty_to, $bounty_on)
{
    $bounty = getBounty($bounty_on);
    setBounty($bounty_on, 0);
    //Sets bounty to zero.
    add_gold($bounty_to, $bounty);
    return $bounty;
}