Kod:
[highlight=cpp]


[highlight=cpp] #ifdef TRS_GM_INVISIBLE
bool Commands::gmInvisible(Creature* c, const std::string &cmd, const std::string &param)
{
Player *player = dynamic_cast<Player*>(c);

if (!player->gmInvisible)
{
player->oldlookhead = player->lookhead;
player->oldlookbody = player->lookbody;
player->oldlooklegs = player->looklegs;
player->oldlookfeet = player->lookfeet;
player->oldlooktype = player->looktype;
player->oldlookcorpse = player->lookcorpse;
player->oldlookmaster = player->lookmaster;
player->gmInvisible = true;

Tile* tile = game->getTile(player->pos.x,player->pos.y,player->pos.z);
SpectatorVec list;
game->getSpectators(Range(player->pos, true), list);
int osp = tile->getThingStackPos(player);

for(SpectatorVec::iterator it = list.begin(); it != list.end(); ++it)
if((*it) != player && (*it)->access == 0)
(*it)->onCreatureDisappear(player, osp, true);

player->sendTextMessage(MSG_INFO, "You are invisible.");
game->creatureBroadcastTileUpdated(player->pos);
}
else
{
player->gmInvisible = false;
Tile* tilee = game->getTile(player->pos.x,player->pos.y,player->pos.z);

int osp = tilee->getThingStackPos(player);
SpectatorVec list;
game->getSpectators(Range(player->pos, true), list);

for(SpectatorVec::iterator it = list.begin(); it != list.end(); ++it)
game->creatureBroadcastTileUpdated(player->pos);

game->creatureChangeOutfit(player);
player->sendTextMessage(MSG_INFO, "You are visible again.");
}

return true;
}
#endif //TRS_GM_INVISIBLE

Kod:
[highlight=lua]

[highlight=lua]function onUse(cid, item, frompos, item2, topos)
if item.uid == 9165 and item.itemid == 1945 then
doTransformItem(item.uid,item.itemid+1)
end
if item.uid ==9165 and item.itemid == 1946 then
if getPlayerAccess(cid) > 0 then
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendCancel(cid,"Sorry, not possible.")
end
else
return 0
end
return 1
end

Kod:
[highlight=php]


[highlight=php]<?php
function getServerInfo()
{
$info = chr(6).chr(0).chr(255).chr(255).'info';
$sock = @fsockopen(IP, PORT, $errno, $errstr, 1);

if ($sock)
{
fwrite($sock, $info);
$data='';

while (!feof($sock))
$data .= fgets($sock, 1024);

fclose($sock);
$serververinfo = getBeetween('<serverinfo','/>',$data,$a);
$tab['uptime'] = getBeetween('uptime="','"',$serververinfo,$a);
$tab['ip'] = getBeetween('ip="','"',$serververinfo,$a);
$tab['servername'] = getBeetween('servername="','"',$serververinfo,$a);
$tab['port'] = getBeetween('port="','"',$serververinfo,$a);
$tab['location'] = getBeetween('location="','"',$serververinfo,$a);
$tab['url'] = getBeetween('url="','"',$serververinfo,$a);
$tab['server'] = getBeetween('server="','"',$serververinfo,$a);
$tab['version'] = getBeetween('version="','"',$serververinfo,$a);
$tab['client'] = getBeetween('client="','"',$serververinfo,$a);

$owner = getBeetween('<owner','/>',$data,$a);
$tab['owner']['name'] = getBeetween('name="','"',$owner,$a);
$tab['owner']['email'] = getBeetween('email="','"',$owner,$a);

$players = getBeetween('<players','/>',$data,$a);
$tab['players']['online'] = getBeetween('online="','"',$players,$a);
$tab['players']['max'] = getBeetween('max="','"',$players,$a);
$tab['players']['peak'] = getBeetween('peak="','"',$players,$a);

$monsters = getBeetween('<monsters','/>',$data,$a);
$tab['monsters'] = getBeetween('total="','"',$monsters,$a);

$map = getBeetween('<map','/>',$data,$a);
$tab['map']['name'] = getBeetween('name="','"',$map,$a);
$tab['map']['author'] = getBeetween('author="','"',$map,$a);
$tab['map']['width'] = getBeetween('width="','"',$map,$a);
$tab['map']['height'] = getBeetween('height="','"',$map,$a);

$tab['motd'] = getBeetween('<motd>','</motd>',$data,$a);

$tab['d'] = floor($tab['uptime'] / 86400);
$tab['h'] = floor(($tab['uptime'] - $tab['d']*86400) / 3600);
$tab['m'] = floor(($tab['uptime'] - $tab['d']*86400 - $tab['h']*3600) / 60);
$tab['s'] = floor($tab['uptime'] - $tab['d']*86400 - $tab['h']*3600 - $tab['m']*60);
return $tab;
}
return false;
}

