• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Gesior AAC] Achievements + Secret

What about secret achievements?
achievement-secret-symbol.gif

I am going to fix that tomorrow, don't worry.
 
@darkhaos:

Thank you for yet another amazing script. ;]

---

Achievements, including secrets.

Replace the characters.php part:
PHP:
/*
				Achievements website script by Archez.
				http://otland.net/members/archez/
				Achievements in-game functions and script by darkhaos.
				http://otland.net/members/darkhaos/
				A person that made this script possible, Chris.
				http://otland.net/members/chris/
				------------------------------------------------------
				Merely scripted for Gesior AAC.
				------------------------------------------------------
			*/
				
				$achievements = $SQL->query('SELECT `key`, `player_id` FROM `player_storage` WHERE `key` LIKE "200%" AND `player_id` = ' . $player->getId())->fetchAll();
				
				$main_content .= '<br /><table border=0 cellspacing="1" cellpadding="4" width=100%><tr bgcolor="'.$config['site']['vdarkborder'].'"><td colspan="2" class=white><b>Account Achievements</b></td></tr>';
				
				if(!$achievements)
				{
					$main_content .= '<tr bgcolor="'.$config['site']['lightborder'].'"><td>There are no achievements set to be displayed for this character.</td></tr>';
				}
				else
				{
					$number_of_rows = 0;
					
					foreach($achievements as $row)
					{
						if(!array_key_exists(($row['key'] - 19999 ), $achievements))
						{
							if($row['key'] - 20000 <= 54) { $grade = '<img src="http://img02.imgland.net/KN627j4lLN.gif" />'; }
							elseif($row['key'] - 20000 >= 55) { $grade = '<img src="http://img02.imgland.net/KN627j4lLN.gif" /> <img src="http://img02.imgland.net/KN627j4lLN.gif" />'; }
							
							$secret = false;
							
							if(in_array(($row['key'] - 20000), $config['archez']['secret']))
							{
								$secret = '<img src="http://img04.imgland.net/PuMz0mVqSG.gif" />';
							}
							
							if(is_int($number_of_rows / 2)) { $bgcolor = $config['site']['lightborder']; } else { $bgcolor = $config['site']['darkborder']; }
							
							$main_content .= '<tr bgcolor="'.$bgcolor.'"><td width="20%">'.$grade.'</td><td>' . $config['archez']['achievements'][$row['key'] - 20000] . '<span style="float:right;">'.$secret.'</span></td></tr>';
							
							$number_of_rows++;
						}
					}
				}
				
				$main_content .= '</table>';
				
			/* END OF ACHIEVEMENTS */

And add this to your config.php:
PHP:
$config['archez']['secret'] = array(2, 6, 7, 13, 16, 17, 18, 23, 24, 26, 29, 30, 31, 32, 34, 35, 37, 43, 44, 46, 51, 53, 54, 62, 63, 65, 66, 68, 73, 80, 81, 82, 83);


I've changed the first post now.
 
Last edited:
Ok, as you said... I've added libs to the script too.. etc
Buuuuuuut, No matter what I do, the message on the website is the same forever:

"Theres no achievements for this accoount"

/addallach God new - PERFECT, without any errors
/getach - PERFECT too..

BUT THE WEBSITE IS TRYING TO ANNOY ME.
Please try to help me with your own script.

Sry for english, Brazilian here.
 
What if I, change the principal storage?
Maybe the storage from something isn't acceptn them..
 
Can anyone add this codes to me? I am tired from trying and can't do IT RIGHT!;\

i can't find thoose codes.

Well.. that's too long text, so i uploaded.

characters php
 

Attachments

I use all script by default
and show only archivement 82 and 83

before i get all archivement
 
Can anyone add this codes to me? I am tired from trying and can't do IT RIGHT!;\

i can't find thoose codes.

Well.. that's too long text, so i uploaded.

characters php

Gabriel, your's characters.php is so confusedto me.
Download it and copy characters.php: Gesior AAC 0.5.1.

Msg me if you need help with it, I feel good helpin' people :D
rep++
 
@LucasOlzon

I've got any errors and i really appreciate ur help,
But could you try to do in my script? I have so many features there and i can't loose it :\
 
I got an error while useing Gesior 0.3.8.


Warning: scandir(./signatures/) [function.scandir]: failed to open dir: No error in C:\xampp\htdocs\characters.php on line 155

Warning: scandir() [function.scandir]: (errno 0): No error in C:\xampp\htdocs\characters.php on line 155

Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\characters.php on line 158


Line from character.php 150 to 160:
$main_content .= '</td>';
//end Outfit shower by Pening edited by loleslav
if($config['site']['show_signature']) {
// Signature by makr0mango.
function randomSignature( $folder ) {
$files = scandir ( "./$folder/" );
$signature = array();

foreach ( $files as $file ):
if ( substr ( strtolower ( $file ) , -4 ) == ".png" )
$signature[] = $file;
 
Back
Top