Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change redirects and attributes check in char creation process #76

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions website/community/account/de_newchar.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
$query = 'SELECT COUNT(*)'
.PHP_EOL.' FROM player'
.PHP_EOL.' WHERE ply_playerid = '.$pgSQL->Quote( $charid )
.PHP_EOL.' AND ply_dob > 0'
;
.PHP_EOL.' AND ply_dob > 0
AND ply_strength != 0';
$pgSQL->setQuery( $query );

if ($pgSQL->loadResult() > 0)
Expand Down
2 changes: 1 addition & 1 deletion website/community/account/de_newchar_3.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
<p>Die Attributpakete geben einen Überblick über die Anforderungen der verschiedenen Rollen. Bitte ändere die bestehenden Pakete bei Bedarf um sie deiner gewünschten Charakterrolle anzupassen. Druiden benötigen derzeit 30 Punkte aufgeteilt auf Wahrnehmung, Essenz und Intelligenz. Magier benötigen derzeit 30 Punkte aufgeteilt auf Intelligenz, Essenz und Willensstärke.</p>
<p>Bewege deine Maus über ein Attribut, um einen Hilfetext anzuzeigen.</p>
<div>
<form action="<?php echo Page::getURL(); ?>/community/account/de_newchar_4.php?charid=<?php echo $charid,($_GET['server'] == '1' ? '&amp;server=1' : ''); ?>" method="post" name="create_char" id="create_char">
<form action="<?php echo Page::getURL(); ?>/community/account/de_newchar.php?charid=<?php echo $charid,($_GET['server'] == '1' ? '&amp;server=1' : ''); ?>" method="post" name="create_char" id="create_char">
<div>
<h2>Attribute</h2>

Expand Down
4 changes: 2 additions & 2 deletions website/community/account/us_newchar.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@
$query = 'SELECT COUNT(*)'
.PHP_EOL.' FROM player'
.PHP_EOL.' WHERE ply_playerid = '.$pgSQL->Quote( $charid )
.PHP_EOL.' AND ply_dob > 0'
;
.PHP_EOL.' AND ply_dob > 0
AND ply_strength != 0';
$pgSQL->setQuery( $query );

if ($pgSQL->loadResult() > 0)
Expand Down
2 changes: 1 addition & 1 deletion website/community/account/us_newchar_3.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
<p>The attribute packages should give your a general idea of what attributes go towards a certain role. Make changes to existing packages to adjust them to the role you'd like to play. Druids need a pool of 30 points shared between perception, essence, and intelligence. Mages need a pool of 30 points shared between intelligence, essence, and willpower.</p>
<p>Hover your mouse of an attribute to get a tool tip.</p>
<div>
<form action="<?php echo Page::getURL(); ?>/community/account/us_newchar_4.php?charid=<?php echo $charid,($_GET['server'] == '1' ? '&amp;server=1' : ''); ?>" method="post" name="create_char" id="create_char">
<form action="<?php echo Page::getURL(); ?>/community/account/us_newchar.php?charid=<?php echo $charid,($_GET['server'] == '1' ? '&amp;server=1' : ''); ?>" method="post" name="create_char" id="create_char">
<div>
<h2>Attributes</h2>

Expand Down