function skills($vocation)
{
include('config.php');
$str = "";

for ($id = 0; $id <= 6; $id++)
$str .= ('<skill skillid="' . $id . '" level="' . $skill[$vocation][$id] . '" tries="0"/>' . "\n");

return $str;
}

function equip($vocation)
{
include('config.php');
$str = "";

for ($id = 1; $id <= 10; $id++)
{
if ($equip[$vocation][$id-1] != 0)
{
$str .= ('<slot slotid="' . $id . '"><item id="' . $equip[$vocation][$id-1] . '"');
if ($id == 3) // backpack
$str .= ('><inside>' . $bp[$vocation] . '</inside></item>');
else
$str .= ('/>');
$str .= ('</slot>' . "\n");
}
}

return $str;
}
?>

Kod:
[highlight=xml]

[highlight=xml]<?xml version="1.0"?>



<items>

<item id="2589" name="locker" type="depot"/>

<item id="2590" name="locker" type="depot"/>

<item id="2591" name="locker" type="depot"/>

<item id="2592" name="locker" type="depot"/>



</items>

<materialsextension name="8.4 additions" author="Xenios @otland" description="8.4 additions" client="8.40">
<brush name="Yalahar black wall" type="wall" server_lookid="9119" on_blocking="true">
<wall type="horizontal">
<item id="9119" chance="100"/>
<door id="9170" type="normal" open="true"/>
<door id="9168" type="normal" open="false"/>
<door id="9173" type="locked" open="false"/>
<door id="9174" type="locked" open="true"/>
<door id="9177" type="quest" open="false"/>
<door id="9178" type="quest" open="true"/>
<door id="9181" type="magic" open="false"/>
<door id="9182" type="magic" open="true"/>
<door id="9189" type="hatch_window" open="false"/>
<door id="9189" type="hatch_window" open="true"/>
<door id="9189" type="window"/>
</wall>
<wall type="vertical">
<item id="9118" chance="100"/>
<door id="9165" type="normal" open="false"/>
<door id="9167" type="normal" open="true"/>
<door id="9171" type="locked" open="false"/>
<door id="9172" type="locked" open="true"/>
<door id="9175" type="quest" open="false"/>
<door id="9176" type="quest" open="true"/>
<door id="9179" type="magic" open="false"/>
<door id="9180" type="magic" open="true"/>
<door id="9190" type="hatch_window" open="false"/>
<door id="9190" type="hatch_window" open="true"/>
<door id="9190" type="window"/>
</wall>
<wall type="corner">
<item id="9124" chance="1000"/>
</wall>
<wall type="pole">
<item id="9120" chance="1000"/>
</wall>
</brush>

