AOWiki:Sandbox

From AOWiki

Jump to: navigation, search

Contents

[edit] Random Tables

Second header
upper left Center

right side

lower left lower middle
Top Right other right
Center right
mew mewmew

[edit] IconLinks

33154.gif Icon+Auno:
Icon+Auno:
Icon+Jayde:

[edit] Test Low-ID zu High-ID

Soulfragment QL 190 von Low-ID
Soulfragment QL 190 von Low-ID


= = als Text

Bild:plus.png Bild:plus.png Bild:plus.png Bild:plus.png Bild:plus.png Bild:plus.png Bild:plus.png Bild:gleich.png

[edit] Tables with colors

background is grey
background is yellow
background is green
background is red
background is blue

[edit] Code Syntaxhighlighting

 
function process_buddy_queue() {
	global $dbw,$aoc, $aob;
	$now=getmicrotime();
	$delay = '3'; // Add 1 Buddy all 3 Seconds
	if (count($aob['queue']['buddy']) > 0 AND $now-$aob['queueinfo']['buddy']['time'] >= $delay) { 
		$e = array_shift($aob['queue']['buddy']);
		if ($e['type'] == 'add') {
			if(!$aoc->buddy_exists($e['charname'])) {
				//echo "Buddy Added: {$e['charname']}\n";
				$aob['queueinfo']['buddy']['time'] = $now;		
				$aoc->buddy_add($e['charname']);
			}
		}
		elseif ($e['type'] == 'del') {
			if($aoc->buddy_exists($e['charname'])) {
				//echo "Buddy Deleted: {$e['charname']}\n";
				$aob['queueinfo']['buddy']['time'] = $now;		
				$aoc->buddy_remove($e['charname']);
			}
		}
	}
}

[edit] Bulleted List

  • 1
  • 2
  • 3
  • 4

[edit] HTML test

<script>

Personal tools
Overview