mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
and https://otland.net/threads/myaac-v0-0-1.251454/page-13#post-2466313
This commit is contained in:
parent
7b96ce9b8c
commit
be2daeb4ab
@ -161,8 +161,10 @@ if($player->isLoaded() && !$player->isDeleted())
|
|||||||
$skills[] = array('skillid' => $skillid, 'value' => $skills_db[$field_name]);
|
$skills[] = array('skillid' => $skillid, 'value' => $skills_db[$field_name]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else {
|
||||||
$skills = $db->query('SELECT `skillid`, `value` FROM `player_skills` WHERE `player_id` = ' . $player->getId() . ' LIMIT 7');
|
$skills_db = $db->query('SELECT `skillid`, `value` FROM `player_skills` WHERE `player_id` = ' . $player->getId() . ' LIMIT 7');
|
||||||
|
$skills = $skills_db->fetchAll();
|
||||||
|
}
|
||||||
|
|
||||||
foreach($skills as &$skill) {
|
foreach($skills as &$skill) {
|
||||||
$skill['name'] = getSkillName($skill['skillid']);
|
$skill['name'] = getSkillName($skill['skillid']);
|
||||||
|
@ -69,7 +69,7 @@ if(isset($_POST['reload_spells']) && $canEdit)
|
|||||||
$type = 2;
|
$type = 2;
|
||||||
$count = $spell->getConjureCount();
|
$count = $spell->getConjureCount();
|
||||||
try {
|
try {
|
||||||
$db->query('INSERT INTO myaac_spells (spell, name, words, type, mana, level, maglevel, soul, premium, vocations, conjure_count, hidden) VALUES (' . $db->quote($spell_txt) . ', ' . $db-quote($name) . ', ' . $db->quote($spell_txt) , ', ' . $db->quote($type) . ', ' . $db->quote($mana) . ', ' . $db->quote($lvl) . ', ' . $db->quote($mlvl) . ', ' . $db->quote($soul) . ', ' . $db>quote($pacc) . ', ' . $db->quote($vocations_to_db) . ', ' . $db->quote($count) . ', ' . $db->quote($hide_spell) . ')');
|
$db->query('INSERT INTO myaac_spells (spell, name, words, type, mana, level, maglevel, soul, premium, vocations, conjure_count, hidden) VALUES (' . $db->quote($spell_txt) . ', ' . $db->quote($name) . ', ' . $db->quote($spell_txt) . ', ' . $db->quote($type) . ', ' . $db->quote($mana) . ', ' . $db->quote($lvl) . ', ' . $db->quote($mlvl) . ', ' . $db->quote($soul) . ', ' . $db->quote($pacc) . ', ' . $db->quote($vocations_to_db) . ', ' . $db->quote($count) . ', ' . $db->quote($hide_spell) . ')');
|
||||||
success("Added: " . $name . "<br>");
|
success("Added: " . $name . "<br>");
|
||||||
}
|
}
|
||||||
catch(PDOException $error) {
|
catch(PDOException $error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user