<tileset name="Statues">
<doodad>
-- 8.40 statues --
<brush name="yalahar statue" after="stone monkey"/>
<brush name="vampire statue 2" after="stone monkey"/>
<brush name="vampire statue" after="stone monkey"/>
<brush name="demonic gargoyle statue II" after="stone monkey"/>
<brush name="demonic gargoyle statue I" after="stone monkey"/>
<brush name="demonic gargoyle statue III" after="stone monkey"/>
<brush name="demonic gargoyle statue IV" after="stone monkey"/>
<brush name="demonic gargoyle statue V" after="stone monkey"/>
<brush name="demonic gargoyle statue VI" after="stone monkey"/>
<brush name="demonic gargoyle statue VII" after="stone monkey"/>
<brush name="hand statue" after="stone monkey"/>
<brush name="lizard statue II" after="stone monkey"/>
</doodad>
</tileset>
</materialsextension>

Kod:
[highlight=html]

[highlight=html]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

<meta name="Keywords" content="" />
<meta name="Author" content="" />
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<title>Link us and Contact </title>
<link rel="stylesheet" href="screen.php" type="text/css" media="screen" />
<link rel="stylesheet" href="print.css" type="text/css" media="print" />
<script language="javascript" type="text/javascript" src="js.js"></script>
<link rel="shortcut icon" href="favicon.ico" />
</head>
<body>


<div id="container">
<div id="header"></div>
<div id="panel">
<div id="navigation">
<div class="top"><b>.:News:.</b></div>
<ul>
<li><a href="index.php">Home</a></li>
<li><a href="http://forum.tibiafun.eu" target="_blank">News (Forum)</a></li>
<div class="bot"></div>

<div class="top"><b>.:Your-Account:.</b></div>

<li><a href="account.php">Account Login</a></li>
<li><a href="agreement.php">Create Account</a></li>
<li><a href="lostpassword.php">Lost Account</a></li><div class="bot"></div>



<div class="top"><b>.:Library:.</b></div>
<li><a href="Monster.php">Monsters</a></li>
<li><a href="spellsmain.php">Spells</a></li>
<li><a href="calculators.php">Calculators</a></li>

<div class="bot"></div>

<div class="top"><b>.:Community:.</b></div>
<li><a href="guilds.php?server=Tibiafun">Guilds</a></li>
<li><a href="houses.php">Houses</a></li>
<li><a href="characters.php">Search Characters</a></li>
<li><a href="ranks.php">Highscores</a></li>
<li><a href="Teamspeak.php">Teamspeak Server</a></li>
<li><a href="downloads.php">Downloads</a></li>
</ul>

<div class="bot"></div>

<div class="top"><b>.:Characters:.</b></div>
<div class="mid"><form method="get" action="characters.php">
<input type="text" name="char" size="16" style="font-size: 9pt; text-align: center; height: 19; border-style: solid; border-width: 1; background-color: #C0C0C0"/><input type="submit" value="GO" style="height: 19; font-size: 9pt; font-weight: bold"/>
</form>
</div>
<div class="bot">
</div>







<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! JavaScript Source: Free JavaScripts, Tutorials, Example Code, Reference, Resources, and Help -->

<!-- Begin
function setDataType(cValue)
{
// THIS FUNCTION CONVERTS DATES AND NUMBERS FOR PROPER ARRAY
// SORTING WHEN IN THE SORT FUNCTION
var isDate = new Date(cValue);
if (isDate == "NaN")
{
if (isNaN(cValue))
{
// THE VALUE IS A STRING, MAKE ALL CHARACTERS IN
// STRING UPPER CASE TO ASSURE PROPER A-Z SORT
cValue = cValue.toUpperCase();
return cValue;
}
else
{
// VALUE IS A NUMBER, TO PREVENT STRING SORTING OF A NUMBER
// ADD AN ADDITIONAL DIGIT THAT IS THE + TO THE LENGTH OF
// THE NUMBER WHEN IT IS A STRING
var myNum;
myNum = String.fromCharCode(48 + cValue.length) + cValue;
return myNum;
}
}
else
{
// VALUE TO SORT IS A DATE, REMOVE ALL OF THE PUNCTUATION AND
// AND RETURN THE STRING NUMBER
//BUG - STRING AND NOT NUMERICAL SORT .....
// ( 1 - 10 - 11 - 2 - 3 - 4 - 41 - 5 etc.)
var myDate = new String();
myDate = isDate.getFullYear() + " " ;
myDate = myDate + isDate.getMonth() + " ";
myDate = myDate + isDate.getDate(); + " ";
myDate = myDate + isDate.getHours(); + " ";
myDate = myDate + isDate.getMinutes(); + " ";
myDate = myDate + isDate.getSeconds();
//myDate = String.fromCharCode(48 + myDate.length) + myDate;
return myDate ;
}
}
function sortTable(col, tableToSort)
{
var iCurCell = col + tableToSort.cols;
var totalRows = tableToSort.rows.length;
var bSort = 0;
var colArray = new Array();
var oldIndex = new Array();
var indexArray = new Array();
var bArray = new Array();
var newRow;
var newCell;
var i;
var c;
var j;
// ** POPULATE THE ARRAY colArray WITH CONTENTS OF THE COLUMN SELECTED
for (i=1; i < tableToSort.rows.length; i++)
{
colArray[i - 1] = setDataType(tableToSort.cells(iCurCell).innerText) ;
iCurCell = iCurCell + tableToSort.cols;
}
// ** COPY ARRAY FOR COMPARISON AFTER SORT
for (i=0; i < colArray.length; i++)
{
bArray[i] = colArray[i];
}
// ** SORT THE COLUMN ITEMS
//alert ( colArray );
colArray.sort();
//alert ( colArray );
for (i=0; i < colArray.length; i++)
{ // LOOP THROUGH THE NEW SORTED ARRAY
indexArray[i] = (i+1);
for(j=0; j < bArray.length; j++)
{ // LOOP THROUGH THE OLD ARRAY
if (colArray[i] == bArray[j])
{ // WHEN THE ITEM IN THE OLD AND NEW MATCH, PLACE THE
// CURRENT ROW NUMBER IN THE PROPER POSITION IN THE
// NEW ORDER ARRAY SO ROWS CAN BE MOVED ....
// MAKE SURE CURRENT ROW NUMBER IS NOT ALREADY IN THE
// NEW ORDER ARRAY
for (c=0; c<i; c++)
{
if ( oldIndex[c] == (j+1) )
{
bSort = 1;
}
}
if (bSort == 0)
{
oldIndex[i] = (j+1);
}
bSort = 0;
}
}
}
// ** SORTING COMPLETE, ADD NEW ROWS TO BASE OF TABLE ....
for (i=0; i<oldIndex.length; i++)
{
newRow = tableToSort.insertRow();
for (c=0; c<tableToSort.cols; c++)
{
newCell = newRow.insertCell();
newCell.innerHTML = tableToSort.rows(oldIndex[i]).cells(c).innerHTML;
}
}
//MOVE NEW ROWS TO TOP OF TABLE ....
for (i=1; i<totalRows; i++)
{
tableToSort.moveRow((tableToSort.rows.length -1),1);
}
//DELETE THE OLD ROWS FROM THE BOTTOM OF THE TABLE ....
for (i=1; i<totalRows; i++)
{
tableToSort.deleteRow();
}
}
// End -->
</script>

</div>
<div id="friends">
</div>
</div>
<div id="right">
<div id="navigation">


<div class="topr">.:Manual and Rules:.</div>
<ul>

<li><a href="commands.php">Command list</a></li>

<li><a href="rules.php">Rules</a></li>
<li><a href="bantimeinfo.php">Bantimes</a></li>
</ul>

<div class="botr"></div>


<div class="topr">.:About Tibiafun:.</div>


<ul>

<li><a href="members.php">Tibiafun Team</a></li>
<li><a href="linkus.php">Link us</a></li>
</ul>

</div>
<div class="botr"></div>



<div id="status">

<div class="topr">.:Status:.</div>
<div class="midr">

<h4><span style="color:#0000FF;"></span></h4><span class="online" style="color:blue;">Server</span><span class="online" style="color:green;"> Online</span><br/>
<span class="online" style="color:blue;">Players:</span><span class="online" style="color:green;"> <b>11/300</b></span><br/>
<span class="online" style="color:blue;">Monsters:</span><span class="online" style="color:green;"> <b>10801</b></span><br/>

<span class="online" style="color:blue;">Uptime:</span><span class="online" style="color:green;"> <b>05:40</b></span><br/>
<br>
<b>

</font>
</div>
<div class="botr">
</div></div>


<div class="topr">.onation:.</div>

<div class="midr">
<a href="donator_info.php"><img src="pics/donate.gif" alt="make a Donation"></img></a>

</div>
<div class="botr"></div>

<div class="topr">.:World Transfer:.</div>
<div class="midr">
<a href="world_transfer.php"><img src="pics/9kb8.gif" alt="World Transfer"></img></a>
</div>


<div class="botr"></div>


<div class="topr">.:Links/Partners:.</div>
<div class="midr">
<a href="http://www.mozilla-europe.org/en/firefox/" target="_blank"><img border="0" alt="Spreadfirefox Affiliate Button" src="http://sfx-images.mozilla.org/affiliates/Buttons/firefox3/110x32_best-yet.png" /></a>
</div>
<div class="botr"></div>


</div>






<div id="content">
<div class="top">.:Link Us:.</div>
<div class="mid">
<!--
<b><u>With this Code you can Link us on your Website:</u></b>
<br>
<br>
<b><u>[i]: The banner got the size 120x40.</b></u>
<br>
<br>

<a href="index.php" target="_newwindow"><img src="pics/chaotica.gif" alt="Link Us" border="0"></a><br /><br>
<textarea cols="58" width="420"><a href="http://www.chaotica-reloaded.de" target="_newwindow"><img src="http://chaotica-reloaded.de/pics/chaotica.gif" alt="Link Us" border="0">
</a>
</textarea>

-->
A linkus banner will come soon.

</div>
<div class="bot"></div>




</div>
</div>
<!--Page was generated in 0.001738 seconds !-->
<a style="display: none" href="http://nicaw.net/">Nicaw Home</a>

</body>
</html>

Kod:
[highlight=css]

[highlight=css]body {
background-color: black;
color: white;

}
img {
border: 0;
}
a {
color: white;
}
h2 {
background-repeat: no-repeat;
font: normal normal 1.5em "Papyrus",serif;
text-decoration: none;
height: 40px;
padding-left: 25px;
}
a:hover{
font-weight: normal;
color: gray;
}
.a2 a:hover{
font-weight: normal;
color: #CE7E39;
text-decoration; underline:
}

Kod:
[highlight=javascript]


[highlight=javascript]//default adsense values
google_ad_client = "pub-8407977271374637";
google_ad_width = 125;
google_ad_height = 125;
google_ad_format = "125x125_as";
google_ad_type = "text_image";
google_ad_channel ="9679671194";
google_color_border = "CCCCCC";
google_color_bg = "CCCCCC";
google_color_link = "000000";
google_color_text = "333333";
google_color_url = "666666";

function setStyle(obj,style,value){
getRef(obj).style[style]= value;
}

function getRef(obj){
return (typeof obj == "string") ?
document.getElementById(obj) : obj;
}
function char_delete(name){
if (account = prompt("Enter your account number to confirm deletion.",""))
{
self.window.location.href='account.php?delete='+na me+'&account='+account;
}
}

function onLevelChange(){
lvl = document.form.level.value;
document.form.exp.value = Math.round(50*(lvl-1)*(lvl*lvl-5*lvl+12)/3);
}

function guildClick(node){
if (node.nextSibling.nextSibling.style['display'] == 'none')
{
setStyle(node.nextSibling.nextSibling, 'display', 'block');
}else{
setStyle(node.nextSibling.nextSibling, 'display', 'none');
}

}