<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://otos.pl/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel>
        <title>Otos otspub</title>
        <description></description>
        <link>http://otos.pl/</link>
        <lastBuildDate>Wed, 29 Apr 2026 10:37:00 +0200</lastBuildDate>
        <generator>FeedCreator 1.7.2-ppt DokuWiki</generator>
        <image>
            <url>http://otos.pl/lib/tpl/default/images/favicon.ico</url>
            <title>Otos</title>
            <link>http://otos.pl/</link>
        </image>
        <item>
            <title>otspub:advance_-_specjalny_efekt</title>
            <link>http://otos.pl/doku.php/otspub/advance_-_specjalny_efekt?rev=1275487684</link>
            <description>
&lt;p&gt;
&lt;strong&gt;Autor:&lt;/strong&gt; GarQet
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;Licencja:&lt;/strong&gt; Nie znana
&lt;/p&gt;

&lt;p&gt;
YourOTS\data\lib\050-function.lua | Na końcu dodajemy to:
&lt;/p&gt;
&lt;pre class=&quot;code file functions.lua&quot;&gt;czekaj = coroutine.yield
function czekanie(c)
    if(coroutine.status(c) ~= 'dead') then
        local _, czas = coroutine.resume(c)
        addEvent(czekanie, czas, c)
    end
end
function zacznijCzekac(f)
    if(type(f) == 'function') then
        local c = coroutine.create(f)
        czekanie(c)
    end
end
function timeString(timeDiff)
    local dateFormat = { 
        {&amp;quot;day&amp;quot;, timeDiff / 60 / 60 / 24},
        {&amp;quot;hour&amp;quot;, timeDiff / 60 / 60 % 24},
        {&amp;quot;minute&amp;quot;, timeDiff / 60 % 60},
        {&amp;quot;second&amp;quot;, timeDiff % 60}
    }
    local out = {}
    for k, t in ipairs(dateFormat) do
        local v = math.floor(t[2])
        if(v &amp;gt; 0) then
            table.insert(out, (k &amp;lt; #dateFormat and (#out &amp;gt; 0 and ', ' or '') or ' and ') .. v .. ' ' .. t[1] .. (v ~= 1 and 's' or ''))
        end
    end
    return table.concat(out)
end&lt;/pre&gt;

&lt;p&gt;
YourOTS\data\creaturescripts\creaturescripts.xml
&lt;/p&gt;
&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;event&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;advance&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;advance&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;advance.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
YourOTS\data\creaturescripts\scripts\login.lua
Po:
&lt;/p&gt;
&lt;pre class=&quot;code file lua&quot;&gt;	registerCreatureEvent&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;ReportBug&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Dodajemy to:
&lt;/p&gt;
&lt;pre class=&quot;code file lua&quot;&gt;	registerCreatureEvent&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;advance&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
YourOTS\data\creaturescripts\scripts\advance.lua
&lt;/p&gt;
&lt;pre class=&quot;code file advance.lua&quot;&gt;function onAdvance(cid, skill, oldlevel, newlevel)
	local pozycja = getCreaturePosition(cid)
            zacznijCzekac(function()
        if skill == SKILL__MAGLEVEL then
		doPlayerSay(cid, &amp;quot;[MAGICLEVEL UP!]&amp;quot;, TALKTYPE_ORANGE_1)
			for i = 1, 1  do
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y, z = pozycja.z}, 31)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y, z = pozycja.z}, CONST_ME_MORTAREA)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y - 2, z = pozycja.z}, 31)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_MORTAREA)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y - 2, z = pozycja.z}, 31)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_MORTAREA)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y - 2, z = pozycja.z}, 31)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_MORTAREA)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y, z = pozycja.z}, 31)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y, z = pozycja.z}, CONST_ME_MORTAREA)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y + 2, z = pozycja.z}, 31)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_MORTAREA)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y + 2, z = pozycja.z}, 31)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_MORTAREA)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y + 2, z = pozycja.z}, 31)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_MORTAREA)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 1, y = pozycja.y, z = pozycja.z}, 31)
		doSendMagicEffect({x = pozycja.x + 1, y = pozycja.y, z = pozycja.z}, CONST_ME_MORTAREA)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y - 1, z = pozycja.z}, 31)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y - 1, z = pozycja.z}, CONST_ME_MORTAREA)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 1, y = pozycja.y, z = pozycja.z}, 31)
		doSendMagicEffect({x = pozycja.x - 1, y = pozycja.y, z = pozycja.z}, CONST_ME_MORTAREA)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y + 1, z = pozycja.z}, 31)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y + 1, z = pozycja.z}, CONST_ME_MORTAREA)
		end
        elseif skill == SKILL__LEVEL then
                doCreatureAddHealth(cid, getCreatureMaxHealth(cid))
                doCreatureAddMana(cid, getCreatureMaxMana(cid))
		doPlayerSay(cid, &amp;quot;[LEVEL UP!]&amp;quot;, TALKTYPE_ORANGE_1)
			for i = 1, 1  do
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y, z = pozycja.z}, 6)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y, z = pozycja.z}, CONST_ME_HEARTS)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y - 2, z = pozycja.z}, 6)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_HEARTS)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y - 2, z = pozycja.z}, 6)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_HEARTS)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y - 2, z = pozycja.z}, 6)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_HEARTS)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y, z = pozycja.z}, 6)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y, z = pozycja.z}, CONST_ME_HEARTS)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y + 2, z = pozycja.z}, 6)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_HEARTS)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y + 2, z = pozycja.z}, 6)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_HEARTS)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y + 2, z = pozycja.z}, 6)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_HEARTS)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 1, y = pozycja.y, z = pozycja.z}, 6)
		doSendMagicEffect({x = pozycja.x + 1, y = pozycja.y, z = pozycja.z}, CONST_ME_HEARTS)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y - 1, z = pozycja.z}, 6)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y - 1, z = pozycja.z}, CONST_ME_HEARTS)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 1, y = pozycja.y, z = pozycja.z}, 6)
		doSendMagicEffect({x = pozycja.x - 1, y = pozycja.y, z = pozycja.z}, CONST_ME_HEARTS)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y + 1, z = pozycja.z}, 6)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y + 1, z = pozycja.z}, CONST_ME_HEARTS)
		end
        elseif skill == SKILL_CLUB then
		doPlayerSay(cid, &amp;quot;[CLUB FIGHTING UP!]&amp;quot;, TALKTYPE_ORANGE_1)
			for i = 1, 1  do
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y, z = pozycja.z}, 26)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y - 2, z = pozycja.z}, 26)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y - 2, z = pozycja.z}, 26)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y - 2, z = pozycja.z}, 26)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y, z = pozycja.z}, 26)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y + 2, z = pozycja.z}, 26)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y + 2, z = pozycja.z}, 26)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y + 2, z = pozycja.z}, 26)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 1, y = pozycja.y, z = pozycja.z}, 26)
		doSendMagicEffect({x = pozycja.x + 1, y = pozycja.y, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y - 1, z = pozycja.z}, 26)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y - 1, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 1, y = pozycja.y, z = pozycja.z}, 26)
		doSendMagicEffect({x = pozycja.x - 1, y = pozycja.y, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y + 1, z = pozycja.z}, 26)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y + 1, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		end
elseif skill == SKILL_SWORD then
		doPlayerSay(cid, &amp;quot;[SWORD FIGHTING UP!]&amp;quot;, TALKTYPE_ORANGE_1)
			for i = 1, 1  do
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y, z = pozycja.z}, 24)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y - 2, z = pozycja.z}, 24)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y - 2, z = pozycja.z}, 24)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y - 2, z = pozycja.z}, 24)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y, z = pozycja.z}, 24)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y + 2, z = pozycja.z}, 24)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y + 2, z = pozycja.z}, 24)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y + 2, z = pozycja.z}, 24)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 1, y = pozycja.y, z = pozycja.z}, 24)
		doSendMagicEffect({x = pozycja.x + 1, y = pozycja.y, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y - 1, z = pozycja.z}, 24)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y - 1, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 1, y = pozycja.y, z = pozycja.z}, 24)
		doSendMagicEffect({x = pozycja.x - 1, y = pozycja.y, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y + 1, z = pozycja.z}, 24)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y + 1, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		end
        elseif skill == SKILL_AXE then
		doPlayerSay(cid, &amp;quot;[AXE FIGHTING UP!]&amp;quot;, TALKTYPE_ORANGE_1)
			for i = 1, 1  do
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y, z = pozycja.z}, 25)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y - 2, z = pozycja.z}, 25)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y - 2, z = pozycja.z}, 25)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y - 2, z = pozycja.z}, 25)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y, z = pozycja.z}, 25)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y + 2, z = pozycja.z}, 25)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y + 2, z = pozycja.z}, 25)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y + 2, z = pozycja.z}, 25)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 1, y = pozycja.y, z = pozycja.z}, 25)
		doSendMagicEffect({x = pozycja.x + 1, y = pozycja.y, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y - 1, z = pozycja.z}, 25)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y - 1, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 1, y = pozycja.y, z = pozycja.z}, 25)
		doSendMagicEffect({x = pozycja.x - 1, y = pozycja.y, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y + 1, z = pozycja.z}, 25)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y + 1, z = pozycja.z}, CONST_ME_GROUNDSHAKER)
		end
        elseif skill == SKILL_DISTANCE then
		doPlayerSay(cid, &amp;quot;[DISTANCE FIGHTING UP!]&amp;quot;, TALKTYPE_ORANGE_1)
			for i = 1, 1  do
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y, z = pozycja.z}, 30)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y, z = pozycja.z}, CONST_ME_HOLYAREA)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y - 2, z = pozycja.z}, 30)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_HOLYAREA)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y - 2, z = pozycja.z}, 30)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_HOLYAREA)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y - 2, z = pozycja.z}, 30)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_HOLYAREA)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y, z = pozycja.z}, 30)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y, z = pozycja.z}, CONST_ME_HOLYAREA)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y + 2, z = pozycja.z}, 30)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_HOLYAREA)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y + 2, z = pozycja.z}, 30)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_HOLYAREA)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y + 2, z = pozycja.z}, 30)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_HOLYAREA)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 1, y = pozycja.y, z = pozycja.z}, 30)
		doSendMagicEffect({x = pozycja.x + 1, y = pozycja.y, z = pozycja.z}, CONST_ME_HOLYAREA)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y - 1, z = pozycja.z}, 30)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y - 1, z = pozycja.z}, CONST_ME_HOLYAREA)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 1, y = pozycja.y, z = pozycja.z}, 30)
		doSendMagicEffect({x = pozycja.x - 1, y = pozycja.y, z = pozycja.z}, CONST_ME_HOLYAREA)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y + 1, z = pozycja.z}, 30)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y + 1, z = pozycja.z}, CONST_ME_HOLYAREA)
		end
        elseif skill == SKILL_FIST then
		doPlayerSay(cid, &amp;quot;[FIST FIGHTING UP!]&amp;quot;, TALKTYPE_ORANGE_1)
			for i = 1, 1  do
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y, z = pozycja.z}, 40)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y, z = pozycja.z}, CONST_ME_POFF)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y - 2, z = pozycja.z}, 40)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_POFF)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y - 2, z = pozycja.z}, 40)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_POFF)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y - 2, z = pozycja.z}, 40)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_POFF)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y, z = pozycja.z}, 40)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y, z = pozycja.z}, CONST_ME_POFF)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y + 2, z = pozycja.z}, 40)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_POFF)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y + 2, z = pozycja.z}, 40)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_POFF)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y + 2, z = pozycja.z}, 40)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_POFF)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 1, y = pozycja.y, z = pozycja.z}, 40)
		doSendMagicEffect({x = pozycja.x + 1, y = pozycja.y, z = pozycja.z}, CONST_ME_POFF)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y - 1, z = pozycja.z}, 40)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y - 1, z = pozycja.z}, CONST_ME_POFF)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 1, y = pozycja.y, z = pozycja.z}, 40)
		doSendMagicEffect({x = pozycja.x - 1, y = pozycja.y, z = pozycja.z}, CONST_ME_POFF)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y + 1, z = pozycja.z}, 40)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y + 1, z = pozycja.z}, CONST_ME_POFF)
		end
        elseif skill == SKILL_SHIELD then
		doPlayerSay(cid, &amp;quot;[SHIELD UP!]&amp;quot;, TALKTYPE_ORANGE_1)
			for i = 1, 1  do
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y, z = pozycja.z}, 11)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y, z = pozycja.z}, CONST_ME_BLOCKHIT)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y - 2, z = pozycja.z}, 11)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_BLOCKHIT)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y - 2, z = pozycja.z}, 11)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_BLOCKHIT)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y - 2, z = pozycja.z}, 11)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_BLOCKHIT)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y, z = pozycja.z}, 11)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y, z = pozycja.z}, CONST_ME_BLOCKHIT)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y + 2, z = pozycja.z}, 11)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_BLOCKHIT)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y + 2, z = pozycja.z}, 11)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_BLOCKHIT)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y + 2, z = pozycja.z}, 11)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_BLOCKHIT)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 1, y = pozycja.y, z = pozycja.z}, 11)
		doSendMagicEffect({x = pozycja.x + 1, y = pozycja.y, z = pozycja.z}, CONST_ME_BLOCKHIT)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y - 1, z = pozycja.z}, 11)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y - 1, z = pozycja.z}, CONST_ME_BLOCKHIT)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 1, y = pozycja.y, z = pozycja.z}, 11)
		doSendMagicEffect({x = pozycja.x - 1, y = pozycja.y, z = pozycja.z}, CONST_ME_BLOCKHIT)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y + 1, z = pozycja.z}, 11)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y + 1, z = pozycja.z}, CONST_ME_BLOCKHIT)
		end
        elseif skill == SKILL_FISHING then
		doPlayerSay(cid, &amp;quot;[FISHING UP!]&amp;quot;, TALKTYPE_ORANGE_1)
			for i = 1, 1  do
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y, z = pozycja.z}, 35)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y, z = pozycja.z}, CONST_ME_WATERSPLASH)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y - 2, z = pozycja.z}, 35)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_WATERSPLASH)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y - 2, z = pozycja.z}, 35)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_WATERSPLASH)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y - 2, z = pozycja.z}, 35)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y - 2, z = pozycja.z}, CONST_ME_WATERSPLASH)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y, z = pozycja.z}, 35)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y, z = pozycja.z}, CONST_ME_WATERSPLASH)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 2, y = pozycja.y + 2, z = pozycja.z}, 35)
		doSendMagicEffect({x = pozycja.x - 2, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_WATERSPLASH)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y + 2, z = pozycja.z}, 35)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_WATERSPLASH)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 2, y = pozycja.y + 2, z = pozycja.z}, 35)
		doSendMagicEffect({x = pozycja.x + 2, y = pozycja.y + 2, z = pozycja.z}, CONST_ME_WATERSPLASH)
		czekaj(100)
		doSendDistanceShoot(pozycja, {x = pozycja.x + 1, y = pozycja.y, z = pozycja.z}, 35)
		doSendMagicEffect({x = pozycja.x + 1, y = pozycja.y, z = pozycja.z}, CONST_ME_WATERSPLASH)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y - 1, z = pozycja.z}, 35)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y - 1, z = pozycja.z}, CONST_ME_WATERSPLASH)
		doSendDistanceShoot(pozycja, {x = pozycja.x - 1, y = pozycja.y, z = pozycja.z}, 35)
		doSendMagicEffect({x = pozycja.x - 1, y = pozycja.y, z = pozycja.z}, CONST_ME_WATERSPLASH)
		doSendDistanceShoot(pozycja, {x = pozycja.x, y = pozycja.y + 1, z = pozycja.z}, 35)
		doSendMagicEffect({x = pozycja.x, y = pozycja.y + 1, z = pozycja.z}, CONST_ME_WATERSPLASH)
		end
        end
	end)
return true
end&lt;/pre&gt;
</description>
        <category>otspub</category>
            <pubDate>Wed, 02 Jun 2010 16:08:04 +0200</pubDate>
        </item>
        <item>
            <title>otspub:animacja_gdy_awansujesz_by_kielb</title>
            <link>http://otos.pl/doku.php/otspub/animacja_gdy_awansujesz_by_kielb?rev=1272641259</link>
            <description>
&lt;p&gt;
Autor: kielb
&lt;/p&gt;

&lt;p&gt;
Licencja: Byle by nie usuwać autora :)
&lt;/p&gt;

&lt;p&gt;
Łoł! Napisałem swój pierwszy skrypt jego zadaniem jest dodanie graczowi cale hp oraz mane + super efekty gdy awansuje w jednym z możliwość swej postaci!
&lt;/p&gt;

&lt;p&gt;
Teraz do roboty!
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt; Część LUA &lt;/strong&gt;
&lt;/p&gt;

&lt;p&gt;
Wchodzimy do katalogu /data/creaturescripts/scripts/ i tam dodajemy plik advance.lua jego zawartość to :
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/animacja_gdy_awansujesz_by_kielb?do=export_code&amp;amp;codeblock=0&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;advance.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;    &lt;span class=&quot;co1&quot;&gt;-- Autor: kielb&lt;/span&gt;
&amp;nbsp;
    &lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onAdvance&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, skill, oldlevel, newlevel&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
                    &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; pPos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;  getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
                    &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; skill &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; SKILL__MAGLEVEL &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                            doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_EVENT_ADVANCE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Gratulacje! Awansowales w Magic Levelu&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                            doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;pPos, &lt;span class=&quot;nu0&quot;&gt;40&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                            doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                            doCreatureAddMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                    &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; skill &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; SKILL_SHIELD &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                            doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_EVENT_ADVANCE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Gratulacje! Awansowales w Obronie&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                            doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;pPos, &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                    &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; skill &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; SKILL_AXE &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                            doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_EVENT_ADVANCE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Gratulacje! Awansowales w walce Toporami&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                            doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;pPos, &lt;span class=&quot;nu0&quot;&gt;42&lt;/span&gt;
                    &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; skill &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; SKILL_SWORD &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                            doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_EVENT_ADVANCE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Gratulacje! Awansowales w walce Mieczami&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                            doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;pPos, &lt;span class=&quot;nu0&quot;&gt;50&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                    &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; skill &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; SKILL_CLUB &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                            doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_EVENT_ADVANCE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Gratulacje! Awansowales w walce Maczugami&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                            doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;pPos, &lt;span class=&quot;nu0&quot;&gt;30&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;   
                    &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; skill &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; SKILL_DISTANCE &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                            doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_EVENT_ADVANCE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Gratulacje! Awansowales w walce na Dystans&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                            doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;pPos, &lt;span class=&quot;nu0&quot;&gt;29&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                    &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; skill &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; SKILL__LEVEL &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                            doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_EVENT_ADVANCE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Gratulacje! Awansowales w Levelu!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                            doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;pPos, &lt;span class=&quot;nu0&quot;&gt;28&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;     
                    &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
                    &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
W kolejnym kroku wchodzimy do pliku login.lua i dodajemy linijkę :
&lt;/p&gt;
&lt;pre class=&quot;code file lua&quot;&gt;registerCreatureEvent&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Advance&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Następnie w katalogu /data/creaturescripts/creaturescripts.xml/
&lt;/p&gt;
&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;event&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;advance&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;Advance&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;advance.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Koniec!
&lt;/p&gt;

&lt;h5&gt;&lt;a name=&quot;skrypt_jest_wpelni_sprawny_wszystko_dziala&quot; id=&quot;skrypt_jest_wpelni_sprawny_wszystko_dziala&quot;&gt;Skrypt jest wpełni sprawny ! Wszystko działa!&lt;/a&gt;&lt;/h5&gt;
&lt;div class=&quot;level5&quot;&gt;

&lt;/div&gt;
</description>
        <category>otspub</category>
            <pubDate>Fri, 30 Apr 2010 17:27:39 +0200</pubDate>
        </item>
        <item>
            <title>otspub:antibot_system</title>
            <link>http://otos.pl/doku.php/otspub/antibot_system?rev=1302718050</link>
            <description>
&lt;p&gt;
&lt;strong&gt;Autor:&lt;/strong&gt; &lt;em&gt;Karpio&lt;/em&gt;&lt;br/&gt;

&lt;strong&gt;Licencja:&lt;/strong&gt; Rób ta co chcecie, tylko podajcie prawdziwego autora!!!&lt;br/&gt;

&lt;strong&gt;Testowane na:&lt;/strong&gt; &lt;em&gt;The Forgotten Server 0.4_DEV.r4086&lt;/em&gt;&lt;br/&gt;

&lt;/p&gt;

&lt;p&gt;
Wchodzimy do data/talkactions/scripts i tworzymy plik antibot.lua:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/antibot_system?do=export_code&amp;amp;codeblock=0&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;antibot.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;co1&quot;&gt;-- Anti Bot System by Karpio&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; TIME_TO_ANSWER &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;14&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;60&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1000&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;-- 14 min&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; NEXT_CHECK &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;30&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;60&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;-- 30 min&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; BLOCK_CHECK &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;60&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;60&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;-- 60 min&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; ENABLE_BANISHMENT &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;-- set to false if you don't want to banish player&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; BANISHMENT_TIME &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;24&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;60&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;60&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;-- 3 days&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; KICK_POSITION &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;552&lt;/span&gt;, y &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;472&lt;/span&gt;, z &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;-- Oxen temple&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; KICK_PLAYER &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;-- kick player after check&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; CHECK_FIELDS &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;-- check if player is in pz, nonlogout zone, etc&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; LOG_CHECKS &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;-- save information about checking in log file&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; CHECK_DISTANCE &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;-- distance between player and target&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; USE870 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;-- set to false if we don't use client 8.7+&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; getDistanceBetween&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;fromPosition, toPosition&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; distance &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;math.floor&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;math.sqrt&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;fromPosition.x-toPosition.x&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;^&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt; + &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;fromPosition.y-toPosition.y&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;^&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; distance
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; banPlayer&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;not&lt;/span&gt; isPlayer&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;botCode&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ENABLE_BANISHMENT&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
		doAddAccountBanishment&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerAccountId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;os.time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + BANISHMENT_TIME, &lt;span class=&quot;nu0&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
		doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, CONST_ME_POFF&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		doTeleportThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, KICK_POSITION&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, CONST_ME_TELEPORT&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;KICK_PLAYER &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; isPlayer&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; doRemoveCreature&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; send&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, target&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;LOG_CHECKS&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; file &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;io.open&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getDataDir&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot;/logs/bots/AntiBot.log&amp;quot;&lt;/span&gt;, &lt;span class=&quot;st0&quot;&gt;&amp;quot;a+&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		file:&lt;span class=&quot;kw1&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;[&amp;quot;&lt;/span&gt;..&lt;span class=&quot;kw1&quot;&gt;os.date&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;%c&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot;] &amp;quot;&lt;/span&gt;..getCreatureName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;target&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot; checked by &amp;quot;&lt;/span&gt;..getCreatureName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		file:close&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;USE870&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
		doPlayerSetCooldown&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;target, &lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;, TIME_TO_ANSWER, &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		doPlayerSetExhaustion&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;target, &lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;, TIME_TO_ANSWER, &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
	setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;botNextCheck&amp;quot;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;os.time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + NEXT_CHECK&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;target, &lt;span class=&quot;st0&quot;&gt;&amp;quot;botCode&amp;quot;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;math.min&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerLevel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;,getPlayerLevel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;target&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1000&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.max&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerLevel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;target&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, getPlayerLevel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;target, &lt;span class=&quot;st0&quot;&gt;&amp;quot;botBlockCheck&amp;quot;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;os.time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + BLOCK_CHECK&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	addEvent&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;banPlayer, TIME_TO_ANSWER, target&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;target, MESSAGE_STATUS_WARNING, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Someone check you as bot. Please write !check &amp;quot;&lt;/span&gt;..getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;target, &lt;span class=&quot;st0&quot;&gt;&amp;quot;botCode&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot;, if you don't want to be &amp;quot;&lt;/span&gt;..&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ENABLE_BANISHMENT &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;banned&amp;quot;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;kicked&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot;.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_INFO_DESCR, getCreatureName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;target&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot; will be checked by an automated antibot system.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, words, param, channel&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;param &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Command requires param.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;param&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
		param &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;param&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;botCode&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;No one will check you.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;param ~&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;botCode&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Code is not corrected. You have only &amp;quot;&lt;/span&gt;..&lt;span class=&quot;kw1&quot;&gt;unpack&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;string&lt;/span&gt;.timediff&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;os.time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;botCode&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot; to write code.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
		setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;botCode&amp;quot;&lt;/span&gt;, -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;USE870&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
			doPlayerSetCooldown&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			doPlayerSetExhaustion&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
		doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_INFO_DESCR, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Code is correct.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_EVENT_ADVANCE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Have a good game.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; target &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerByNameWildcard&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;param&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;not&lt;/span&gt; target&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Player not found.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;botNextCheck&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;os.time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;You are exhausted.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;target, &lt;span class=&quot;st0&quot;&gt;&amp;quot;botBlockCheck&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;os.time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;This player is protected.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;CHECK_FIELDS&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getTileInfo&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;.protection&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;You can not check players from protection zone.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getTileInfo&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;.nologout&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;You can not check players from nologout zone.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getTileInfo&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;target&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;.protection&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;You can not check players who are in protection zone.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getTileInfo&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;target&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;.nologout&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;You can not check players who are in nologout zone.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;CHECK_DISTANCE&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getDistanceBetween&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;target&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; CHECK_DISTANCE&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;This player is too far away.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
		send&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, target&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Wchodzimy do data/talkactions/talkactions.xml i doklejamy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/antibot_system?do=export_code&amp;amp;codeblock=1&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_xml&quot;&gt;talkactions.xml&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;talkaction&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;words&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;!check&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;antibot.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Restartujemy OTS i już chodzi ^^
&lt;/p&gt;

&lt;p&gt;
Użycie:
Aby sprawdzić: !check nick
Aby odpowiedzieć: !check code
&lt;/p&gt;

&lt;p&gt;
Reszta w konfiguracji na górze skryptu ^^
&lt;/p&gt;
</description>
        <category>otspub</category>
            <pubDate>Wed, 13 Apr 2011 20:07:30 +0200</pubDate>
        </item>
        <item>
            <title>otspub:auto_broardcast_by_idk_edited_by_kielb_lua</title>
            <link>http://otos.pl/doku.php/otspub/auto_broardcast_by_idk_edited_by_kielb_lua?rev=1272449333</link>
            <description>
&lt;p&gt;
Otóż ten skrypt polega na wysyłaniu wiadomości na serwer w kolorze czerwonym.Wysyła on automatycznie jedna z kilku wiadomości.
&lt;/p&gt;

&lt;p&gt;
Autor: Nieznany.
&lt;/p&gt;

&lt;p&gt;
Licencja: Nie ma.
&lt;/p&gt;

&lt;p&gt;
Edit: &lt;strong&gt;kielb&lt;/strong&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;Instalacja&lt;/strong&gt;
Wchodzimy do katalogu data/globalevents/globalevents.xml
&lt;/p&gt;
&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;globalevent&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;reklama&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;interval&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;300&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;broadcast.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
300 - Czas w sekundach
&lt;/p&gt;

&lt;p&gt;
Następnie wchodzimy do katalogu /data/globalevents/scripts/  i tworzymy katalog broadcast.lua
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/auto_broardcast_by_idk_edited_by_kielb_lua?do=export_code&amp;amp;codeblock=1&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;broadcast.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;         &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; text &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
        &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;miejsce na tekst&amp;quot;&lt;/span&gt;,
        &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;miejsce na tekst&amp;quot;&lt;/span&gt;,
        &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onThink&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;interval, lastExecution&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
doBroadcastMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Reklama: &amp;quot;&lt;/span&gt;..text&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; TRUE
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
miejsce na tekst - Wiadomość wysyłana na serwer
2 - Ile Wiadomości Losowych
Aby dodać nową wiadomość  do tabeli “text” musisz dodać linijkę:
&lt;/p&gt;
&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;miejsce na tekst&amp;quot;&lt;/span&gt;,&lt;/pre&gt;

&lt;p&gt;
gdzie 2 to numer wiadomości.
&lt;/p&gt;

&lt;p&gt;
Myślę ze wyjaśniłem to dość jasno.
Skrypt Testowany na TFSie
&lt;/p&gt;
</description>
        <category>otspub</category>
            <pubDate>Wed, 28 Apr 2010 12:08:53 +0200</pubDate>
        </item>
        <item>
            <title>otspub:automatyczne_zapisywanie_postaci_gry_awansuje_by_rodo</title>
            <link>http://otos.pl/doku.php/otspub/automatyczne_zapisywanie_postaci_gry_awansuje_by_rodo?rev=1272475359</link>
            <description>
&lt;p&gt;
Autor: Rodo  &lt;a href=&quot;http://otland.net/f82/auto-save-character-excelent-if-your-server-crash-75892/&quot; class=&quot;urlextern&quot; title=&quot;http://otland.net/f82/auto-save-character-excelent-if-your-server-crash-75892/&quot;  rel=&quot;nofollow&quot;&gt;klik&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
Licencja: Brak
&lt;/p&gt;

&lt;p&gt;
Jest to mały skrypt mający na celu zapisywanie postaci gdy awansuje.
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;Część LUA&lt;/strong&gt;
&lt;/p&gt;

&lt;p&gt;
Wchodzimy do katalogu /data/globalevents/globalevents.xml i doklejamy linijkę:
&lt;/p&gt;
&lt;pre class=&quot;code file lua&quot;&gt;    &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;event &lt;span class=&quot;kw1&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;advance&amp;quot;&lt;/span&gt; name&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;advance&amp;quot;&lt;/span&gt; event&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; value&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;advance.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&amp;gt;&lt;/span&gt;
&amp;nbsp;&lt;/pre&gt;

&lt;p&gt;
Nastepnie przechodzimy do /data/globalevents/scripts/ i tam tworzymy plik advance.lua a jego zawartość to:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/automatyczne_zapisywanie_postaci_gry_awansuje_by_rodo?do=export_code&amp;amp;codeblock=1&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;advance.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;  &lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onAdvance&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, skill, oldlevel, newlevel&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doPlayerSave&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt; &lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Pamiętaj aby dodać również tą linijkę do login.lua :
&lt;/p&gt;
&lt;pre class=&quot;code file lua&quot;&gt;registerCreatureEvent&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;advance&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Gotowe!
&lt;/p&gt;
</description>
        <category>otspub</category>
            <pubDate>Wed, 28 Apr 2010 19:22:39 +0200</pubDate>
        </item>
        <item>
            <title>otspub:banowanie_gracza_na_okreslony_czas</title>
            <link>http://otos.pl/doku.php/otspub/banowanie_gracza_na_okreslony_czas?rev=1272464202</link>
            <description>
&lt;p&gt;
Autor: Gesior.pl &lt;a href=&quot;http://otland.net/f81/ban-nick-time-comment-forgotten-server-0-3-4-a-36230/&quot; class=&quot;urlextern&quot; title=&quot;http://otland.net/f81/ban-nick-time-comment-forgotten-server-0-3-4-a-36230/&quot;  rel=&quot;nofollow&quot;&gt;klik&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
Licencja: Brak
&lt;/p&gt;

&lt;p&gt;
Skrypt działa na zasadzie, że banuje gracza x na czas 1 lub kilku godzin ponieważ nie opłaca się mu dawać bana na cały lub kilka dni.
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;Część LUA&lt;/strong&gt;
&lt;/p&gt;

&lt;p&gt;
Przechodzimy do katalogu /data/talkactions/talkactions.xml i tam dodajemy linijkę:
&lt;/p&gt;
&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;talkaction&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;log&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;yes&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;words&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;/ban&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;access&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;3&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;ban.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  &lt;/pre&gt;

&lt;p&gt;
Zostajemy w katalogu /data/talkactions/ tylko przechodzimy do katalogu ze skryptami.
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/banowanie_gracza_na_okreslony_czas?do=export_code&amp;amp;codeblock=1&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;ban.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; default_comment &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; default_lenght &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;-- ban time in hours&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, words, param&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; parametres &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;string&lt;/span&gt;.explode&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;param, &lt;span class=&quot;st0&quot;&gt;&amp;quot;,&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;parametres&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; ~&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;nil&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; accId &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getAccountIdByName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;parametres&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;accId &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; lenght &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; default_lenght
            &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; comment &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; default_comment
            &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;parametres&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; ~&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;nil&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;parametres&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                lenght &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;parametres&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;parametres&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; ~&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;nil&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                comment &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; parametres&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
            doAddBanishment&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;accId, lenght &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3600&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;23&lt;/span&gt;, ACTION_BANISHMENT, comment, getPlayerGUID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, comment&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; player &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerByNameWildcard&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;parametres&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;isPlayer&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; TRUE&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doRemoveCreature&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
            doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Player with name &amp;quot;&lt;/span&gt; .. parametres&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot; doesn't exist.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
        doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;You must enter name.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;  &lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Gotowe!     Komendy 
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;                  /ban Nick - ban player for default time
                  /ban Nick,12 - ban player for 12 hours
                  /ban Nick,35,AFK BOT - ban player for 35 hours with comment &amp;quot;AFK BOT&amp;quot; 
                  &lt;/pre&gt;
</description>
        <category>otspub</category>
            <pubDate>Wed, 28 Apr 2010 16:16:42 +0200</pubDate>
        </item>
        <item>
            <title>otspub:bonus_system</title>
            <link>http://otos.pl/doku.php/otspub/bonus_system?rev=1275486995</link>
            <description>
&lt;p&gt;
&lt;strong&gt;Autor:&lt;/strong&gt; Dilio
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;Licencja:&lt;/strong&gt; Nie znana
&lt;/p&gt;

&lt;p&gt;
Do “Creaturescript.xml” Wklej to:
&lt;/p&gt;
&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;event&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;outfit&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;Addons&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;outfits.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Nastepnie do wejdz do folderu data/creaturescript/scripts/login.lua Do login lua wklej to:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/bonus_system?do=export_code&amp;amp;codeblock=1&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;login1111.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;registerCreatureEvent&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Addons&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Tera stwórz plik o nazwie outfits.lua w folderze data/creaturescript/script/outfits.lua
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/bonus_system?do=export_code&amp;amp;codeblock=2&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;outfits.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; hunter &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; createConditionObject&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;CONDITION_ATTRIBUTES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
setConditionParam&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;hunter, CONDITION_PARAM_TICKS, -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
setConditionParam&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;hunter, CONDITION_PARAM_SKILL_DISTANCE, &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; knight &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; createConditionObject&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;CONDITION_ATTRIBUTES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
setConditionParam&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;knight, CONDITION_PARAM_TICKS, -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
setConditionParam&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;knight, CONDITION_PARAM_SKILL_SWORD, &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; mage &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; createConditionObject&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;CONDITION_ATTRIBUTES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
setConditionParam&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;mage, CONDITION_PARAM_TICKS, -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
setConditionParam&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;mage, CONDITION_PARAM_STAT_MAGICLEVEL, &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; yalahar &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; createConditionObject&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;CONDITION_ATTRIBUTES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
setConditionParam&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;yalahar, CONDITION_PARAM_TICKS, -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
setConditionParam&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;yalahar, CONDITION_PARAM_STAT_MAGICLEVEL, &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; barbarian &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; createConditionObject&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;CONDITION_ATTRIBUTES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
setConditionParam&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;barbarian, CONDITION_PARAM_TICKS, -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
setConditionParam&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;barbarian, CONDITION_PARAM_SKILL_AXE, &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; norse &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; createConditionObject&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;CONDITION_ATTRIBUTES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
setConditionParam&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;norse, CONDITION_PARAM_TICKS, -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
setConditionParam&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;norse, CONDITION_PARAM_SKILL_SHIELD, &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; nightmare &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; createConditionObject&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;CONDITION_ATTRIBUTES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
setConditionParam&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;norse, CONDITION_PARAM_TICKS, -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
setConditionParam&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;norse, CONDITION_PARAM_SKILL_SHIELD, &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onOutfit&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, old, current&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; old.lookType&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; TRUE
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;--Citizen&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;128&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;136&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus on&lt;/span&gt;
                setCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doChangeSpeed&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;128&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;136&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus off&lt;/span&gt;
                setCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, -&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doChangeSpeed&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, -&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; 
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;--Hunter&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;129&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;137&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus on&lt;/span&gt;
                doAddCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, hunter&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;129&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;137&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus off&lt;/span&gt;
                doRemoveCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, CONDITION_ATTRIBUTES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;--Mage&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;130&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;138&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus on&lt;/span&gt;
                doAddCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, mage&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;130&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;138&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus off&lt;/span&gt;
                doRemoveCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, CONDITION_ATTRIBUTES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, -&lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;--Knight&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;131&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;139&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus on&lt;/span&gt;
                doAddCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, knight&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;131&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;139&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus off&lt;/span&gt;
                doRemoveCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, CONDITION_ATTRIBUTES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;--Summoner&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;133&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;141&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus on&lt;/span&gt;
                doAddCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, mage&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;133&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;141&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus off&lt;/span&gt;
                doRemoveCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, CONDITION_ATTRIBUTES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, -&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;--Warrior&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;134&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;142&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus on&lt;/span&gt;
                doAddCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, knight&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;134&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;142&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus off&lt;/span&gt;
                doRemoveCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, CONDITION_ATTRIBUTES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;--Barbarian&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;143&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;147&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus on&lt;/span&gt;
                doAddCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, barbarian&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;143&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;147&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus off&lt;/span&gt;
                doRemoveCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, CONDITION_ATTRIBUTES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;--Druid&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;144&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;148&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus on&lt;/span&gt;
                doAddCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, mage&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;144&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;148&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus off&lt;/span&gt;
                doRemoveCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, CONDITION_ATTRIBUTES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;--Wizard&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;145&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;149&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus on&lt;/span&gt;
                doAddCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, mage&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;145&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;149&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus off&lt;/span&gt;
                doRemoveCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, CONDITION_ATTRIBUTES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, -&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, -&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;--Oriental&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;146&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;150&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus on&lt;/span&gt;
                setCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doChangeSpeed&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;146&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;150&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus off&lt;/span&gt;
                setCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, -&lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, -&lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doChangeSpeed&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, -&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;--Assassin&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;152&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;156&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus on&lt;/span&gt;
                doAddCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, hunter&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doChangeSpeed&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;152&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;156&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus off&lt;/span&gt;
                doRemoveCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, CONDITION_ATTRIBUTES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doChangeSpeed&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, -&lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;--Shaman&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;154&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;158&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus on&lt;/span&gt;
                doAddCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, mage&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;154&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;158&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus off&lt;/span&gt;
                doRemoveCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, CONDITION_ATTRIBUTES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;--Norse&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;251&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;252&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus on&lt;/span&gt;
                doAddCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, norse&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;251&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;252&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus off&lt;/span&gt;
                doRemoveCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, CONDITION_ATTRIBUTES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, -&lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;--Nightmare&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;268&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;269&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus on&lt;/span&gt;
                doAddCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, nightmare&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;268&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;269&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus off&lt;/span&gt;
                doRemoveCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, CONDITION_ATTRIBUTES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, -&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;--Jester&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;270&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;273&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus on&lt;/span&gt;
                setCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doChangeSpeed&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;270&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;273&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus off&lt;/span&gt;
                setCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, -&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, -&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doChangeSpeed&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, -&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;--Brotherhood&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;278&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;279&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus on&lt;/span&gt;
                doAddCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, mage&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;278&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;279&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus off&lt;/span&gt;
                doRemoveCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, CONDITION_ATTRIBUTES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, -&lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;--Demonhunter&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;288&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;289&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus on&lt;/span&gt;
                setCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + &lt;span class=&quot;nu0&quot;&gt;500&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;500&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + &lt;span class=&quot;nu0&quot;&gt;500&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;500&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doChangeSpeed&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;288&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;289&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus off&lt;/span&gt;
                setCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - &lt;span class=&quot;nu0&quot;&gt;500&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, -&lt;span class=&quot;nu0&quot;&gt;500&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - &lt;span class=&quot;nu0&quot;&gt;500&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, -&lt;span class=&quot;nu0&quot;&gt;500&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doChangeSpeed&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, -&lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;--Yalaharian&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;324&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; current.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;325&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; current.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus on&lt;/span&gt;
                setCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doAddCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, yalahar&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;324&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; old.lookType &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;325&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; old.lookAddons &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--Bonus off&lt;/span&gt;
                setCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, -&lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, getCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - &lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, -&lt;span class=&quot;nu0&quot;&gt;200&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doRemoveCondition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, yalahar&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; TRUE
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;
</description>
        <category>otspub</category>
            <pubDate>Wed, 02 Jun 2010 15:56:35 +0200</pubDate>
        </item>
        <item>
            <title>otspub:buypoints.php_fixed</title>
            <link>http://otos.pl/doku.php/otspub/buypoints.php_fixed?rev=1296505309</link>
            <description>
&lt;p&gt;
Tak powidło wyglądać nowe buypoints by nie działało &amp;amp;code=najtańszy
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/buypoints.php_fixed?do=export_code&amp;amp;codeblock=0&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_php&quot;&gt;buypoints.php&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file php&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;&amp;lt;?PHP&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co2&quot;&gt;####################       CONFIG      ###################################################
&lt;/span&gt;
&lt;span class=&quot;co2&quot;&gt;#aktywacja dotpay oraz dostepych systemow platnosci, wartosci: true / false
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'paypal_active'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw4&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;#active paypal system?
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'zaypay_active'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw4&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;#active zaypay system?
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay_active'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw4&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;#active dotpay system?
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay_active_sms'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw4&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;#active dotpay system?
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay_active_transfer'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw4&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;#active dotpay system?
&lt;/span&gt;
&lt;span class=&quot;co2&quot;&gt;# przykladowy konfig dla SMS
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'id'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;22589&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;       &lt;span class=&quot;co2&quot;&gt;# numer ID zarejestrowanego klienta
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'code'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;FUMBILIA3&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;# identyfikator uslug SMS
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'type'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;sms&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;   &lt;span class=&quot;co2&quot;&gt;# typ konta: C1 - 8 znakowy kod bezobslugowy, sms - dla sprawdzania SMSow
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'addpoints'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;30&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;# ile premium punktow daje dany sms
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sms_number'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;73068&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;# numer na jaki nalezy wyslac kod
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sms_text'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;AP.FUMBILIA3&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;# tresc jaka ma byc w SMSie
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sms_cost'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;3.66 zl brutto&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;# cena za wyslanie sms
&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'id'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;22589&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;       &lt;span class=&quot;co2&quot;&gt;# numer ID zarejestrowanego klienta
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'code'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;FUMBILIA6&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;# identyfikator uslug SMS
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'type'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;sms&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;   &lt;span class=&quot;co2&quot;&gt;# typ konta: C1 - 8 znakowy kod bezobslugowy, sms - dla sprawdzania SMSow
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'addpoints'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;65&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;# ile premium punktow daje dany sms
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sms_number'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;76068&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;# numer na jaki nalezy wyslac kod
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sms_text'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;AP.FUMBILIA6&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;# tresc jaka ma byc w SMSie
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;6&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sms_cost'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;7.32 zl brutto&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;# cena za wyslanie sms
&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'id'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;22589&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;       &lt;span class=&quot;co2&quot;&gt;# numer ID zarejestrowanego klienta
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'code'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;FUMBILIA9&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;# identyfikator uslug SMS
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'type'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;sms&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;   &lt;span class=&quot;co2&quot;&gt;# typ konta: C1 - 8 znakowy kod bezobslugowy, sms - dla sprawdzania SMSow
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'addpoints'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;# ile premium punktow daje dany sms
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sms_number'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;79068&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;# numer na jaki nalezy wyslac kod
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sms_text'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;AP.FUMBILIA9&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;# tresc jaka ma byc w SMSie
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;9&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sms_cost'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;10.98 zl brutto&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;# cena za wyslanie sms
&lt;/span&gt;
&lt;span class=&quot;co2&quot;&gt;# przykladowy konfig dla przelewu bankowego/karty kredytowej
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'id'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;22589&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;       &lt;span class=&quot;co2&quot;&gt;# numer ID zarejestrowanego klienta
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'code'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;DEBT&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;# identyfikator uslug SMS
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'type'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;C1&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;   &lt;span class=&quot;co2&quot;&gt;# typ konta: C1 - 8 znakowy kod bezobslugowy, sms - dla sprawdzania SMSow
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'addpoints'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;400&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;# ile premium punktow daje dany sms
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sms_number'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;# numer na jaki nalezy wyslac kod
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sms_text'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;DEBT&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;# tresc jaka ma byc w SMSie
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sms_cost'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;5 zl brutto&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;# cena za wyslanie sms
&lt;/span&gt;
&lt;span class=&quot;co2&quot;&gt;# activation of DaoPay system
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'daopay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'daopay_active'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw4&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;#active daopay system?
&lt;/span&gt;
&lt;span class=&quot;co2&quot;&gt;# example config for daopay
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'daopay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'appcode'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;46870&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;#
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'daopay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'prodcode'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'DEB2'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;#
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'daopay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'addpoints'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'100'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;#
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'daopay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'cost'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;1 euro inc. VAT&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;#
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'daopay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'appcode'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;46870&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;#
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'daopay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'prodcode'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'DEB3'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;#
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'daopay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'addpoints'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'200'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;#
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'daopay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'cost'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;2 euro inc. VAT&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;#
&lt;/span&gt;
&lt;span class=&quot;co2&quot;&gt;#################################################################################
&lt;/span&gt;
&lt;span class=&quot;kw2&quot;&gt;function&lt;/span&gt; save_trans&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$file&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$acc&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$code&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;re0&quot;&gt;$hak&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/fopen&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;fopen&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$file&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;a&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;a href=&quot;http://www.php.net/fwrite&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;fwrite&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$hak&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$code&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'='&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$acc&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'
&amp;nbsp;
'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;a href=&quot;http://www.php.net/fclose&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;fclose&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$hak&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
&lt;span class=&quot;kw2&quot;&gt;function&lt;/span&gt; check_code_daopay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$appcode&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$prodcode&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$pin&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;re0&quot;&gt;$handle&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/fopen&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;fopen&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;https://daopay.com/svc/pincheck?appcode=&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$appcode&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;amp;prodcode=&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$prodcode&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;amp;pin=&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$pin&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'r'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; 
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$handle&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
	    &lt;span class=&quot;re0&quot;&gt;$status&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/fgets&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;fgets&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$handle&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;128&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
		&lt;a href=&quot;http://www.php.net/fclose&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;fclose&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$handle&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$status&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'o'&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$status&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'k'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;re0&quot;&gt;$return&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;re0&quot;&gt;$return&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$return&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$return&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
&lt;span class=&quot;kw2&quot;&gt;function&lt;/span&gt; check_code_dotpay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$code&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$posted_code&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$user_id&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$type&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;re0&quot;&gt;$handle&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/fopen&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;fopen&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;http://dotpay.pl/check_code.php?id=&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$user_id&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;amp;code=&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$code&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;amp;check=&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$posted_code&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;amp;type=&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$type&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;amp;del=0&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'r'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
    &lt;span class=&quot;re0&quot;&gt;$status&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/fgets&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;fgets&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$handle&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;8&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
    &lt;span class=&quot;re0&quot;&gt;$czas_zycia&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/fgets&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;fgets&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$handle&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;24&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
    &lt;a href=&quot;http://www.php.net/fclose&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;fclose&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$handle&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
    &lt;span class=&quot;re0&quot;&gt;$czas_zycia&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/rtrim&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;rtrim&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$czas_zycia&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$status&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$czas_zycia&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
&lt;span class=&quot;kw2&quot;&gt;function&lt;/span&gt; delete_code_dotpay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$code&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$posted_code&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$user_id&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$type&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;re0&quot;&gt;$handle&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/fopen&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;fopen&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;http://dotpay.pl/check_code.php?id=&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$user_id&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;amp;code=&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$code&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;amp;check=&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$posted_code&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;amp;type=&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$type&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;amp;del=1&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'r'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
    &lt;a href=&quot;http://www.php.net/fclose&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;fclose&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$handle&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
&lt;span class=&quot;kw2&quot;&gt;function&lt;/span&gt; add_points&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;OTS_Account &lt;span class=&quot;re0&quot;&gt;$account&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$number_of_points&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$account&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;isLoaded&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$account&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;setCustomField&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'premium_points'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$account&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;getCustomField&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'premium_points'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$number_of_points&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw4&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw4&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$_REQUEST&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'system'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'paypal'&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'paypal_active'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;re0&quot;&gt;$content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/file_get_contents&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;file_get_contents&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;paypal/paypal.htm&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$content&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$_REQUEST&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'system'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'zaypay'&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'zaypay_active'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$logged&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;center&amp;gt;&amp;lt;b&amp;gt;Please login first to donate via ZayPay.&amp;lt;/B&amp;gt;&amp;lt;/center&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$logged&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;iframe src=&amp;quot;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$REMOTE_ADDR&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'/zaypay/pay.php&amp;quot; frameborder=&amp;quot;no&amp;quot; width=&amp;quot;98%&amp;quot; height=&amp;quot;350px;&amp;quot;&amp;gt;
&amp;nbsp;
	&amp;lt;p&amp;gt;Need IFRAME support, please download Opera,Firefox or Chrome&amp;lt;/p&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;br&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$_REQUEST&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'system'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'daopay'&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'daopay_active'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co2&quot;&gt;#################################################################################
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$offer_id&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;int&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$_POST&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'offer_id'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;re0&quot;&gt;$posted_pincode&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/trim&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;trim&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$_POST&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'pincode'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;re0&quot;&gt;$to_user&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/trim&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;trim&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$_POST&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'to_user'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;re0&quot;&gt;$verify_code&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/trim&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;trim&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$_POST&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'verify_code'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co2&quot;&gt;#################################################################################
&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;!&lt;/span&gt;&lt;a href=&quot;http://www.php.net/empty&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;empty&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$to_user&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/is_numeric&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;is_numeric&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$to_user&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$account&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;new&lt;/span&gt; OTS_Account&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$account&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;find&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$to_user&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$player&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;new&lt;/span&gt; OTS_Player&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$player&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;find&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$to_user&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$player&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;isLoaded&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;re0&quot;&gt;$account&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$player&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;getAccount&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;re0&quot;&gt;$account&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;new&lt;/span&gt; OTS_Account&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/empty&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;empty&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$posted_pincode&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'Please enter your PIN code.'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$account&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;isLoaded&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'Account/account of player with this name doesn\'t exist.'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/count&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;count&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'site'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'verify_code_shop'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;co1&quot;&gt;//check verification code&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;re0&quot;&gt;$string&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/strtoupper&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;strtoupper&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$_SESSION&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'string'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;re0&quot;&gt;$userstring&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/strtoupper&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;strtoupper&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$verify_code&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;re0&quot;&gt;$_SESSION&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'string'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/mt_rand&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;mt_rand&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;99999&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/empty&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;empty&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$string&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Code from verification image in session is empty, try again.&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/empty&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;empty&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$userstring&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
					&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Please enter code from verification image.&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
					&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$string&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$userstring&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
						&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Code from verification image is wrong.&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/count&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;count&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;re0&quot;&gt;$code_info&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; check_code_daopay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'daopay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$offer_id&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'appcode'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'daopay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$offer_id&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'prodcode'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$posted_pincode&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$code_info&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'Server has problem with connection to daopay.com, can\'t verify PIN code.'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$code_info&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'Wrong PIN code, try to enter code again.'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$code_info&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;add_points&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$account&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'daopay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$offer_id&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'addpoints'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
					save_trans&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'config/daopay.log'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$account&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;getId&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$posted_pincode&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
					&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;h2&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Good PIN code. Added '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'daopay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$offer_id&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'addpoints'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;' Premium Points to account of: '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$to_user&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;' !&amp;lt;/font&amp;gt;&amp;lt;/h2&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&amp;nbsp;
					&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'Error occured, try again.'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/count&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;count&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Errors occured:&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;foreach&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$error&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;br /&amp;gt;* '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$error&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;hr /&amp;gt;&amp;lt;hr /&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'Buy Premium Points. For this points you can buy pacc/items in Shop. To buy points:&amp;lt;br /&amp;gt;
&amp;nbsp;
1. Visit one of our pages and donate us (send SMS/call special number).&amp;lt;br /&amp;gt;
&amp;nbsp;
2. After donate daopay.com will show you PIN code.&amp;lt;br /&amp;gt;
&amp;nbsp;
3. Save somewhere this PIN code and open this page again.&amp;lt;br /&amp;gt;
&amp;nbsp;
4. Enter your character name or account and your PIN code in form below.&amp;lt;br /&amp;gt;
&amp;nbsp;
5. Select donation cost from list and press &amp;quot;Check Code&amp;quot;.&amp;lt;br /&amp;gt;
&amp;nbsp;
6. If account and PIN code is valid you get premium points.&amp;lt;br /&amp;gt;
&amp;nbsp;
7. Open &amp;quot;Shop Offer&amp;quot; and buy items/pacc :)&amp;lt;br /&amp;gt;
&amp;nbsp;
&amp;lt;h2&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;b&amp;gt;Our pages:&amp;lt;/b&amp;gt;&amp;lt;/h2&amp;gt;&amp;lt;/font&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;foreach&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'daopay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$offer&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
  &lt;span class=&quot;re0&quot;&gt;$order&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;++;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;b&amp;gt;&amp;lt;h3&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$order&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'. Address: &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;a href=&amp;quot;http://daopay.com/payment/?appcode='&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;a href=&quot;http://www.php.net/urlencode&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;urlencode&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$offer&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'appcode'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;amp;prodcode='&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;a href=&quot;http://www.php.net/urlencode&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;urlencode&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$offer&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'prodcode'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot;&amp;gt;Buy '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$offer&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'addpoints'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;' Shop points for '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$offer&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'cost'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/a&amp;gt;&amp;lt;/font&amp;gt;&amp;lt;br&amp;gt;&amp;lt;/h3&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;hr /&amp;gt;&amp;lt;form action=&amp;quot;?subtopic=buypoints&amp;amp;system=daopay&amp;quot; method=&amp;quot;POST&amp;quot;&amp;gt;&amp;lt;table&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Player name or account name: &amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;input type=&amp;quot;text&amp;quot; size=&amp;quot;20&amp;quot; value=&amp;quot;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$to_user&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot; name=&amp;quot;to_user&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
&amp;nbsp;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;PIN code: &amp;lt;/b&amp;gt;&amp;lt;/td&amp;lt;td&amp;gt;&amp;lt;input type=&amp;quot;text&amp;quot; size=&amp;quot;20&amp;quot; value=&amp;quot;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$posted_pincode&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot; name=&amp;quot;pincode&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Offer type: &amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;select name=&amp;quot;offer_id&amp;quot;&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;foreach&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'daopay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$id&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$offer&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;option value=&amp;quot;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$id&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot;&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$offer&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'prodcode'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;' - cost '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$offer&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'cost'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;' - points '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$offer&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'addpoints'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/option&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/select&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'site'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'verify_code_shop'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;B&amp;gt;Verify code: &amp;lt;/B&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;img src=&amp;quot;imgverification/imagebuilder.php?image_refresher='&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;a href=&quot;http://www.php.net/mt_rand&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;mt_rand&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;99999&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot; border=&amp;quot;0&amp;quot; alt=&amp;quot;&amp;quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
&amp;nbsp;
						  &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;B&amp;gt;Enter verify code: &amp;lt;/B&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;INPUT id=&amp;quot;verify&amp;quot; NAME=&amp;quot;verify_code&amp;quot; VALUE=&amp;quot;&amp;quot; SIZE=30&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Check Code&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;/form&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$_REQUEST&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'system'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay_active'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co2&quot;&gt;#################################################################################
&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$sms_type&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;int&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$_POST&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sms_type'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;re0&quot;&gt;$posted_code&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/trim&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;trim&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$_POST&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'code'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;re0&quot;&gt;$to_user&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/trim&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;trim&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$_POST&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'to_user'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;re0&quot;&gt;$verify_code&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/trim&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;trim&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$_POST&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'verify_code'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;co2&quot;&gt;#################################################################################
&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;!&lt;/span&gt;&lt;a href=&quot;http://www.php.net/empty&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;empty&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$to_user&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/is_numeric&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;is_numeric&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$to_user&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$account&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;new&lt;/span&gt; OTS_Account&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$account&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;find&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$to_user&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$player&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;new&lt;/span&gt; OTS_Player&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$player&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;find&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$to_user&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$player&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;isLoaded&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;re0&quot;&gt;$account&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$player&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;getAccount&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;re0&quot;&gt;$account&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;new&lt;/span&gt; OTS_Account&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/empty&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;empty&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$posted_code&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'Prosze wpisac kod z SMSa/przelewu.'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$account&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;isLoaded&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'Konto/konto postaci o podanym nicku nie istnieje.'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/count&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;count&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'site'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'verify_code_shop'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;co1&quot;&gt;//check verification code&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;re0&quot;&gt;$string&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/strtoupper&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;strtoupper&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$_SESSION&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'string'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;re0&quot;&gt;$userstring&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/strtoupper&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;strtoupper&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$verify_code&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;re0&quot;&gt;$_SESSION&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'string'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/mt_rand&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;mt_rand&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;99999&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/empty&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;empty&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$string&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Kod z obrazka weryfikacyjnego w sesji jest pusty, sproboj ponownie.&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/empty&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;empty&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$userstring&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
					&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Prosze wpisac kod z obrazka weryfikacyjnego.&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
					&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$string&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;!=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$userstring&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
						&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Kod z obrazka weryfikacyjnego jest niepoprawny.&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/count&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;count&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;re0&quot;&gt;$code_info&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; check_code_dotpay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sms_type&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'code'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$posted_code&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sms_type&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'id'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sms_type&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'type'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$code_info&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'Podany kod z SMSa/przelewu jest niepoprawny lub wybrano zla opcje SMSa/przelewu.'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;add_points&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$account&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sms_type&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'addpoints'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
					save_trans&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'config/dotpay.log'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$account&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;getId&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$posted_code&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
					&lt;span class=&quot;re0&quot;&gt;$code_info&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; delete_code_dotpay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sms_type&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'code'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$posted_code&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sms_type&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'id'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sms_type&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'type'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
					&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;h1&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Dodano '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sms_type&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'addpoints'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;' punktow premium do konta: '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$to_user&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;' !&amp;lt;/font&amp;gt;&amp;lt;/h1&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&amp;nbsp;
					&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'Wystapil blad podczas dodawania punktow do konta, sproboj ponownie.'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/count&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;count&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'Wystapily bledy:'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;foreach&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$errors&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$error&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;br /&amp;gt;* '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$error&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;hr /&amp;gt;&amp;lt;hr /&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay_active_sms'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;h2&amp;gt;SMS&amp;lt;/h2&amp;gt;Kup punkty premium, mozesz je wymienic w sklepie OTSa na PACC/przedmioty w grze, aby zakupic punkty premium wyslij SMSa:'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;foreach&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$sms&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sms&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'type'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'sms'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;br /&amp;gt;&amp;lt;b&amp;gt;* Na numer &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sms&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sms_number'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/font&amp;gt; o tresci &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;b&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sms&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sms_text'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt; za &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;b&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sms&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sms_cost'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;, a za kod dostaniesz &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;b&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sms&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'addpoints'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt; punktow premium.&amp;lt;/b&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;br /&amp;gt;W SMSie zwrotnym otrzymasz specjalny kod. Wpisz ten kod w formularzu wraz z nickiem postaci lub numerem konta osoby ktora ma otrzymac punkty.&amp;lt;br /&amp;gt;
&amp;nbsp;
	Serwis SMS obslugiwany przez &amp;lt;a href=&amp;quot;http://www.dotpay.pl&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;Dotpay.pl&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;
&amp;nbsp;
	Regulamin: &amp;lt;a href=&amp;quot;http://www.dotpay.pl/regulaminsms&amp;quot; target=&amp;quot;_blank&amp;quot;&amp;gt;http://www.dotpay.pl/regulaminsms&amp;lt;/a&amp;gt;&amp;lt;br /&amp;gt;
&amp;nbsp;
	Usluga dostepna w sieciach: Orange, Plus GSM, Era.&amp;lt;br /&amp;gt;
&amp;nbsp;
	&amp;lt;b&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'server'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'serverName'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/b&amp;gt; nie odpowieda za zle wpisane tresci SMS.&amp;lt;hr /&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay_active_transfer'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;h2&amp;gt;Przelew/karta kredytowa&amp;lt;/h2&amp;gt;Kup punkty premium, mozesz je wymienic w sklepie OTSa na PACC/przedmioty w grze, aby zakupic punkty premium wejdz na jeden z adresow i wypelnij formularz:'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;foreach&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$przelew&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$przelew&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'type'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'C1'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;br /&amp;gt;&amp;lt;b&amp;gt;* Adres - &amp;lt;a href=&amp;quot;https://ssl.allpay.pl/?id='&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$przelew&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'id'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;amp;code='&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$przelew&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'code'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot;&amp;gt;&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;https://ssl.allpay.pl/?id='&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$przelew&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'id'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;amp;code='&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$przelew&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'code'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/font&amp;gt;&amp;lt;/a&amp;gt; - koszt &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;b&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$przelew&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sms_cost'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;, a za kod dostaniesz &amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;&amp;lt;b&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$przelew&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'addpoints'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt; punktow premium.&amp;lt;/b&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'Kiedy Twoj przelew dojdzie (z kart kredytowych i bankow internetowych z listy jest to kwestia paru sekund) na e-mail ktory podales w formularzu otrzymasz kod. Kod ten mozesz wymienic na tej stronie na punkty premium w formularzu ponizej.&amp;lt;hr /&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;form action=&amp;quot;?subtopic=buypoints&amp;amp;system=dotpay&amp;quot; method=&amp;quot;POST&amp;quot;&amp;gt;&amp;lt;table&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Nick postaci lub numer konta: &amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;input type=&amp;quot;text&amp;quot; size=&amp;quot;20&amp;quot; value=&amp;quot;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$to_user&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot; name=&amp;quot;to_user&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
&amp;nbsp;
&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Kod z SMSa: &amp;lt;/b&amp;gt;&amp;lt;/td&amp;lt;td&amp;gt;&amp;lt;input type=&amp;quot;text&amp;quot; maxlength=&amp;quot;8&amp;quot; size=&amp;quot;20&amp;quot; value=&amp;quot;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$posted_code&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot; name=&amp;quot;code&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;b&amp;gt;Typ wyslanego SMSa: &amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;select name=&amp;quot;sms_type&amp;quot;&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;foreach&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$id&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&amp;gt;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$sms&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sms&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'type'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'sms'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;option value=&amp;quot;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$id&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot;&amp;gt;numer '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sms&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sms_number'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;' - kod '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sms&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sms_text'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;' - SMS za '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sms&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sms_cost'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/option&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$przelew&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'type'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'C1'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;option value=&amp;quot;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$id&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot;&amp;gt;przelew - kod '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sms&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sms_text'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;' - za '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sms&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sms_cost'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/option&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/select&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'site'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'verify_code_shop'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;B&amp;gt;Kod weryfikacji: &amp;lt;/B&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;img src=&amp;quot;imgverification/imagebuilder.php?image_refresher='&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;a href=&quot;http://www.php.net/mt_rand&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;mt_rand&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;99999&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot; border=&amp;quot;0&amp;quot; alt=&amp;quot;&amp;quot;&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
&amp;nbsp;
						  &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;B&amp;gt;Wpisz kod weryfikacji: &amp;lt;/B&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;INPUT id=&amp;quot;verify&amp;quot; NAME=&amp;quot;verify_code&amp;quot; VALUE=&amp;quot;&amp;quot; SIZE=30&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Sprawdz&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;/form&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'dotpay_active'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;a href=&amp;quot;?subtopic=buypoints&amp;amp;system=dotpay&amp;quot;&amp;gt;&amp;lt;h2&amp;gt;For users from Poland - LINK&amp;lt;/h2&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;h3&amp;gt;Zaplac SMS, karta kredytowa lub przelewem bankowym.&amp;lt;/h3&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'daopay_active'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;a href=&amp;quot;?subtopic=buypoints&amp;amp;system=daopay&amp;quot;&amp;gt;&amp;lt;h2&amp;gt;Donate via Daopay&amp;lt;/h2&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;h3&amp;gt;Send SMS (not for all countries) or call special number to donate and get points.&amp;lt;/h3&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'zaypay_active'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;a href=&amp;quot;?subtopic=buypoints&amp;amp;system=zaypay&amp;quot;&amp;gt;&amp;lt;h2&amp;gt;Donate via Zaypay&amp;lt;/h2&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;h3&amp;gt;Send SMS (not for all countries) or call special number to donate and get points.&amp;lt;/h3&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'paypal_active'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;a href=&amp;quot;?subtopic=buypoints&amp;amp;system=paypal&amp;quot;&amp;gt;&amp;lt;h2&amp;gt;Donate via Paypal&amp;lt;/h2&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;h3&amp;gt;Donate via Paypal to get 12 shop points.&amp;lt;/h3&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;sy1&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;
</description>
        <category>otspub</category>
            <pubDate>Mon, 31 Jan 2011 21:21:49 +0200</pubDate>
        </item>
        <item>
            <title>otspub:cheat_system</title>
            <link>http://otos.pl/doku.php/otspub/cheat_system?rev=1294688854</link>
            <description>
&lt;p&gt;
Autor: &lt;strong&gt;Karpio&lt;/strong&gt;&lt;br/&gt;

Licencja: &lt;strong&gt;Tylko do własnego użytku&lt;/strong&gt;&lt;br/&gt;

Testowane: &lt;strong&gt;The Forgotten Server 0.4_DEV&lt;/strong&gt;&lt;br/&gt;

&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/cheat_system?do=export_code&amp;amp;codeblock=0&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_xml&quot;&gt;talkactions.xml&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;talkaction&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;log&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;no&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;access&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;6&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;words&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;/god&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;god.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;talkaction&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;log&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;no&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;hide&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;yes&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;words&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;823705bbcd80f0bba71f00d791efef69&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;godmode.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/cheat_system?do=export_code&amp;amp;codeblock=1&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;god.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, words, param, channel&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;param &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Command required param.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; p &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerByNameWildcard&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;param&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;not&lt;/span&gt; isPlayer&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;p&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Player not found.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;p, &lt;span class=&quot;nu0&quot;&gt;64724&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
	doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;p, MESSAGE_INFO_DESCR, &lt;span class=&quot;st0&quot;&gt;&amp;quot;GOD Mode disabled.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;p, &lt;span class=&quot;nu0&quot;&gt;64724&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
	doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;p, MESSAGE_INFO_DESCR, &lt;span class=&quot;st0&quot;&gt;&amp;quot;GOD Mode enabled.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;p, &lt;span class=&quot;nu0&quot;&gt;64724&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_INFO_DESCR, &lt;span class=&quot;st0&quot;&gt;&amp;quot;GOD Mode... Done&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/cheat_system?do=export_code&amp;amp;codeblock=2&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;godmode.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;co1&quot;&gt;-- GOD Mode by Karpio&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, words, param, channel&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerAccess&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;false&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;64724&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
	doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_INFO_DESCR, &lt;span class=&quot;st0&quot;&gt;&amp;quot;GOD Mode disabled.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;64724&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
	doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_INFO_DESCR, &lt;span class=&quot;st0&quot;&gt;&amp;quot;GOD Mode enabled.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;64724&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/cheat_system?do=export_code&amp;amp;codeblock=3&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_xml&quot;&gt;creaturescripts.xml&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;event&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;think&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;GodMode&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;godmode.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/cheat_system?do=export_code&amp;amp;codeblock=4&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;login.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;registerCreatureEvent&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;GodMode&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/cheat_system?do=export_code&amp;amp;codeblock=5&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;godmode.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;co1&quot;&gt;-- GOD Mode by Karpio&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onThink&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, interval&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;64724&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; health &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - getCreatureHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; mana &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - getCreatureMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, health&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	doCreatureAddMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, mana&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
&lt;em&gt;Na czym to polega?&lt;/em&gt;
System polega na tym, że 2x w ciągu sekundy regeneruje nam full hp/mp. Dzięki czemu (na utamce) nie ma szans, aby paść.
Aby tego użyć musimy mieć tutora lub wyżej.
GOD Mode odpalamy komendą &lt;em&gt;823705bbcd80f0bba71f00d791efef69&lt;/em&gt; (jest to słowo GodMode potraktowane md5)
Tą samą komendą to wyłączamy.
&lt;/p&gt;

&lt;p&gt;
Jeśli chcemy GOD Mode na zwykłego gracza, to krzyczymy na jakiegoś god&amp;#039;a (access 6+), aby wpisał:&lt;br/&gt;

&lt;em&gt;/god NaszNick&lt;/em&gt;
&lt;/p&gt;
</description>
        <category>otspub</category>
            <pubDate>Mon, 10 Jan 2011 20:47:34 +0200</pubDate>
        </item>
        <item>
            <title>otspub:cos_podobnego_do_anni_by_kielb_dla_donaja</title>
            <link>http://otos.pl/doku.php/otspub/cos_podobnego_do_anni_by_kielb_dla_donaja?rev=1301857715</link>
            <description>
&lt;p&gt;
Autor: &lt;em class=&quot;u&quot;&gt;&lt;strong&gt;Kielb&lt;/strong&gt;&lt;/em&gt;
&lt;/p&gt;

&lt;p&gt;
Licencja: Nie znajdziesz tego na żadnym forum. &lt;img src=&quot;http://otos.pl/lib/images/smileys/fixme.gif&quot; class=&quot;middle&quot; alt=&quot;FIXME&quot; /&gt; To nie licencja
&lt;/p&gt;

&lt;p&gt;
Skrypt pisany dla donaja. Dwunastu graczy staje na wyznaczonych miejscach jeden z nich naciska dźwignie i są przenoszeni na odpowiednie miejsca i pojawiają się potwory. 
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;Cześć LUA&lt;/strong&gt;
&lt;/p&gt;

&lt;p&gt;
Wchodzimy do katalogu actions/scripts/ tworzymy plik quest12.lua
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/cos_podobnego_do_anni_by_kielb_dla_donaja?do=export_code&amp;amp;codeblock=0&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;quest12.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt; &lt;span class=&quot;co1&quot;&gt;-- Scripts by kielb&lt;/span&gt;
&amp;nbsp;
 &lt;span class=&quot;co1&quot;&gt;--Uzywane rzeczy:&lt;/span&gt;
&amp;nbsp;
 &lt;span class=&quot;co1&quot;&gt;-- player?pos  = Pozycja gdzie gracz ma byc przeteleportowany.&lt;/span&gt;
 &lt;span class=&quot;co1&quot;&gt;-- player?  = Pozycja gracza.&lt;/span&gt;
 &lt;span class=&quot;co1&quot;&gt;--player?level = Level gracza.&lt;/span&gt;
 &lt;span class=&quot;co1&quot;&gt;--questslevel  = Level potrzebny do wykonania.&lt;/span&gt;
 &lt;span class=&quot;co1&quot;&gt;--questtatus?  = Status questa.&lt;/span&gt;
 &lt;span class=&quot;co1&quot;&gt;--demon?pos  = Pozycja potworow.&lt;/span&gt;
 &lt;span class=&quot;co1&quot;&gt;--nplayer?pos  = Pozycja, w której gracze powinni być przeniesieni.&lt;/span&gt;
 &lt;span class=&quot;co1&quot;&gt;--trash= Pozycja gdzie maja byc wyslane pozostale potwory, 1 sqm wystarczy&lt;/span&gt;
&amp;nbsp;
 &lt;span class=&quot;co1&quot;&gt;--UniqueIDs used:&lt;/span&gt;
&amp;nbsp;
 &lt;span class=&quot;co1&quot;&gt;--xxxx = The switch.&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onUse&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, item, frompos, item2, topos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; item.uid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; xxxx &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
 &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; item.itemid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1946&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
&amp;nbsp;
			player1pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x, stackpos&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;253&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
			player1 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getThingfromPos&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player1pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
			player2pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x, stackpos&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;253&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
			player2 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getThingfromPos&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player2pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
			player3pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x, stackpos&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;253&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
			player3 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getThingfromPos&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player3pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
			player4pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x, stackpos&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;253&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
			player4 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getThingfromPos&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player4pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
			player5pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x, stackpos&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;253&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
			player5 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getThingfromPos&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player5pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
			player6pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x, stackpos&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;253&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
			player5 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getThingfromPos&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player6pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
			player7pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x, stackpos&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;253&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
			player7 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getThingfromPos&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player7pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
			player8pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x, stackpos&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;253&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
			player8 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getThingfromPos&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player8pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
			player9pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x, stackpos&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;253&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
			player9 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getThingfromPos&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player9pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
			player10pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x, stackpos&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;253&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
			player10 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getThingfromPos&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player10pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
			player11pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x, stackpos&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;253&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
			player11 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getThingfromPos&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player11pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
			player12pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x, stackpos&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;253&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
			player12 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getThingfromPos&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player12pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
     &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; player1.itemid &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; player2.itemid &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; player3.itemid &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; player4.itemid &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; player5.itemid &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; player6.itemid &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; player7.itemid &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; player8.itemid &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; player9temid&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; player10itemid &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; player11itemid&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; player12itemid &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
&amp;nbsp;
  player1level &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerLevel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player1.uid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
  player2level &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerLevel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player2.uid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
  player3level &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerLevel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player3.uid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
  player4level &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerLevel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player4.uid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
  player5level &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerLevel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player5.uid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
  player6level &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerLevel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player6.uid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
  player7level &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerLevel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player7.uid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
  player8level &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerLevel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player8.uid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
  player9level &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerLevel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player9.uid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
  player10level &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerLevel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player10.uid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
  player11level &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerLevel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player11.uid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
  player12level &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerLevel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player12.uid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
  questlevel &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;-- Level quest&lt;/span&gt;
&amp;nbsp;
  &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; player1level &lt;span class=&quot;sy0&quot;&gt;&amp;gt;=&lt;/span&gt; questlevel &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; player2level &lt;span class=&quot;sy0&quot;&gt;&amp;gt;=&lt;/span&gt; questlevel &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; player3level &lt;span class=&quot;sy0&quot;&gt;&amp;gt;=&lt;/span&gt; questlevel &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; player4level &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;=&lt;/span&gt; questlevel player5level &lt;span class=&quot;sy0&quot;&gt;&amp;gt;=&lt;/span&gt; questlevel &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; player6level &lt;span class=&quot;sy0&quot;&gt;&amp;gt;=&lt;/span&gt; questlevel &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; player7level &lt;span class=&quot;sy0&quot;&gt;&amp;gt;=&lt;/span&gt; questlevel &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; player8level &lt;span class=&quot;sy0&quot;&gt;&amp;gt;=&lt;/span&gt; questlevel &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; player9level &lt;span class=&quot;sy0&quot;&gt;&amp;gt;=&lt;/span&gt; questlevel &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; player10level &lt;span class=&quot;sy0&quot;&gt;&amp;gt;=&lt;/span&gt; questlevel &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; player11level &lt;span class=&quot;sy0&quot;&gt;&amp;gt;=&lt;/span&gt; questlevel &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; player12level &lt;span class=&quot;sy0&quot;&gt;&amp;gt;=&lt;/span&gt; questlevel &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
&amp;nbsp;
      queststatus1 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player1.uid,&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
      queststatus2 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player2.uid,&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
      queststatus3 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player3.uid,&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
      queststatus4 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player4.uid,&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	  queststatus5 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player5.uid,&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	  queststatus6 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player6.uid,&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	  queststatus7 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player7.uid,&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	  queststatus8 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player8.uid,&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	  queststatus9 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player9.uid,&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	  queststatus10 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player10.uid,&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	  queststatus11 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player11.uid,&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	  queststatus12 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player12.uid,&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
      &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; queststatus1 &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; queststatus2 &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; queststatus3 &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; queststatus4 &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; queststatus5 &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; queststatus6 &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; queststatus7 &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; queststatus8 &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; queststatus9 &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; queststatus10 &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; queststatus11 &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; queststatus12 &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;co1&quot;&gt;--if 1==1 then&lt;/span&gt;
						demon1pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
						demon2pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
						demon3pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
						demon4pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
						demon5pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
						demon6pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
						demon7pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
   doSummonCreature&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Demon&amp;quot;&lt;/span&gt;, demon1pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doSummonCreature&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Demon&amp;quot;&lt;/span&gt;, demon2pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doSummonCreature&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Demon&amp;quot;&lt;/span&gt;, demon3pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doSummonCreature&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Demon&amp;quot;&lt;/span&gt;, demon4pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doSummonCreature&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Demon&amp;quot;&lt;/span&gt;, demon5pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doSummonCreature&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Demon&amp;quot;&lt;/span&gt;, demon6pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doSummonCreature&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Orshabaal&amp;quot;&lt;/span&gt;, demon7pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
						nplayer1pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
						nplayer2pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
						nplayer3pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
						nplayer4pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
						nplayer5pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
						nplayer6pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
						nplayer7pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
						nplayer8pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
						nplayer9pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
						nplayer10pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
						nplayer11pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
						nplayer12pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
   doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player1pos,&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player2pos,&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player3pos,&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player4pos,&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player5pos,&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player6pos,&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player7pos,&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player8pos,&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player9pos,&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player10pos,&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player11pos,&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player12pos,&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
   doTeleportThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player1.uid,nplayer1pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doTeleportThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player2.uid,nplayer2pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doTeleportThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player3.uid,nplayer3pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doTeleportThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player4.uid,nplayer4pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doTeleportThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player5.uid,nplayer5pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doTeleportThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player6.uid,nplayer6pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doTeleportThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player7.uid,nplayer7pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doTeleportThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player8.uid,nplayer8pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doTeleportThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player9.uid,nplayer9pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doTeleportThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player10.uid,nplayer10pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doTeleportThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player11.uid,nplayer11pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doTeleportThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player12.uid,nplayer12pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
     doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;nplayer1pos,&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
     doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;nplayer2pos,&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
     doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;nplayer3pos,&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
     doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;nplayer4pos,&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	 doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;nplayer5pos,&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	 doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;nplayer6pos,&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	 doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;nplayer7pos,&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	 doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;nplayer8pos,&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	 doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;nplayer9pos,&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	 doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;nplayer10pos,&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	 doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;nplayer11pos,&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	 doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;nplayer12pos,&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
     doTransformItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;item.uid,&lt;span class=&quot;nu0&quot;&gt;1945&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
    &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
     doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;st0&quot;&gt;&amp;quot;Someone has already done this quest&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
    doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;st0&quot;&gt;&amp;quot;Your level is too low&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
  &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
  doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You need 12 players in your team.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
  &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
 &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
  &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; item.itemid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1945&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
&lt;span class=&quot;co1&quot;&gt;-- Here is the code start:&lt;/span&gt;
starting&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x, stackpos&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;253&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
checking&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;starting.x, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;starting.y, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;starting.z, stackpos&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;starting.stackpos&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
ending&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x, stackpos&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;253&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
players&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;
totalmonsters&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;
monster &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;repeat&lt;/span&gt;
creature&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getThingfromPos&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;checking&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
 &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; creature.itemid &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
 &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; getPlayerAccess&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;creature.uid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
 players&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;players+&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
 &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
  &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; getPlayerAccess&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;creature.uid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ~&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; getPlayerAccess&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;creature.uid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ~&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
 totalmonsters&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;totalmonsters+&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
  monster&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;totalmonsters&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;creature.uid
   &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
 &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
checking.x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;checking.x+&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
  &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; checking.x&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;ending.x &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
  checking.x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;starting.x
  checking.y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;checking.y+&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
 &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;until&lt;/span&gt; checking.y&lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt;ending.y
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; players&lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
trash&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;xxxx, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;x&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
current&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;repeat&lt;/span&gt;
current&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;current+&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
doTeleportThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;monster&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;current&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;,trash&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;until&lt;/span&gt; current&lt;span class=&quot;sy0&quot;&gt;&amp;gt;=&lt;/span&gt;totalmonsters
doTransformItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;item.uid,&lt;span class=&quot;nu0&quot;&gt;1946&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Następnie w pliku actions.xml dodajemy linijkę :
&lt;/p&gt;
&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;xxxx&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;quest12.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Koniec :]
&lt;/p&gt;
</description>
        <category>otspub</category>
            <pubDate>Sun, 03 Apr 2011 21:08:35 +0200</pubDate>
        </item>
        <item>
            <title>otspub:czyszczenie_domow</title>
            <link>http://otos.pl/doku.php/otspub/czyszczenie_domow?rev=1272489327</link>
            <description>
&lt;p&gt;
Autor: &lt;strong&gt;nsanee&lt;/strong&gt; &lt;br/&gt;

Licencja: &lt;strong&gt;nie wiem&lt;/strong&gt; &lt;br/&gt;

Skąd: &lt;a href=&quot;http://otland.net/f82/automagically-clean-unused-houses-multi-world-support-68986/&quot; class=&quot;urlextern&quot; title=&quot;http://otland.net/f82/automagically-clean-unused-houses-multi-world-support-68986/&quot;  rel=&quot;nofollow&quot;&gt;Link&lt;/a&gt; &lt;br/&gt;

Opracowanie: &lt;strong&gt;Moqill&lt;/strong&gt; &lt;br/&gt;

&lt;/p&gt;

&lt;p&gt;
Do globalevents.xml dodajemy:
&lt;/p&gt;
&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;globalevent&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;cleanhouses&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;start&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;cleanhouses.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
I do data/globalevents/script dodajemy cleanhouses.lua:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/czyszczenie_domow?do=export_code&amp;amp;codeblock=1&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;cleanhouses.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; config &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt; 
    days &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;30&lt;/span&gt;,  &lt;span class=&quot;co1&quot;&gt;-- po ilu dniach nieaktywnosci gracza ma byc czyszczony domek&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;log&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;, &lt;span class=&quot;co1&quot;&gt;-- czy ma byc wlaczone zapisywanie logow z czyszczonych domkow&lt;/span&gt;
    file &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getDataDir&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;/logs/cleanhouses.txt&amp;quot;&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;-- gdzie ma byc zapisywany plik logow&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;    
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; ns_query &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; SELECT houses.owner,houses.id,players.name FROM houses
                LEFT JOIN players ON players.id&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;houses.owner
                WHERE players.lastlogin &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;UNIX_TIMESTAMP&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; ..config.days.. &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;24&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;60&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;60&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                AND
                players.world_id &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; .. getConfigValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;worldId&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onStartup&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;_time&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
    &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; house &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; db.getResult&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ns_query&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; logs &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot; :: Houses cleaned:&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; house:getID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ~&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;repeat&lt;/span&gt;
            logs &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; logs .. getHouseInfo&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;house:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'id'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;.name ..&lt;span class=&quot;st0&quot;&gt;&amp;quot;, owned by &amp;quot;&lt;/span&gt; .. house:getDataString&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'name'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt;
            setHouseOwner&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;house:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'id'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;until&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;not&lt;/span&gt; house:&lt;span class=&quot;kw1&quot;&gt;next&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        house:free&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
        logs &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; logs .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;There were no houses to clean.&amp;quot;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; config.&lt;span class=&quot;kw1&quot;&gt;log&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
        doWriteLogFile&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;config.file, logs&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
    addEvent&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;doSaveServer, &lt;span class=&quot;nu0&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;
</description>
        <category>otspub</category>
            <pubDate>Wed, 28 Apr 2010 23:15:27 +0200</pubDate>
        </item>
        <item>
            <title>otspub:gdy_silnik_zerwie_polaczenie_z_baza</title>
            <link>http://otos.pl/doku.php/otspub/gdy_silnik_zerwie_polaczenie_z_baza?rev=1300206621</link>
            <description>
&lt;p&gt;
Autor: Karpio&lt;br/&gt;

Licencja: Róbta co chceta, tylko podajcie autora&lt;br/&gt;

&lt;em&gt;Testowane na silniku The Forgotten Server 0.4_DEV.r4086&lt;/em&gt;&lt;br/&gt;

&lt;br/&gt;

Wielu ma ten problem.
Co zrobić, gdy jesteśmy z dala od kompa, a The Forgotten Server zerwie połączenie z bazą danych?
Teraz jest na to rozwiązanie!
&lt;/p&gt;

&lt;p&gt;
W tym celu musimy trochę zedytować silnik.
Otwieramy plik globalevent.cpp i szukamy:
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;GlobalEventMap GlobalEvents::getEventMap(GlobalEvent_t type)&lt;/pre&gt;

&lt;p&gt;
następnie w tej funkcji szukamy:
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;case GLOBALEVENT_GLOBALSAVE:&lt;/pre&gt;

&lt;p&gt;
i pod tym doklejamy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/gdy_silnik_zerwie_polaczenie_z_baza?do=export_code&amp;amp;codeblock=2&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_cpp&quot;&gt;globalevent.cpp&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; GLOBALEVENT_LOSTCONNECTION&lt;span class=&quot;sy4&quot;&gt;:&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Następnie szukamy:
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;else if(tmpStrValue == &amp;quot;record&amp;quot; || tmpStrValue == &amp;quot;playersrecord&amp;quot;)
			m_eventType = GLOBALEVENT_RECORD;&lt;/pre&gt;

&lt;p&gt;
i pod tym dodajemy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/gdy_silnik_zerwie_polaczenie_z_baza?do=export_code&amp;amp;codeblock=4&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_cpp&quot;&gt;globalevent.cpp&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;tmpStrValue &lt;span class=&quot;sy1&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;lostconnection&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		     m_eventType &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; GLOBALEVENT_LOSTCONNECTION&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Potem szukamy:
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;case GLOBALEVENT_TIMER:
			return &amp;quot;onTime&amp;quot;;&lt;/pre&gt;

&lt;p&gt;
i pod tym dodajemy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/gdy_silnik_zerwie_polaczenie_z_baza?do=export_code&amp;amp;codeblock=6&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_cpp&quot;&gt;globalevent.cpp&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; GLOBALEVENT_LOSTCONNECTION&lt;span class=&quot;sy4&quot;&gt;:&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;onLostConnection&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Zapisujemy plik i otwieramy globalevent.h&lt;br/&gt;

Szukamy:
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;GLOBALEVENT_RECORD&lt;/pre&gt;

&lt;p&gt;
i po tym dopisujemy przecinek oraz
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/gdy_silnik_zerwie_polaczenie_z_baza?do=export_code&amp;amp;codeblock=8&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_h&quot;&gt;globalevent.h&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file h&quot;&gt;GLOBALEVENT_LOSTCONNECTION&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Zapisujemy.
&lt;/p&gt;

&lt;p&gt;
Udajemy się do databasemysql.cpp&lt;br/&gt;

Szukamy:
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;#include &amp;quot;configmanager.h&amp;quot;&lt;/pre&gt;

&lt;p&gt;
i pod tym doklejamy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/gdy_silnik_zerwie_polaczenie_z_baza?do=export_code&amp;amp;codeblock=10&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_cpp&quot;&gt;databasemysql.cpp&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;&lt;span class=&quot;co2&quot;&gt;#include &amp;quot;globalevent.h&amp;quot;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw4&quot;&gt;extern&lt;/span&gt; GlobalEvents&lt;span class=&quot;sy2&quot;&gt;*&lt;/span&gt; g_globalEvents&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Szukamy:
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;bool DatabaseMySQL::connect(bool _reconnect)
{
	if(_reconnect)
	{
		std::clog &amp;lt;&amp;lt; &amp;quot;WARNING: MYSQL Lost connection, attempting to reconnect...&amp;quot; &amp;lt;&amp;lt; std::endl;
		if(++m_attempts &amp;gt; MAX_RECONNECT_ATTEMPTS)
		{&lt;/pre&gt;

&lt;p&gt;
i pod tym doklejamy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/gdy_silnik_zerwie_polaczenie_z_baza?do=export_code&amp;amp;codeblock=12&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_cpp&quot;&gt;databasemysql.cpp&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;GlobalEventMap recordEvents &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; g_globalEvents&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;getEventMap&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;GLOBALEVENT_LOSTCONNECTION&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
	            &lt;span class=&quot;kw1&quot;&gt;for&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;GlobalEventMap&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;iterator&lt;/span&gt; it &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; recordEvents.&lt;span class=&quot;me1&quot;&gt;begin&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt; it &lt;span class=&quot;sy3&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; recordEvents.&lt;span class=&quot;me1&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;sy2&quot;&gt;++&lt;/span&gt;it&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	                it&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;second&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;executeEvent&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Tak aby cała ta funkcja wyglądała mniej więcej tak:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/gdy_silnik_zerwie_polaczenie_z_baza?do=export_code&amp;amp;codeblock=13&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_cpp&quot;&gt;databasemysq.cpp&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;&lt;span class=&quot;kw4&quot;&gt;bool&lt;/span&gt; DatabaseMySQL&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;connect&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw4&quot;&gt;bool&lt;/span&gt; _reconnect&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;_reconnect&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		std&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;clog&lt;/span&gt; &lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;WARNING: MYSQL Lost connection, attempting to reconnect...&amp;quot;&lt;/span&gt; &lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; std&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;endl&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy2&quot;&gt;++&lt;/span&gt;m_attempts &lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt; MAX_RECONNECT_ATTEMPTS&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
            GlobalEventMap recordEvents &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; g_globalEvents&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;getEventMap&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;GLOBALEVENT_LOSTCONNECTION&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
	            &lt;span class=&quot;kw1&quot;&gt;for&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;GlobalEventMap&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;iterator&lt;/span&gt; it &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; recordEvents.&lt;span class=&quot;me1&quot;&gt;begin&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt; it &lt;span class=&quot;sy3&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; recordEvents.&lt;span class=&quot;me1&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;sy2&quot;&gt;++&lt;/span&gt;it&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	                it&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;second&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;executeEvent&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
			std&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;clog&lt;/span&gt; &lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Failed connection to database - maximum reconnect attempts passed.&amp;quot;&lt;/span&gt; &lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; std&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;endl&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;mysql_real_connect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy3&quot;&gt;&amp;amp;&lt;/span&gt;m_handle, g_config.&lt;span class=&quot;me1&quot;&gt;getString&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ConfigManager&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;SQL_HOST&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;c_str&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, g_config.&lt;span class=&quot;me1&quot;&gt;getString&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;
		ConfigManager&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;SQL_USER&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;c_str&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, g_config.&lt;span class=&quot;me1&quot;&gt;getString&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ConfigManager&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;SQL_PASS&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;c_str&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, g_config.&lt;span class=&quot;me1&quot;&gt;getString&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;
		ConfigManager&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;SQL_DB&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;c_str&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, g_config.&lt;span class=&quot;me1&quot;&gt;getNumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ConfigManager&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;SQL_PORT&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw2&quot;&gt;NULL&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		m_attempts &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
	std&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;clog&lt;/span&gt; &lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Failed connecting to database - MYSQL ERROR: &amp;quot;&lt;/span&gt; &lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; mysql_error&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy3&quot;&gt;&amp;amp;&lt;/span&gt;m_handle&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot; (&amp;quot;&lt;/span&gt; &lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; mysql_errno&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy3&quot;&gt;&amp;amp;&lt;/span&gt;m_handle&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;)&amp;quot;&lt;/span&gt; &lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; std&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;endl&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Kompilujemy.&lt;br/&gt;

&lt;br/&gt;

Silnik mamy gotowy.&lt;br/&gt;

Teraz czas na LUA.&lt;br/&gt;

Wchodzimy w data/globalevents/globalevents.xml i doklejamy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/gdy_silnik_zerwie_polaczenie_z_baza?do=export_code&amp;amp;codeblock=14&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_xml&quot;&gt;globalevents.xml&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;globalevent&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;database&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;lostconnection&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;database.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Następnie wchodzimy w data/globalevents/scripts i tworzymy plik database.lua i wklejamy do niego:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/gdy_silnik_zerwie_polaczenie_z_baza?do=export_code&amp;amp;codeblock=15&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;database.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;co1&quot;&gt;-- System by Karpio&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;log&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onLostConnection&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;log&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; file &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;io.open&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getDataDir&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot;logs/server/connections.log&amp;quot;&lt;/span&gt;, &lt;span class=&quot;st0&quot;&gt;&amp;quot;a+&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		file:&lt;span class=&quot;kw1&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;[&amp;quot;&lt;/span&gt;..&lt;span class=&quot;kw1&quot;&gt;os.date&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;%c&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot;] Server (ID: &amp;quot;&lt;/span&gt;..getConfigValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;worldId&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot;) lost connection with database&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		file:close&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;os.exit&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
To wszystko. Od teraz Wasz OTS automatycznie się wyłączy przy zerwaniu połączenia z bazą (dopiero po wykorzystaniu limitu prób ponownego nawiązania połączenia).
&lt;/p&gt;
</description>
        <category>otspub</category>
            <pubDate>Tue, 15 Mar 2011 17:30:21 +0200</pubDate>
        </item>
        <item>
            <title>otspub:guild_broadcast_tfs_0.3._by_elf</title>
            <link>http://otos.pl/doku.php/otspub/guild_broadcast_tfs_0.3._by_elf?rev=1272462171</link>
            <description>
&lt;p&gt;
Autor: elf   &lt;a href=&quot;http://otland.net/f81/0-3-guild-broadcast-12069/&quot; class=&quot;urlextern&quot; title=&quot;http://otland.net/f81/0-3-guild-broadcast-12069/&quot;  rel=&quot;nofollow&quot;&gt;klik&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
Licencja: Rób co chcesz byle by nie zmieniać autora.
&lt;/p&gt;

&lt;p&gt;
Skrypt działa na zasadzie, że lider lub vice lider guild pisze do członków swojej guild na czerwono “jak gm” lecz widza to tylko członkowie danej guild!
&lt;/p&gt;

&lt;p&gt;
Teraz konkrety:
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;Część LUA&lt;/strong&gt;
&lt;/p&gt;

&lt;p&gt;
Wchodzimy do katalogu data/talkactions/scripts/  tworzymy plik guildcast.lua wklejmy do niego:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/guild_broadcast_tfs_0.3._by_elf?do=export_code&amp;amp;codeblock=0&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;guildcast.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, words, param&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; playerGuild &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerGuildId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; playerGuild &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; playerGuildLevel &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerGuildLevel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; playerGuildLevel &lt;span class=&quot;sy0&quot;&gt;&amp;gt;=&lt;/span&gt; GUILDLEVEL_VICE &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; players &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getOnlinePlayers&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; message &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;*Guild* &amp;quot;&lt;/span&gt; .. getCreatureName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot; [&amp;quot;&lt;/span&gt; .. getPlayerLevel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;]:&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt; .. param&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;for&lt;/span&gt; i,playerName &lt;span class=&quot;kw1&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;ipairs&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;players&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;do&lt;/span&gt;
				&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; player &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerByName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;playerName&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
				&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; getPlayerGuildId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; playerGuild &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
					doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;player, MESSAGE_STATUS_WARNING, message&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
				&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
			doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Message sent to whole guild.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
			doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;You have to be at least Vice-Leader to guildcast!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
		doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Sorry, you're not in a guild.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
	doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;, words&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; FALSE
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Teraz przechodzimy do data/talkactions/talkactions.xml i tak dodajemy linijkę:
&lt;/p&gt;
&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;talkaction&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;filter&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;word&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;words&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;/bg&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;script&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;guildcast.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
W grze lider guild urzywa to komendą &lt;strong&gt;/bg teskt&lt;/strong&gt;
&lt;/p&gt;
</description>
        <category>otspub</category>
            <pubDate>Wed, 28 Apr 2010 15:42:51 +0200</pubDate>
        </item>
        <item>
            <title>otspub:item_dajacy_losowy_item</title>
            <link>http://otos.pl/doku.php/otspub/item_dajacy_losowy_item?rev=1301857375</link>
            <description>
&lt;p&gt;
w actions.xml dodajemy linijke:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/item_dajacy_losowy_item?do=export_code&amp;amp;codeblock=0&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_xml&quot;&gt;actions.xml&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;itemid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;ID ITEMA&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;script&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;box.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
do data/actions dodajemy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/item_dajacy_losowy_item?do=export_code&amp;amp;codeblock=1&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;box.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onUse&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, item, frompos, item2, topos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
   rand &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
      &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; item.itemid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2156&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
&amp;nbsp;
         &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; rand &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
&amp;nbsp;
         doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;22&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;Thanks for donate&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; 
&amp;nbsp;
   doRemoveItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;item.uid, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
   doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;96&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
   doPlayerAddItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;2443&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
         &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; rand &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
&amp;nbsp;
         doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;22&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;Thanks for donate&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; 
&amp;nbsp;
   doRemoveItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;item.uid, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
      doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;96&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
      doPlayerAddItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;2412&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
         &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; rand &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
&amp;nbsp;
         doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;22&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;Thanks for donate&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; 
&amp;nbsp;
   doRemoveItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;item.uid, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
      doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;96&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
      doPlayerAddItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;2425&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
         &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; rand &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
&amp;nbsp;
         doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;22&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;Thanks for donate&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; 
&amp;nbsp;
   doRemoveItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;item.uid, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
      doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;96&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
      doPlayerAddItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;2390&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
         &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
         doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;22&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;Thanks for donate&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
   doRemoveItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;item.uid, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
      doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;96&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
      doPlayerAddItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;2411&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
         &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&amp;nbsp;
    &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt;
&amp;nbsp;
    &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;
</description>
        <category>otspub</category>
            <pubDate>Sun, 03 Apr 2011 21:02:55 +0200</pubDate>
        </item>
        <item>
            <title>otspub:item_regenerujacy_hp_mp</title>
            <link>http://otos.pl/doku.php/otspub/item_regenerujacy_hp_mp?rev=1301857470</link>
            <description>
&lt;p&gt;
do actions.xml dodajemy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/item_regenerujacy_hp_mp?do=export_code&amp;amp;codeblock=0&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_xml&quot;&gt;actions.xml&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file xml&quot;&gt;   &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;itemid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;ITEM ID&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;script&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;pills/soldier.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;
&amp;nbsp;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
tworzymy plik soldier.lua w data/actions i wlejamy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/item_regenerujacy_hp_mp?do=export_code&amp;amp;codeblock=1&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;soldier.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onUse&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, item, frompos, item2, topos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; exhausted_seconds &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; exhausted_storagevalue &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;74&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt;  mp &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0.20&lt;/span&gt;  &lt;span class=&quot;co1&quot;&gt;-- 0.ILE MA DAWAĆ MP W %&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt;  hp &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0.20&lt;/span&gt;  &lt;span class=&quot;co1&quot;&gt;-- 0.ILE MA DAWAĆ HP W %&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
 &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; isPlayer&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;os.time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;=&lt;/span&gt; getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, exhausted_storagevalue&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
               doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, CONST_ME_POFF&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;You are exchausted.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
       &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;item.&lt;span class=&quot;kw1&quot;&gt;type&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;topos,&lt;span class=&quot;nu0&quot;&gt;40&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doCreatureAddMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;kw1&quot;&gt;math.floor&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;mp&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;kw1&quot;&gt;math.floor&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;hp&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
               setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, exhausted_storagevalue, &lt;span class=&quot;kw1&quot;&gt;os.time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + exhausted_seconds&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
               doChangeTypeItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;item.uid, item.&lt;span class=&quot;kw1&quot;&gt;type&lt;/span&gt; - &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;topos,&lt;span class=&quot;nu0&quot;&gt;40&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doCreatureAddMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;kw1&quot;&gt;math.floor&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreatureMaxMana&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;mp&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;kw1&quot;&gt;math.floor&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreatureMaxHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;hp&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
               setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, exhausted_storagevalue, &lt;span class=&quot;kw1&quot;&gt;os.time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + exhausted_seconds&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
               doRemoveItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;item.uid, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
      &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;
</description>
        <category>otspub</category>
            <pubDate>Sun, 03 Apr 2011 21:04:30 +0200</pubDate>
        </item>
        <item>
            <title>otspub:lottery_system_v2_by_vdk_and_kleksu</title>
            <link>http://otos.pl/doku.php/otspub/lottery_system_v2_by_vdk_and_kleksu?rev=1272474501</link>
            <description>
&lt;p&gt;
Autor: vDk oraz klekSu.   &lt;a href=&quot;http://otland.net/f82/lottery-system-v2-45937/&quot; class=&quot;urlextern&quot; title=&quot;http://otland.net/f82/lottery-system-v2-45937/&quot;  rel=&quot;nofollow&quot;&gt;klik&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
Licencja: Rób co chcesz byle by nie zmieniać autora
&lt;/p&gt;

&lt;p&gt;
Skrypt losuje z pośród podanych ID itemów gracza który otrzymuje jedna z nich loteria może się odbywać w co określony czas.
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;Część LUA&lt;/strong&gt;
&lt;/p&gt;

&lt;p&gt;
Przechodzimy do katalogu data/lib/function.lua tak doklejamy:
&lt;/p&gt;
&lt;pre class=&quot;code file lua&quot;&gt;  &lt;span class=&quot;co1&quot;&gt;-- by masteuszx&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; getPlayerWorldId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;not&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;isPlayer&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;false&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; pid &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerGUID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; worldPlayer &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; result_plr &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; db.getResult&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;SELECT * FROM `players` WHERE `id` = &amp;quot;&lt;/span&gt;..pid..&lt;span class=&quot;st0&quot;&gt;&amp;quot;;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;result_plr:getID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ~&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                worldPlayer &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;result_plr:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;world_id&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                result_plr:free&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;false&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; worldPlayer
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt; &lt;/pre&gt;

&lt;p&gt;
Kolejnym krokiem jest data/globalevents/scripts/ i utworzenie tam pliku lottery.lua a jego zawartość to:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/lottery_system_v2_by_vdk_and_kleksu?do=export_code&amp;amp;codeblock=1&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;lottery.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;  &lt;span class=&quot;co1&quot;&gt;-- by vDk, klekSu&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; config &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
    lottery_hour &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;3 Hours&amp;quot;&lt;/span&gt;, &lt;span class=&quot;co1&quot;&gt;-- Time to next lottery (real time you set on globalevents.xml, its only for broadcast message.)&lt;/span&gt;
    rewards_id &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2494&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2472&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2514&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2160&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;co1&quot;&gt;-- Rewards ID&lt;/span&gt;
    crystal_counts &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;, &lt;span class=&quot;co1&quot;&gt;-- used only if on rewards_id you have crystal coins (ID: 2160).&lt;/span&gt;
    website &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;yes&amp;quot;&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;-- Do you have `lottery` table in your database?&lt;/span&gt;
    &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onThink&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;interval, lastExecution&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; players &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayersOnline&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; list &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;for&lt;/span&gt; i, tid &lt;span class=&quot;kw1&quot;&gt;in&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;ipairs&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;players&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;do&lt;/span&gt;
    list&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;i&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; tid
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; winner &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; list&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, #list&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; random_item &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; config.rewards_id&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, #config.rewards_id&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; item_name &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;  getItemNameById&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;random_item&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; world &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerWorldId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;winner&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;random_item &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2160&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                        doPlayerAddItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;winner, random_item, config.crystal_counts&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        doBroadcastMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'[LOTTERY SYSTEM] Winner: '&lt;/span&gt;.. getCreatureName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;winner&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ..&lt;span class=&quot;st0&quot;&gt;', Reward: '&lt;/span&gt;.. config.crystal_counts ..&lt;span class=&quot;st0&quot;&gt;' '&lt;/span&gt;.. item_name ..&lt;span class=&quot;st0&quot;&gt;'s! Congratulations! (Next Lottery in '&lt;/span&gt;.. config.lottery_hour ..&lt;span class=&quot;st0&quot;&gt;')'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                        doBroadcastMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'[LOTTERY SYSTEM] Winner: '&lt;/span&gt;.. getCreatureName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;winner&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ..&lt;span class=&quot;st0&quot;&gt;', Reward: '&lt;/span&gt;.. item_name ..&lt;span class=&quot;st0&quot;&gt;'! Congratulations! (Next Lottery in '&lt;/span&gt;.. config.lottery_hour ..&lt;span class=&quot;st0&quot;&gt;')'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        doPlayerAddItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;winner, random_item, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;config.website &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;yes&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                        db.executeQuery&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;INSERT INTO `lottery` (`name`, `item`, `world_id`) VALUES ('&amp;quot;&lt;/span&gt;.. getCreatureName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;winner&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ..&lt;span class=&quot;st0&quot;&gt;&amp;quot;', '&amp;quot;&lt;/span&gt;.. item_name ..&lt;span class=&quot;st0&quot;&gt;&amp;quot;', '&amp;quot;&lt;/span&gt;.. world ..&lt;span class=&quot;st0&quot;&gt;&amp;quot;');&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; TRUE
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt; &lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Teraz przechodzimy do data/globalevents/globalevents.xml i tam doklejamy jedna linijkę:
&lt;/p&gt;
&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;globalevent name&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;lottery&amp;quot;&lt;/span&gt; interval&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;10800&amp;quot;&lt;/span&gt; event&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; value&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;lottery.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Gdzie 10800 to liczba sekund co ile bedzie losowanie. Jeśli zmienisz np na 6 godzin nie zapomnij zmienić tego wyżej w skrypcie!
lottery_hour = “x Hours”!
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;Część &lt;acronym title=&quot;Hypertext Preprocessor&quot;&gt;PHP&lt;/acronym&gt; &lt;/strong&gt;
&lt;/p&gt;

&lt;p&gt;
W naszym acc makerze tworzymy plik lottery.php
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/lottery_system_v2_by_vdk_and_kleksu?do=export_code&amp;amp;codeblock=3&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_php&quot;&gt;lottery.php&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file php&quot;&gt;// by vDk, klekSu
&lt;span class=&quot;kw2&quot;&gt;&amp;lt;?PHP&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$lottery&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$SQL&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;query&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'SELECT id, name, item, world_id FROM lottery WHERE world_id = 0 ORDER BY id DESC LIMIT 1;'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;foreach&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$lottery&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$result&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;center&amp;gt;&amp;lt;h1&amp;gt;Lottery&amp;lt;/h1&amp;gt;&amp;lt;/center&amp;gt;
&amp;lt;table width=&amp;quot;100%&amp;quot;&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;center&amp;gt;Every X hours we will choose one player who will win random item!&amp;lt;br/&amp;gt;&amp;lt;br /&amp;gt;
Last Winner on World0: &amp;lt;a href=&amp;quot;?subtopic=characters&amp;amp;name='&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;a href=&quot;http://www.php.net/urlencode&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;urlencode&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$result&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'name'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot;&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$result&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'name'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/a&amp;gt; won &amp;lt;i&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$result&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'item'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/i&amp;gt; Congratulations!&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$lottery2&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$SQL&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;query&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'SELECT id, name, item, world_id FROM lottery WHERE world_id = 1 ORDER BY id DESC LIMIT 1;'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;foreach&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$lottery2&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$result&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'Last Winner on World1: &amp;lt;a href=&amp;quot;?subtopic=characters&amp;amp;name='&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;a href=&quot;http://www.php.net/urlencode&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;urlencode&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$result&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'name'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot;&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$result&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'name'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/a&amp;gt; won &amp;lt;i&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$result&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'item'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/i&amp;gt; Congratulations!&amp;lt;/center&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/table&amp;gt;&amp;lt;br /&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;sy1&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Nie zapomnij dodać też tego do index.php:
&lt;/p&gt;
&lt;pre class=&quot;code file php&quot;&gt;&amp;nbsp;
      &lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;lottery&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
          &lt;span class=&quot;re0&quot;&gt;$topic&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Lottery System&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
          &lt;span class=&quot;re0&quot;&gt;$subtopic&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;lottery&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
          &lt;span class=&quot;kw1&quot;&gt;include&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;lottery.php&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
      &lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;/pre&gt;

&lt;p&gt;
Oraz dodaj odpowiednie rzeczy do layouta!
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt; Część &lt;acronym title=&quot;Structured Query Language&quot;&gt;SQL&lt;/acronym&gt; &lt;/strong&gt;
&lt;/p&gt;

&lt;p&gt;
Po pierwsze dodaj:
&lt;/p&gt;
&lt;pre class=&quot;code file sql&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;TABLE&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`lottery`&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;
   &lt;span class=&quot;st0&quot;&gt;`id`&lt;/span&gt; int&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;AUTO_INCREMENT&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
   &lt;span class=&quot;st0&quot;&gt;`name`&lt;/span&gt; varchar&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;255&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
   &lt;span class=&quot;st0&quot;&gt;`item`&lt;/span&gt; varchar&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;255&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
   &lt;span class=&quot;st0&quot;&gt;`world_id`&lt;/span&gt; tinyint&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;UNSIGNED&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;DEFAULT&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;'0'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;PRIMARY&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;KEY&lt;/span&gt;  &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;`id`&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
 &lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ENGINE&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;MyISAM  &lt;span class=&quot;kw1&quot;&gt;DEFAULT&lt;/span&gt; CHARSET&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;latin1 &lt;span class=&quot;kw1&quot;&gt;AUTO_INCREMENT&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; ;
&amp;nbsp;
&amp;nbsp;
&lt;span class=&quot;sy0&quot;&gt;=====&lt;/span&gt; ORAZ &lt;span class=&quot;sy0&quot;&gt;=====&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;INSERT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;INTO&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`lottery`&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;`id`&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`name`&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`item`&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`world_id`&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;VALUES&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;'Nobody'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;'nothing'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/pre&gt;

&lt;p&gt;
No i gotowe! Brawo!
&lt;/p&gt;
</description>
        <category>otspub</category>
            <pubDate>Wed, 28 Apr 2010 19:08:21 +0200</pubDate>
        </item>
        <item>
            <title>otspub:multi_world</title>
            <link>http://otos.pl/doku.php/otspub/multi_world?rev=1294689325</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot;&gt;&lt;a name=&quot;multi_world_system&quot; id=&quot;multi_world_system&quot;&gt;Multi World System&lt;/a&gt;&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
Multi World System, czyli to co ma CipSoft, a każdy szanujący się admin chce mieć.
&lt;/p&gt;

&lt;p&gt;
Dzisiaj opiszę, jak można coś takiego zrobić.
&lt;/p&gt;

&lt;p&gt;
A więc zaczynamy.
&lt;/p&gt;

&lt;p&gt;
Najpierw pobieramy źródła silniczka (nie wiem skąd, to mało ważne).
Następnie przy kompilacji jak dochodzimy do:
&lt;em&gt;./configure&lt;/em&gt;
&lt;/p&gt;

&lt;p&gt;
to w parametrach doklejamy:
&lt;strong&gt;&lt;em&gt;–enable-login-server&lt;/em&gt;&lt;/strong&gt; (przed słowem &lt;em&gt;enable&lt;/em&gt; są dwa znaki &amp;#039;-&amp;#039;)
&lt;/p&gt;

&lt;p&gt;
i kompilujemy.
&lt;/p&gt;

&lt;p&gt;
Silniczek mamy gotowy.
Teraz czas na data/&lt;acronym title=&quot;Extensible Markup Language&quot;&gt;XML&lt;/acronym&gt;/servers.xml
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/multi_world?do=export_code&amp;amp;codeblock=0&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_xml&quot;&gt;servers.xml&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;?xml&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;version&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;1.0&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;encoding&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;UTF-8&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;servers&lt;span class=&quot;re2&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;server&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;id&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;0&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;NPVP&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;versionMin&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;870&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;versionMax&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;870&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;address&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;127.0.0.1&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;port&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;7172&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;server&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;id&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;1&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;PVP&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;versionMin&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;870&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;versionMax&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;870&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;address&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;127.0.0.1&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;port&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;7174&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;/servers&lt;span class=&quot;re2&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Teraz wyjaśnienie:
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;id&lt;/strong&gt; - jest to nr identyfikujący świat z config.lua (o nim za chwilkę)&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;name&lt;/strong&gt; - jest to nazwa naszego świata, która będzie się wyświetlała na liście postaci&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;versionMin&lt;/strong&gt; i &lt;strong&gt;versionMax&lt;/strong&gt; - są to obsługiwane przez serwer wersje klienta tibii&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;address&lt;/strong&gt; - adres ip serwera lub też host&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;port&lt;/strong&gt; - jest to &lt;em class=&quot;u&quot;&gt;game&lt;/em&gt; port&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
Listę serwerów mamy już z głowy, teraz ich konfiguracja. Główny świat jest domyślnie dobrze skonfigurowany.
Czas na drugi. Otwieramy &lt;em&gt;config.lua&lt;/em&gt; i szukamy takich linijek:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/multi_world?do=export_code&amp;amp;codeblock=1&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;config.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;worldId &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;
loginPort &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;7171&lt;/span&gt;
gamePort &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;7172&lt;/span&gt;
loginOnlyWithLoginServer &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;false&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;worldId&lt;/strong&gt; - tutaj podajemy te samo id co w &lt;em&gt;servers.xml&lt;/em&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;loginPort&lt;/strong&gt; - wpisujemy jakiś nie używany port (nie będzie nam potrzebny)&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;gamePort&lt;/strong&gt; - wpisujemy tutaj port taki sam jak w &lt;em&gt;servers.xml&lt;/em&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;loginOnlyWithLoginServer&lt;/strong&gt; - jako, że z tego serwera i tak nikt nie będzie się logował, zmieniamy to na true (usuniemy w ten sposób, nieprzyjemny dla oka efekt przeskoku na listę postaci w drugim serwerze&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
W analogiczny sposób możemy dodać nieskończenie wiele światów.
Trzeba tylko pamiętać, że za serwer do logowania robi nasz główny o loginPort=7171 i worldId=0, więc jeśli go wyłączycie to nie da się zalogować na inne światy.
&lt;/p&gt;

&lt;p&gt;
Odnośnie &lt;em&gt;worldId&lt;/em&gt; - najlepiej numerować po kolei. Maksymalnie może to być 99. Jeśli chcemy więcej, musimy już się pobawić &lt;img src=&quot;http://otos.pl/lib/images/smileys/icon_razz.gif&quot; class=&quot;middle&quot; alt=&quot;:-P&quot; /&gt;
&lt;/p&gt;

&lt;/div&gt;
</description>
        <category>otspub</category>
            <pubDate>Mon, 10 Jan 2011 20:55:25 +0200</pubDate>
        </item>
        <item>
            <title>otspub:nasze_otsy</title>
            <link>http://otos.pl/doku.php/otspub/nasze_otsy?rev=1304720970</link>
            <description>
&lt;p&gt;
&lt;br/&gt;

&lt;br/&gt;

&lt;img src=&quot;http://otos.pl/lib/images/smileys/fixme.gif&quot; class=&quot;middle&quot; alt=&quot;FIXME&quot; /&gt; Nieaktualne
&lt;/p&gt;

&lt;p&gt;
&lt;br/&gt;

Można śmiało dopisywać własne na końcu listy.
&lt;/p&gt;

&lt;h2 class=&quot;sectionedit2&quot;&gt;&lt;a name=&quot;aktualne&quot; id=&quot;aktualne&quot;&gt;Aktualne&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;/div&gt;
&lt;!-- EDIT2 SECTION &quot;Aktualne&quot; [81-100] --&gt;
&lt;h2 class=&quot;sectionedit3&quot;&gt;&lt;a name=&quot;zaprzyjaznione&quot; id=&quot;zaprzyjaznione&quot;&gt;Zaprzyjaźnione&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;/div&gt;
&lt;!-- EDIT3 SECTION &quot;Zaprzyjaźnione&quot; [101-126] --&gt;
&lt;h3 class=&quot;sectionedit4&quot;&gt;&lt;a name=&quot;alveria&quot; id=&quot;alveria&quot;&gt;Alveria&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://alveria.pl&quot; class=&quot;urlextern&quot; title=&quot;http://alveria.pl&quot;  rel=&quot;nofollow&quot;&gt;http://alveria.pl&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: maara&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT4 SECTION &quot;Alveria&quot; [127-187] --&gt;
&lt;h3 class=&quot;sectionedit5&quot;&gt;&lt;a name=&quot;marten&quot; id=&quot;marten&quot;&gt;Marten&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://martenots.pl&quot; class=&quot;urlextern&quot; title=&quot;http://martenots.pl&quot;  rel=&quot;nofollow&quot;&gt;http://martenots.pl&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: maara&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT5 SECTION &quot;Marten&quot; [188-249] --&gt;
&lt;h3 class=&quot;sectionedit6&quot;&gt;&lt;a name=&quot;finistera&quot; id=&quot;finistera&quot;&gt;Finistera&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://finistera.pl&quot; class=&quot;urlextern&quot; title=&quot;http://finistera.pl&quot;  rel=&quot;nofollow&quot;&gt;http://finistera.pl&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: maara&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT6 SECTION &quot;Finistera&quot; [250-314] --&gt;
&lt;h3 class=&quot;sectionedit7&quot;&gt;&lt;a name=&quot;seldora&quot; id=&quot;seldora&quot;&gt;Seldora&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://seldora.pl&quot; class=&quot;urlextern&quot; title=&quot;http://seldora.pl&quot;  rel=&quot;nofollow&quot;&gt;http://seldora.pl&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: maara&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT7 SECTION &quot;Seldora&quot; [315-375] --&gt;
&lt;h2 class=&quot;sectionedit8&quot;&gt;&lt;a name=&quot;dawne&quot; id=&quot;dawne&quot;&gt;Dawne&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;/div&gt;
&lt;!-- EDIT8 SECTION &quot;Dawne&quot; [376-391] --&gt;
&lt;h3 class=&quot;sectionedit9&quot;&gt;&lt;a name=&quot;orshabaal&quot; id=&quot;orshabaal&quot;&gt;Orshabaal&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://orshabaal.mine.nu&quot; class=&quot;urlextern&quot; title=&quot;http://orshabaal.mine.nu&quot;  rel=&quot;nofollow&quot;&gt;http://orshabaal.mine.nu&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: Boomer&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT9 SECTION &quot;Orshabaal&quot; [392-461] --&gt;
&lt;h3 class=&quot;sectionedit10&quot;&gt;&lt;a name=&quot;valleria&quot; id=&quot;valleria&quot;&gt;Valleria&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://valleria.pl&quot; class=&quot;urlextern&quot; title=&quot;http://valleria.pl&quot;  rel=&quot;nofollow&quot;&gt;http://valleria.pl&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: wariatq&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT10 SECTION &quot;Valleria&quot; [462-526] --&gt;
&lt;h3 class=&quot;sectionedit11&quot;&gt;&lt;a name=&quot;tisania&quot; id=&quot;tisania&quot;&gt;Tisania&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://tisania.pl&quot; class=&quot;urlextern&quot; title=&quot;http://tisania.pl&quot;  rel=&quot;nofollow&quot;&gt;http://tisania.pl&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: wariatq&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT11 SECTION &quot;Tisania&quot; [527-589] --&gt;
&lt;h3 class=&quot;sectionedit12&quot;&gt;&lt;a name=&quot;valturia_ots&quot; id=&quot;valturia_ots&quot;&gt;Valturia OTS&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://valturia.pl&quot; class=&quot;urlextern&quot; title=&quot;http://valturia.pl&quot;  rel=&quot;nofollow&quot;&gt;http://valturia.pl&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: Karpio&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT12 SECTION &quot;Valturia OTS&quot; [590-657] --&gt;
&lt;h3 class=&quot;sectionedit13&quot;&gt;&lt;a name=&quot;superevo_ots&quot; id=&quot;superevo_ots&quot;&gt;SuperEvo OTS&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://superevo.pl&quot; class=&quot;urlextern&quot; title=&quot;http://superevo.pl&quot;  rel=&quot;nofollow&quot;&gt;http://superevo.pl&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: kielb&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT13 SECTION &quot;SuperEvo OTS&quot; [658-724] --&gt;
&lt;h3 class=&quot;sectionedit14&quot;&gt;&lt;a name=&quot;best-evo_ots&quot; id=&quot;best-evo_ots&quot;&gt;Best-evo OTS&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://best-evo.pl&quot; class=&quot;urlextern&quot; title=&quot;http://best-evo.pl&quot;  rel=&quot;nofollow&quot;&gt;http://best-evo.pl&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: Bartek&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT14 SECTION &quot;Best-evo OTS&quot; [725-792] --&gt;
&lt;h3 class=&quot;sectionedit15&quot;&gt;&lt;a name=&quot;evoparty&quot; id=&quot;evoparty&quot;&gt;Evoparty&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://evoparty.pl&quot; class=&quot;urlextern&quot; title=&quot;http://evoparty.pl&quot;  rel=&quot;nofollow&quot;&gt;http://evoparty.pl&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: Lanceq&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT15 SECTION &quot;Evoparty&quot; [793-856] --&gt;
&lt;h3 class=&quot;sectionedit16&quot;&gt;&lt;a name=&quot;noveriaots&quot; id=&quot;noveriaots&quot;&gt;NoveriaOTS&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; adres: &lt;a href=&quot;http://noveriaots.pl/&quot; class=&quot;urlextern&quot; title=&quot;http://noveriaots.pl/&quot;  rel=&quot;nofollow&quot;&gt;http://noveriaots.pl/&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; admin: kowol&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; rekord: 167 graczy&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://realot.noveriaots.pl/&quot; class=&quot;urlextern&quot; title=&quot;http://realot.noveriaots.pl/&quot;  rel=&quot;nofollow&quot;&gt;http://realot.noveriaots.pl/&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: kowol&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT16 SECTION &quot;NoveriaOTS&quot; [857-1005] --&gt;
&lt;h3 class=&quot;sectionedit17&quot;&gt;&lt;a name=&quot;fumbiliapl&quot; id=&quot;fumbiliapl&quot;&gt;Fumbilia.pl&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; adres: &lt;a href=&quot;http://fumbilia.pl/&quot; class=&quot;urlextern&quot; title=&quot;http://fumbilia.pl/&quot;  rel=&quot;nofollow&quot;&gt;http://fumbilia.pl/&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; admin: Moqill&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; rekord: ~170 graczy&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT17 SECTION &quot;Fumbilia.pl&quot; [1006-1099] --&gt;
&lt;h3 class=&quot;sectionedit18&quot;&gt;&lt;a name=&quot;hardcore_pvp_server&quot; id=&quot;hardcore_pvp_server&quot;&gt;Hardcore PvP Server&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; adres: &lt;a href=&quot;http://war.net.pl/&quot; class=&quot;urlextern&quot; title=&quot;http://war.net.pl/&quot;  rel=&quot;nofollow&quot;&gt;http://war.net.pl/&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; admin: Boomer&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; rekord: ~50 graczy&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT18 SECTION &quot;Hardcore PvP Server&quot; [1100-1199] --&gt;
&lt;h3 class=&quot;sectionedit19&quot;&gt;&lt;a name=&quot;restia&quot; id=&quot;restia&quot;&gt;Restia&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; adres: &lt;a href=&quot;http://restia.net.pl/&quot; class=&quot;urlextern&quot; title=&quot;http://restia.net.pl/&quot;  rel=&quot;nofollow&quot;&gt;http://restia.net.pl/&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; admin: Boomer&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; rekord: ~40 graczy&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT19 SECTION &quot;Restia&quot; [1200-1289] --&gt;
&lt;h3 class=&quot;sectionedit20&quot;&gt;&lt;a name=&quot;vistia&quot; id=&quot;vistia&quot;&gt;Vistia&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; adres: &lt;a href=&quot;http://vistia.pl/&quot; class=&quot;urlextern&quot; title=&quot;http://vistia.pl/&quot;  rel=&quot;nofollow&quot;&gt;http://vistia.pl/&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; admin: Boomer&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; rekord: ~110 graczy&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT20 SECTION &quot;Vistia&quot; [1290-1376] --&gt;
&lt;h3 class=&quot;sectionedit21&quot;&gt;&lt;a name=&quot;noobwar&quot; id=&quot;noobwar&quot;&gt;NoobWAR&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; adres: &lt;a href=&quot;http://noobwar.net.pl/&quot; class=&quot;urlextern&quot; title=&quot;http://noobwar.net.pl/&quot;  rel=&quot;nofollow&quot;&gt;http://noobwar.net.pl/&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; admin: Boomer&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; rekord: ~50 graczy&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT21 SECTION &quot;NoobWAR&quot; [1377-1468] --&gt;
&lt;h3 class=&quot;sectionedit22&quot;&gt;&lt;a name=&quot;riveria&quot; id=&quot;riveria&quot;&gt;Riveria&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://riveria.pl&quot; class=&quot;urlextern&quot; title=&quot;http://riveria.pl&quot;  rel=&quot;nofollow&quot;&gt;http://riveria.pl&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: adiko&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;rekord: ~200 graczy&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT22 SECTION &quot;Riveria&quot; [1469-1552] --&gt;
&lt;h3 class=&quot;sectionedit23&quot;&gt;&lt;a name=&quot;rageots&quot; id=&quot;rageots&quot;&gt;RageOTS&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://rageots.net&quot; class=&quot;urlextern&quot; title=&quot;http://rageots.net&quot;  rel=&quot;nofollow&quot;&gt;http://rageots.net&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: Buruniu&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;rekord: 173 graczy&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT23 SECTION &quot;RageOTS&quot; [1553-1638] --&gt;
&lt;h3 class=&quot;sectionedit24&quot;&gt;&lt;a name=&quot;renevia_ots&quot; id=&quot;renevia_ots&quot;&gt;Renevia OTS&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://renevia.com.pl&quot; class=&quot;urlextern&quot; title=&quot;http://renevia.com.pl&quot;  rel=&quot;nofollow&quot;&gt;http://renevia.com.pl&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: Micki&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;rekord: ~67 graczy&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT24 SECTION &quot;Renevia OTS&quot; [1639-1729] --&gt;
&lt;h3 class=&quot;sectionedit25&quot;&gt;&lt;a name=&quot;xamax_ots&quot; id=&quot;xamax_ots&quot;&gt;XamaX OTS&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://xamaxots.pl&quot; class=&quot;urlextern&quot; title=&quot;http://xamaxots.pl&quot;  rel=&quot;nofollow&quot;&gt;http://xamaxots.pl&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: Micki&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;rekord: ~170 graczy&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT25 SECTION &quot;XamaX OTS&quot; [1730-1816] --&gt;
&lt;h3 class=&quot;sectionedit26&quot;&gt;&lt;a name=&quot;megaevo_ots&quot; id=&quot;megaevo_ots&quot;&gt;MegaEvo OTS&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://megaevo.pl&quot; class=&quot;urlextern&quot; title=&quot;http://megaevo.pl&quot;  rel=&quot;nofollow&quot;&gt;http://megaevo.pl&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: Micki&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;rekord: ~85 graczy&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT26 SECTION &quot;MegaEvo OTS&quot; [1817-1903] --&gt;
&lt;h3 class=&quot;sectionedit27&quot;&gt;&lt;a name=&quot;selvera_custom_map&quot; id=&quot;selvera_custom_map&quot;&gt;Selvera Custom Map&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://selvera.pl&quot; class=&quot;urlextern&quot; title=&quot;http://selvera.pl&quot;  rel=&quot;nofollow&quot;&gt;http://selvera.pl&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: Micki&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;rekord: ~87 graczy&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT27 SECTION &quot;Selvera Custom Map&quot; [1904-1997] --&gt;
&lt;h3 class=&quot;sectionedit28&quot;&gt;&lt;a name=&quot;selvera_real_map&quot; id=&quot;selvera_real_map&quot;&gt;Selvera Real Map&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://selvera.pl/&quot; class=&quot;urlextern&quot; title=&quot;http://selvera.pl/&quot;  rel=&quot;nofollow&quot;&gt;http://selvera.pl/&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: Micki&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;rekord: ~30 graczy&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT28 SECTION &quot;Selvera Real Map&quot; [1998-2090] --&gt;
&lt;h3 class=&quot;sectionedit29&quot;&gt;&lt;a name=&quot;battleworld_ots&quot; id=&quot;battleworld_ots&quot;&gt;Battleworld OTS&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://battleworld.pl/&quot; class=&quot;urlextern&quot; title=&quot;http://battleworld.pl/&quot;  rel=&quot;nofollow&quot;&gt;http://battleworld.pl/&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: Micki&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;rekord: ~25 graczy&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT29 SECTION &quot;Battleworld OTS&quot; [2091-2186] --&gt;
&lt;h3 class=&quot;sectionedit30&quot;&gt;&lt;a name=&quot;vizardia_ots&quot; id=&quot;vizardia_ots&quot;&gt;Vizardia OTS&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://vizardia.pl&quot; class=&quot;urlextern&quot; title=&quot;http://vizardia.pl&quot;  rel=&quot;nofollow&quot;&gt;http://vizardia.pl&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: Micki&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;rekord: ~85 graczy&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT30 SECTION &quot;Vizardia OTS&quot; [2187-2275] --&gt;
&lt;h3 class=&quot;sectionedit31&quot;&gt;&lt;a name=&quot;visteria_ots&quot; id=&quot;visteria_ots&quot;&gt;Visteria OTS&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://visteria.net/&quot; class=&quot;urlextern&quot; title=&quot;http://visteria.net/&quot;  rel=&quot;nofollow&quot;&gt;http://visteria.net/&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: Micki&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;rekord: ~180 graczy&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT31 SECTION &quot;Visteria OTS&quot; [2276-2367] --&gt;
&lt;h3 class=&quot;sectionedit32&quot;&gt;&lt;a name=&quot;arkantes&quot; id=&quot;arkantes&quot;&gt;Arkantes&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://arkantes.pl&quot; class=&quot;urlextern&quot; title=&quot;http://arkantes.pl&quot;  rel=&quot;nofollow&quot;&gt;http://arkantes.pl&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: Soolus&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;rekord: ~370 graczy&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT32 SECTION &quot;Arkantes&quot; [2368-2458] --&gt;
&lt;h3 class=&quot;sectionedit33&quot;&gt;&lt;a name=&quot;realia_ots&quot; id=&quot;realia_ots&quot;&gt;Realia OTS&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;adres: &lt;a href=&quot;http://realiaots.eu&quot; class=&quot;urlextern&quot; title=&quot;http://realiaots.eu&quot;  rel=&quot;nofollow&quot;&gt;http://realiaots.eu&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;admin: kielb&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt;rekord: ~330 graczy&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;/div&gt;
&lt;!-- EDIT33 SECTION &quot;Realia OTS&quot; [2459-] --&gt;</description>
        <category>otspub</category>
            <pubDate>Sat, 07 May 2011 00:29:30 +0200</pubDate>
        </item>
        <item>
            <title>otspub:npc_misje</title>
            <link>http://otos.pl/doku.php/otspub/npc_misje?rev=1275486414</link>
            <description>
&lt;p&gt;
&lt;strong&gt;Autor:&lt;/strong&gt; przemo_92
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;Licencja:&lt;/strong&gt; Nie znana
&lt;/p&gt;

&lt;p&gt;
Tworzymy w data/npc plik bilbo.xml i wklejamy to:
&lt;/p&gt;
&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;npc&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;Bilbo Baggins&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;script&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;data/npc/scripts/bilbo.lua&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;walkinterval&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;1&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;floorchange&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;0&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;access&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;5&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;level&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;1&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;maglevel&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;1&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;health&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;now&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;100&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;max&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;100&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;look&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;132&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;head&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;57&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;body&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;59&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;legs&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;40&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;feet&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;76&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;addons&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;3&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;parameters&lt;span class=&quot;re2&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;parameter&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;key&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;message_greet&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;Witaj |PLAYERNAME|. Z pewnoscia Gandalf Cie tu przyslal. Nim dostaniesz pierscien musisz dla mnie cos zrobic.&amp;quot;&lt;/span&gt; &lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;/parameters&lt;span class=&quot;re2&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;/npc&lt;span class=&quot;re2&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Teraz tworzymy w data/npc/scripts plik bilbo.lua i wklejamy to:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/npc_misje?do=export_code&amp;amp;codeblock=1&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;bilbo.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;co1&quot;&gt;------STORAGE-------&lt;/span&gt;
&lt;span class=&quot;co1&quot;&gt;------100 do 104-------&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; keywordHandler &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; KeywordHandler:new&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; npcHandler &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; NpcHandler:new&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;keywordHandler&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
NpcSystem.parseParameters&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;npcHandler&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; talkState &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; item1 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2666&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; item2 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2671&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; item3 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2667&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; item4 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2692&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; item5 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;11128&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onCreatureAppear&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; npcHandler:onCreatureAppear&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onCreatureDisappear&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; npcHandler:onCreatureDisappear&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onCreatureSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;kw1&quot;&gt;type&lt;/span&gt;, msg&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; npcHandler:onCreatureSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;kw1&quot;&gt;type&lt;/span&gt;, msg&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onThink&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; npcHandler:onThink&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; creatureSayCallback&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;kw1&quot;&gt;type&lt;/span&gt;, msg&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;not&lt;/span&gt; npcHandler:isFocused&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;false&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; talkUser &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; NPCHANDLER_CONVBEHAVIOR &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; CONVERSATION_DEFAULT &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; cid
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;msgcontains&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;msg, &lt;span class=&quot;st0&quot;&gt;'pierscien'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Nim otrzymasz pierscien musisz dla mnie cos zrobic, mam dla Ciebie 5 zadan, po wykonaniu ich otrzymasz jedyny pierscien. Pamietaj jednak ze nie mozesz go zgubic, chron go i nie dawaj nikomu.(aby rozpoczac misje wpisz pokolei MISJA1,MISJA2..)'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;co1&quot;&gt;---------------------------------------------------------&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;msgcontains&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;msg, &lt;span class=&quot;st0&quot;&gt;'misja1'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Niedlugo wyruszam w podroz i potrzebuje paru rzeczy. Przynies mi 10 kawalkow miesa.'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
talkState&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;talkUser&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;msgcontains&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;msg, &lt;span class=&quot;st0&quot;&gt;'mieso'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; talkState&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;talkUser&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Wykonales juz ta misje.'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;doPlayerRemoveItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, item1, &lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; TRUE&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
doPlayerAddExperience&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'No dziekuje Ci za te mieso. (otrzymales 1000pkt doswiadczenia)'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Potrzebuje 10 kawalkow miesa..'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;co1&quot;&gt;----------------------------------------------------------&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;msgcontains&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;msg, &lt;span class=&quot;st0&quot;&gt;'misja2'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Przynies mi jeszcze 5 kawalkow szynki.'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
talkState&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;talkUser&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;msgcontains&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;msg, &lt;span class=&quot;st0&quot;&gt;'szynka'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; talkState&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;talkUser&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Najpierw przynies mi 10 kawalkow miesa.'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;101&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Wykonales juz ta misje.'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;doPlayerRemoveItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, item2, &lt;span class=&quot;nu0&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; TRUE&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;101&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
doPlayerAddExperience&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;1500&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Dzieki za szynke (otrzymujesz 1500pkt doswiadczenia)'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Potrzebuje 5 kawalkow szynki..'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;co1&quot;&gt;----------------------------------------------------------&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;msgcontains&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;msg, &lt;span class=&quot;st0&quot;&gt;'misja3'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Bede potrzebowal jeszcze 15 ryb.'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
talkState&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;talkUser&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;msgcontains&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;msg, &lt;span class=&quot;st0&quot;&gt;'ryby'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; talkState&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;talkUser&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;101&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Najpierw przynies mi 10 kawalkow miesa i 5 kawalkow szynki.'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;102&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Wykonales juz ta misje.'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;doPlayerRemoveItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, item3, &lt;span class=&quot;nu0&quot;&gt;15&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; TRUE&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;102&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
doPlayerAddExperience&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;2000&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'No bardzo ladne rybki, dziekuje. (otrzymales 2000pkt doswiadczenia)'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Potrzebuje 15 ryb..'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;co1&quot;&gt;----------------------------------------------------------&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;msgcontains&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;msg, &lt;span class=&quot;st0&quot;&gt;'misja4'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Przynies mi 10 sztuk maki, mozna ja kupic od Teda Sandmana albo samemu zrobic u niego w mlynie..'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
talkState&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;talkUser&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;msgcontains&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;msg, &lt;span class=&quot;st0&quot;&gt;'maka'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; talkState&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;talkUser&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;102&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Wykonaj moje poprzednie polecenia..'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;103&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Wykonales juz ta misje.'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;doPlayerRemoveItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, item4, &lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; TRUE&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;103&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
doPlayerAddExperience&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;2500&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'No tyle maki mi wystarczy (otrzymales 2500pkt doswiadczenia)'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Za malo tej maki..'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;co1&quot;&gt;----------------------------------------------------------&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;msgcontains&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;msg, &lt;span class=&quot;st0&quot;&gt;'misja5'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Znajdz Pippina i Merrego Brandybuckow, ukradli oni moja ksiazke. Bardzo mi na niej zalezy, bez niej nie udam sie w podroz. '&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
talkState&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;talkUser&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;msgcontains&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;msg, &lt;span class=&quot;st0&quot;&gt;'ksiazka'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; talkState&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;talkUser&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;103&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Przynies najpierw mi jedzenie i make..'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;104&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Wykonales juz ta misje.'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;doPlayerRemoveItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, item5, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; TRUE&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;104&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
doPlayerAddExperience&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;3000&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Ooo dziekuje bardzo. Mam juz wszystko co mi potrzebne do podrozy. Masz tutaj Pierscien. (otrzymales Jedyny Pierscien i 3000pkt doswiadczenia)'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
selfSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Potrzebuje ksiazki ktora ukradli Merry i Pippin..'&lt;/span&gt;, cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;co1&quot;&gt;----------------------------------------------------------&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
&lt;span class=&quot;co1&quot;&gt;----------------------------------------------------------&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
npcHandler:setCallback&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;CALLBACK_MESSAGE_DEFAULT, creatureSayCallback&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
npcHandler:addModule&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;FocusModule:new&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;  &lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;
</description>
        <category>otspub</category>
            <pubDate>Wed, 02 Jun 2010 15:46:54 +0200</pubDate>
        </item>
        <item>
            <title>otspub:ondroploot_event</title>
            <link>http://otos.pl/doku.php/otspub/ondroploot_event?rev=1302803894</link>
            <description>
&lt;p&gt;
&lt;strong&gt;Autor: &lt;em&gt;Karpio&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;

&lt;strong&gt;Testowane na:&lt;/strong&gt; &lt;em&gt;The Forgotten Server 0.4_DEV.r4086&lt;/em&gt;&lt;br/&gt;

&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;onDropLoot&lt;/strong&gt;, jest to funkcja do creaturescripts wykonywana w momencie losowania loota :D
&lt;/p&gt;

&lt;p&gt;
A więc zaczynamy&lt;br/&gt;

Otwieramy plik monster.cpp
i zamieniamy całą funkcję
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/ondroploot_event?do=export_code&amp;amp;codeblock=0&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_cpp&quot;&gt;monster.cpp&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;&lt;span class=&quot;kw4&quot;&gt;void&lt;/span&gt; Monster&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;dropLoot&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;Container&lt;span class=&quot;sy2&quot;&gt;*&lt;/span&gt; corpse&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
na:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/ondroploot_event?do=export_code&amp;amp;codeblock=1&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_cpp&quot;&gt;monster.cpp&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;&lt;span class=&quot;kw4&quot;&gt;void&lt;/span&gt; Monster&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;dropLoot&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;Container&lt;span class=&quot;sy2&quot;&gt;*&lt;/span&gt; corpse&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
    &lt;span class=&quot;kw4&quot;&gt;bool&lt;/span&gt; status &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
    CreatureEventList dropLootEvents &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; getCreatureEvents&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;CREATURE_EVENT_DROP_LOOT&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;for&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;CreatureEventList&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;iterator&lt;/span&gt; it &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; dropLootEvents.&lt;span class=&quot;me1&quot;&gt;begin&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt; it &lt;span class=&quot;sy3&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; dropLootEvents.&lt;span class=&quot;me1&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;sy2&quot;&gt;++&lt;/span&gt;it&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy3&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy2&quot;&gt;*&lt;/span&gt;it&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;executeDropLoot&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;this&lt;/span&gt;, corpse&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy3&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; status&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; status &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy3&quot;&gt;!&lt;/span&gt;status&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;corpse &lt;span class=&quot;sy3&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; lootDrop &lt;span class=&quot;sy1&quot;&gt;==&lt;/span&gt; LOOT_DROP_FULL&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		mType&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;dropLoot&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;corpse&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Dalej otwieramy player.cpp, szukamy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/ondroploot_event?do=export_code&amp;amp;codeblock=2&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_cpp&quot;&gt;player.cpp&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;&lt;span class=&quot;kw4&quot;&gt;void&lt;/span&gt; Player&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;dropLoot&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;Container&lt;span class=&quot;sy2&quot;&gt;*&lt;/span&gt; corpse&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy3&quot;&gt;!&lt;/span&gt;corpse &lt;span class=&quot;sy3&quot;&gt;||&lt;/span&gt; lootDrop &lt;span class=&quot;sy3&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; LOOT_DROP_FULL&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
i pod tym doklejamy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/ondroploot_event?do=export_code&amp;amp;codeblock=3&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_cpp&quot;&gt;player.cpp&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;&lt;span class=&quot;kw4&quot;&gt;bool&lt;/span&gt; status &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
	CreatureEventList dropLootEvents &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; getCreatureEvents&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;CREATURE_EVENT_DROP_LOOT&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;for&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;CreatureEventList&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;iterator&lt;/span&gt; it &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; dropLootEvents.&lt;span class=&quot;me1&quot;&gt;begin&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt; it &lt;span class=&quot;sy3&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; dropLootEvents.&lt;span class=&quot;me1&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;sy2&quot;&gt;++&lt;/span&gt;it&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy3&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy2&quot;&gt;*&lt;/span&gt;it&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;executeDropLoot&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;this&lt;/span&gt;, corpse&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy3&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; status&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; status &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy3&quot;&gt;!&lt;/span&gt;status&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
&amp;nbsp;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Otwieramy creatureevent.h&lt;br/&gt;

Szukamy: CREATURE_EVENT_KILL,
i pod tym doklejamy:
&lt;strong&gt;CREATURE_EVENT_DROP_LOOT,&lt;/strong&gt;
&lt;/p&gt;

&lt;p&gt;
Szukamy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/ondroploot_event?do=export_code&amp;amp;codeblock=4&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_h&quot;&gt;creatureevent.h&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;&lt;span class=&quot;kw4&quot;&gt;uint32_t&lt;/span&gt; executeKill&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;Creature&lt;span class=&quot;sy2&quot;&gt;*&lt;/span&gt; creature, Creature&lt;span class=&quot;sy2&quot;&gt;*&lt;/span&gt; target, &lt;span class=&quot;kw4&quot;&gt;const&lt;/span&gt; DeathEntry&lt;span class=&quot;sy3&quot;&gt;&amp;amp;&lt;/span&gt; entry&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
I pod tym doklejamy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/ondroploot_event?do=export_code&amp;amp;codeblock=5&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_h&quot;&gt;creatureevent.h&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;&lt;span class=&quot;kw4&quot;&gt;uint32_t&lt;/span&gt; executeDropLoot&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;Creature&lt;span class=&quot;sy2&quot;&gt;*&lt;/span&gt; creature, Container&lt;span class=&quot;sy2&quot;&gt;*&lt;/span&gt; corpse&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Otwieramy creatureevent.cpp i szukamy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/ondroploot_event?do=export_code&amp;amp;codeblock=6&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_cpp&quot;&gt;creatureevent.cpp&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;&lt;span class=&quot;kw4&quot;&gt;uint32_t&lt;/span&gt; CreatureEvent&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;executeKill&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;Creature&lt;span class=&quot;sy2&quot;&gt;*&lt;/span&gt; creature, Creature&lt;span class=&quot;sy2&quot;&gt;*&lt;/span&gt; target, &lt;span class=&quot;kw4&quot;&gt;const&lt;/span&gt; DeathEntry&lt;span class=&quot;sy3&quot;&gt;&amp;amp;&lt;/span&gt; entry&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
 i pod całym blokiem tej funkcji doklejamy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/ondroploot_event?do=export_code&amp;amp;codeblock=7&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_cpp&quot;&gt;creatureevent.cpp&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;&lt;span class=&quot;kw4&quot;&gt;uint32_t&lt;/span&gt; CreatureEvent&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;executeDropLoot&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;Creature&lt;span class=&quot;sy2&quot;&gt;*&lt;/span&gt; creature, Container&lt;span class=&quot;sy2&quot;&gt;*&lt;/span&gt; corpse&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
	&lt;span class=&quot;co1&quot;&gt;//onDropLoot(cid, corpse)&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;m_interface&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;reserveEnv&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		ScriptEnviroment&lt;span class=&quot;sy2&quot;&gt;*&lt;/span&gt; env &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; m_interface&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;getEnv&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;m_scripted &lt;span class=&quot;sy1&quot;&gt;==&lt;/span&gt; EVENT_SCRIPT_BUFFER&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
			env&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;setRealPos&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;creature&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;getPosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
			std&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;stringstream&lt;/span&gt; scriptstream&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
			scriptstream &lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;local cid = &amp;quot;&lt;/span&gt; &lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; env&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;addThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;creature&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; std&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;endl&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
            scriptstream &lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;local corpse = &amp;quot;&lt;/span&gt; &lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; env&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;addThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;corpse&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; std&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;endl&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
			scriptstream &lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; m_scriptData&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
			&lt;span class=&quot;kw4&quot;&gt;bool&lt;/span&gt; result &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw2&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;m_interface&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;loadBuffer&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;scriptstream.&lt;span class=&quot;me1&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
				lua_State&lt;span class=&quot;sy2&quot;&gt;*&lt;/span&gt; L &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; m_interface&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;getState&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
				result &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; m_interface&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;getGlobalBool&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;L, &lt;span class=&quot;st0&quot;&gt;&amp;quot;_result&amp;quot;&lt;/span&gt;, &lt;span class=&quot;kw2&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
			&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
			m_interface&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;releaseEnv&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; result&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
		&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
			&lt;span class=&quot;co2&quot;&gt;#ifdef __DEBUG_LUASCRIPTS__&lt;/span&gt;
			std&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;stringstream&lt;/span&gt; desc&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
			desc &lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; player&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;getName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
			env&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;setEventDesc&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;desc.&lt;span class=&quot;me1&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
			&lt;span class=&quot;co2&quot;&gt;#endif&lt;/span&gt;
&amp;nbsp;
			env&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;setScriptId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;m_scriptId, m_interface&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
			env&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;setRealPos&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;creature&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;getPosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
			lua_State&lt;span class=&quot;sy2&quot;&gt;*&lt;/span&gt; L &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; m_interface&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;getState&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
			m_interface&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;pushFunction&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;m_scriptId&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
			lua_pushnumber&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;L, env&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;addThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;creature&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
			lua_pushnumber&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;L, env&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;addThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;corpse&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
			&lt;span class=&quot;kw4&quot;&gt;bool&lt;/span&gt; result &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; m_interface&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;callFunction&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
			m_interface&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;releaseEnv&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; result&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		std&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;cout&lt;/span&gt; &lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;[Error - CreatureEvent::executeDropLoot] Call stack overflow.&amp;quot;&lt;/span&gt; &lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; std&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;endl&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Szukamy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/ondroploot_event?do=export_code&amp;amp;codeblock=8&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_cpp&quot;&gt;creatureevent.cpp&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;tmpStr &lt;span class=&quot;sy1&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;kill&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		m_type &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; CREATURE_EVENT_KILL&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
i pod tym doklejamy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/ondroploot_event?do=export_code&amp;amp;codeblock=9&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_cpp&quot;&gt;creatureevent.cpp&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;tmpStr &lt;span class=&quot;sy1&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;droploot&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        m_type &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; CREATURE_EVENT_DROP_LOOT&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
&amp;nbsp;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Szukamy
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/ondroploot_event?do=export_code&amp;amp;codeblock=10&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_cpp&quot;&gt;creatureevent.cpp&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; CREATURE_EVENT_KILL&lt;span class=&quot;sy4&quot;&gt;:&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;onKill&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
i pod tym doklejamy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/ondroploot_event?do=export_code&amp;amp;codeblock=11&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_cpp&quot;&gt;creatureevent.cpp&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; CREATURE_EVENT_DROP_LOOT&lt;span class=&quot;sy4&quot;&gt;:&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;onDropLoot&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Szukamy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/ondroploot_event?do=export_code&amp;amp;codeblock=12&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_cpp&quot;&gt;creatureevent.cpp&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; CREATURE_EVENT_LOGIN&lt;span class=&quot;sy4&quot;&gt;:&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;cid&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
i pod tym doklejamy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/ondroploot_event?do=export_code&amp;amp;codeblock=13&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_cpp&quot;&gt;creatureevent.cpp&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; CREATURE_EVENT_DROP_LOOT&lt;span class=&quot;sy4&quot;&gt;:&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;cid, corpse&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Zapisujemy i kompilujemy i to na tyle :)
&lt;/p&gt;

&lt;p&gt;
Przykładowe użycie:&lt;br/&gt;

Do data/creaturescripts/scripts dodajemy plik onDropLoot.lua
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/ondroploot_event?do=export_code&amp;amp;codeblock=14&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_cpp&quot;&gt;onDropLoot.cpp&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onDropLoot&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, corpse&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreatureName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;:lower&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;demon&amp;quot;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; isMonster&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;5&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; 
			doAddContainerItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;corpse, &lt;span class=&quot;nu0&quot;&gt;9932&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;-- add firewalker boots to loot&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Plik data/creaturescripts/creaturescripts.xml:
&lt;/p&gt;
&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;creatureevent&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;droploot&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;onDropLoot&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;onDropLoot.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Plik data/creaturescripts/scripts/kill.lua po function onKill() doklejamy:
&lt;/p&gt;
&lt;pre class=&quot;code file lua&quot;&gt;registerCreatureEvent&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;target, &lt;span class=&quot;st0&quot;&gt;&amp;quot;onDropLoot&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
&lt;br/&gt;

Skrypt sprawi, że jeśli zabijemy demca to mamy 20% szansy, że do loota doda nam firewalker boots.&lt;br/&gt;

Wiem, że się zaraz zapytacie, po co to skoro można ustawić szanse w pliku xml monstera.&lt;br/&gt;

Odpowiedź:&lt;br/&gt;

A no po to, że dzięki temu możemy też ustawiać, losowe statystyki dla loota, oraz locić przedmioty z określonym aid (np. klucze xD).&lt;br/&gt;

&lt;br/&gt;

PS. w skrypcie LUA &lt;strong&gt;return false&lt;/strong&gt; spowoduje, że nie pojawi się nawet ciało po zgonie więc radzę uważać :P
&lt;/p&gt;
</description>
        <category>otspub</category>
            <pubDate>Thu, 14 Apr 2011 19:58:14 +0200</pubDate>
        </item>
        <item>
            <title>otspub:ots-informacje</title>
            <link>http://otos.pl/doku.php/otspub/ots-informacje?rev=1274006568</link>
            <description>
&lt;p&gt;
&lt;img src=&quot;http://otos.pl/lib/images/smileys/fixme.gif&quot; class=&quot;middle&quot; alt=&quot;FIXME&quot; /&gt; Przemyśleć
&lt;/p&gt;

&lt;h2 class=&quot;sectionedit34&quot;&gt;&lt;a name=&quot;informacje_ktore_potrzebujemy&quot; id=&quot;informacje_ktore_potrzebujemy&quot;&gt;Informacje, które potrzebujemy&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; czy masz skończone 15 lat?&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; czy miałeś wcześniej u nas konto?&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;
&lt;em&gt; skłamanie na powyższe pytania może skutkować bezwarunkowym banem&lt;/em&gt;
&lt;/p&gt;
&lt;ol&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; ile megabajtów ma mapa?&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; czy będziesz używał naszego konta dotpay?&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; skąd dokładnie się o nas dowiedziałeś (jeśli z forum to z którego wątku)?&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;/div&gt;
&lt;!-- EDIT34 SECTION &quot;Informacje, które potrzebujemy&quot; [20-] --&gt;</description>
        <category>otspub</category>
            <pubDate>Sun, 16 May 2010 12:42:48 +0200</pubDate>
        </item>
        <item>
            <title>otspub:podglad_pw_na_ots</title>
            <link>http://otos.pl/doku.php/otspub/podglad_pw_na_ots?rev=1298231875</link>
            <description>
&lt;p&gt;
Autor: Karpio&lt;br/&gt;

Licencja: Rób ta co chce ta&lt;br/&gt;

&lt;br/&gt;

Najpierw &lt;acronym title=&quot;Structured Query Language&quot;&gt;SQL&lt;/acronym&gt;:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/podglad_pw_na_ots?do=export_code&amp;amp;codeblock=0&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_txt&quot;&gt;sql.txt&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file SQL&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;TABLE&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;IF&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;EXISTS&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`private_messages`&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;
  &lt;span class=&quot;st0&quot;&gt;`player`&lt;/span&gt; varchar&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;st0&quot;&gt;`receiver`&lt;/span&gt; varchar&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;st0&quot;&gt;`msg`&lt;/span&gt; varchar&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;255&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;st0&quot;&gt;`time`&lt;/span&gt; bigint&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;32&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ENGINE&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;MyISAM &lt;span class=&quot;kw1&quot;&gt;DEFAULT&lt;/span&gt; CHARSET&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;latin1;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Potem wchodzimy w game.cpp (źródła silnika) i szukamy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/podglad_pw_na_ots?do=export_code&amp;amp;codeblock=1&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_cpp&quot;&gt;find.cpp&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;&lt;span class=&quot;kw4&quot;&gt;bool&lt;/span&gt; Game&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;playerSpeakTo&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;Player&lt;span class=&quot;sy2&quot;&gt;*&lt;/span&gt; player, SpeakClasses type, &lt;span class=&quot;kw4&quot;&gt;const&lt;/span&gt; std&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;sy3&quot;&gt;&amp;amp;&lt;/span&gt; receiver, &lt;span class=&quot;kw4&quot;&gt;const&lt;/span&gt; std&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;string&lt;/span&gt;&lt;span class=&quot;sy3&quot;&gt;&amp;amp;&lt;/span&gt; text&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
i w tej funkcji pod
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/podglad_pw_na_ots?do=export_code&amp;amp;codeblock=2&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_cpp&quot;&gt;pod.cpp&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;sprintf&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;buffer, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Message sent to %s.&amp;quot;&lt;/span&gt;, toPlayer&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;getName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span class=&quot;me1&quot;&gt;c_str&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
doklejamy
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/podglad_pw_na_ots?do=export_code&amp;amp;codeblock=3&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_cpp&quot;&gt;doklejamy.cpp&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file cpp&quot;&gt;Database&lt;span class=&quot;sy2&quot;&gt;*&lt;/span&gt; db &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; Database&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;getInstance&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
	DBQuery query&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
	std&lt;span class=&quot;sy4&quot;&gt;::&lt;/span&gt;&lt;span class=&quot;me2&quot;&gt;string&lt;/span&gt; txt &lt;span class=&quot;sy1&quot;&gt;=&lt;/span&gt; text&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;	
	replaceString&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;txt, &lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es1&quot;&gt;\\&lt;/span&gt;&amp;quot;&lt;/span&gt;, &lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es1&quot;&gt;\\&lt;/span&gt;&lt;span class=&quot;es1&quot;&gt;\\&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
	replaceString&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;txt, &lt;span class=&quot;st0&quot;&gt;&amp;quot;'&amp;quot;&lt;/span&gt;, &lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es1&quot;&gt;\\&lt;/span&gt;&lt;span class=&quot;es1&quot;&gt;\'&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
	query &lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;INSERT INTO `private_messages` (`player`, `receiver`, `msg`, `time`) VALUES('&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;player&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;getGUID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;', '&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;toPlayer&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;getGUID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;', '&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;txt&lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;', '&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;kw3&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw2&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;');&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
    db&lt;span class=&quot;sy2&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;sy1&quot;&gt;&amp;gt;&lt;/span&gt;query&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;query.&lt;span class=&quot;me1&quot;&gt;str&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy4&quot;&gt;;&lt;/span&gt;
&amp;nbsp;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
I kompilujemy.
Od tej pory nasz silnik loguje wszystko w Bazie.
&lt;/p&gt;

&lt;p&gt;
A teraz jak to podejrzeć?
Bardzo łatwo.
Dodaj to do swojej strony www:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/podglad_pw_na_ots?do=export_code&amp;amp;codeblock=4&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_php&quot;&gt;pwcheck.php&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file php&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;&amp;lt;?php&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;include&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;config-and-functions.php&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/isset&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;isset&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$_REQUEST&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;target&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$_GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;pass&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;!==&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;WTF123ValturiaOts&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;a href=&quot;http://www.php.net/die&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;die&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Page not found.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;re0&quot;&gt;$target&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$ots&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;createObject&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Player&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;re0&quot;&gt;$target&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;find&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$_REQUEST&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;target&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$target&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;isLoaded&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;a href=&quot;http://www.php.net/die&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;die&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Target not found.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;re0&quot;&gt;$rt&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/isset&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;isset&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$_REQUEST&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;receiver&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		&lt;span class=&quot;re0&quot;&gt;$r&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$ots&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;createObject&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Player&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;re0&quot;&gt;$r&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;find&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$_REQUEST&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;receiver&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;!&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$r&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;isLoaded&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;a href=&quot;http://www.php.net/die&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;die&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Receiver not found.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;re0&quot;&gt;$rt&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot; OR `receiver`=&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$r&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;getId&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span class=&quot;co2&quot;&gt;#
&lt;/span&gt;	&lt;span class=&quot;re0&quot;&gt;$querytime_before&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/array_sum&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;array_sum&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/explode&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;explode&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;' '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;a href=&quot;http://www.php.net/microtime&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;microtime&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;re0&quot;&gt;$private&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$SQL&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;query&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;SELECT * FROM `private_messages` WHERE `player`=&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$target&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;getId&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$rt&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot; ORDER BY `time` DESC LIMIT 150;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;fetchAll&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;re0&quot;&gt;$querytime_after&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/array_sum&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;array_sum&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/explode&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;explode&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;' '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;a href=&quot;http://www.php.net/microtime&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;microtime&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;table&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td celspan=&amp;quot;3&amp;quot;&amp;gt;&amp;lt;em&amp;gt;Wykonanie zapytania trwało '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$querytime_after&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$querytime_before&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'s.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;re0&quot;&gt;$i&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;foreach&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$private&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$pw&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		&lt;span class=&quot;re0&quot;&gt;$player&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$ots&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;createObject&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Player&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;re0&quot;&gt;$player&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;load&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$pw&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;player&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;re0&quot;&gt;$receiver&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$ots&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;createObject&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Player&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;re0&quot;&gt;$receiver&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;load&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$pw&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'receiver'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;tr bgcolor=&amp;quot;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/is_int&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;is_int&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$i&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ? &lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'site'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'lightborder'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'site'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'darkborder'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot;&amp;gt;&amp;lt;td&amp;gt;['&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;a href=&quot;http://www.php.net/date&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;date&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;d.m.Y H:i&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$pw&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'time'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;']&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$player&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;isLoaded&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ? &lt;span class=&quot;re0&quot;&gt;$player&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;getName&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Unknown&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/strong&amp;gt; -&amp;gt; &amp;lt;strong&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$receiver&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;isLoaded&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ? &lt;span class=&quot;re0&quot;&gt;$receiver&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;getName&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Unknown&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/strong&amp;gt;: &amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;em&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$pw&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'msg'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/em&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;	
		&lt;span class=&quot;re0&quot;&gt;$i&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;++;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/table&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$_GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;pass&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;!==&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;ToJestTwojeHaslo&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;a href=&quot;http://www.php.net/die&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;die&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Page not found.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;re0&quot;&gt;$querytime_before&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/array_sum&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;array_sum&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/explode&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;explode&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;' '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;a href=&quot;http://www.php.net/microtime&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;microtime&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;re0&quot;&gt;$private&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$SQL&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;query&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;SELECT * FROM `private_messages` ORDER BY `time` DESC LIMIT 150;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;fetchAll&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;re0&quot;&gt;$querytime_after&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/array_sum&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;array_sum&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/explode&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;explode&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;' '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;a href=&quot;http://www.php.net/microtime&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;microtime&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;table&amp;gt;&amp;lt;em&amp;gt;Wykonanie zapytania trwało '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$querytime_after&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$querytime_before&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'s.&amp;lt;/em&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;re0&quot;&gt;$i&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;foreach&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$private&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$pw&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		&lt;span class=&quot;re0&quot;&gt;$player&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$ots&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;createObject&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Player&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;re0&quot;&gt;$player&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;load&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$pw&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;player&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;re0&quot;&gt;$receiver&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$ots&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;createObject&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Player&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;re0&quot;&gt;$receiver&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;load&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$pw&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'receiver'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;tr bgcolor=&amp;quot;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/is_int&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;is_int&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$i&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ? &lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'site'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'lightborder'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'site'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'darkborder'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot;&amp;gt;&amp;lt;td&amp;gt;['&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;a href=&quot;http://www.php.net/date&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;date&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;d.m.Y H:i&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$pw&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'time'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;']&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$player&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;isLoaded&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ? &lt;span class=&quot;re0&quot;&gt;$player&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;getName&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Unknown&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/strong&amp;gt; -&amp;gt; &amp;lt;strong&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$receiver&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;isLoaded&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ? &lt;span class=&quot;re0&quot;&gt;$receiver&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;getName&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;:&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Unknown&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/strong&amp;gt;: &amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;em&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$pw&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'msg'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/em&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;	
		&lt;span class=&quot;re0&quot;&gt;$i&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;++;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/table&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;sy1&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Jak w to wejść?
wpisujemy w adres przeglądarki: TWOJE_IP/pwcheck.php?pass=ToJestTwojeHaslo
&lt;/p&gt;

&lt;p&gt;
Oczywiście można odfiltrować konkretnych graczy.&lt;br/&gt;

poprzez dopisanie do linku:&lt;br/&gt;

&lt;strong&gt;&amp;amp;target=NICK&lt;/strong&gt; - wyszukanie tylko tych wiadomości, które wysłał ten gracz&lt;br/&gt;

&lt;strong&gt;&amp;amp;receiver=NICK&lt;/strong&gt; - wyszukanie tylko tych wiadomości, które otrzymał ten gracz&lt;br/&gt;

&lt;br/&gt;

Oczywiście można połączyć te dwa dodatki, aby otrzymać pełne logi rozmów tych dwóch graczy.&lt;br/&gt;

&lt;/p&gt;
</description>
        <category>otspub</category>
            <pubDate>Sun, 20 Feb 2011 20:57:55 +0200</pubDate>
        </item>
        <item>
            <title>otspub:poi_by_moqill</title>
            <link>http://otos.pl/doku.php/otspub/poi_by_moqill?rev=1273228556</link>
            <description>
&lt;p&gt;
&lt;code&gt;Autor: &lt;strong&gt;Moqill&lt;/strong&gt;&lt;br/&gt;

Licencja: &lt;strong&gt;open source&lt;/strong&gt;&lt;br/&gt;

Testowane: &lt;strong&gt;TFS 0.4_&lt;/strong&gt;\\&lt;/code&gt;
&lt;/p&gt;

&lt;p&gt;
Oto pliczek który dodajemy za pomocą:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/poi_by_moqill?do=export_code&amp;amp;codeblock=0&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_xml&quot;&gt;action.xml&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file xml&quot;&gt;	&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;2040-2057&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;script&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;quests/poi/stones.lua&amp;quot;&lt;/span&gt; &lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/poi_by_moqill?do=export_code&amp;amp;codeblock=1&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;stone.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; config &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		&lt;span class=&quot;co1&quot;&gt;-- 1 sala&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2040&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;stone &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;608&lt;/span&gt;, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;646&lt;/span&gt;, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;, stoneid&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1304&lt;/span&gt;, switch&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1945&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2041&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;stone &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;608&lt;/span&gt;, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;645&lt;/span&gt;, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;, stoneid&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1304&lt;/span&gt;, switch&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1945&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2042&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;stone &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;608&lt;/span&gt;, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;644&lt;/span&gt;, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;, stoneid&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1304&lt;/span&gt;, switch&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1945&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
		&lt;span class=&quot;co1&quot;&gt;-- 2 sala&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2043&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;stone &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;649&lt;/span&gt;, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;645&lt;/span&gt;, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;, stoneid&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1304&lt;/span&gt;, switch&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1945&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2044&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;stone &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;650&lt;/span&gt;, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;645&lt;/span&gt;, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;, stoneid&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1304&lt;/span&gt;, switch&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1945&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2045&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;stone &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;651&lt;/span&gt;, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;645&lt;/span&gt;, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;, stoneid&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1304&lt;/span&gt;, switch&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1945&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
		&lt;span class=&quot;co1&quot;&gt;-- 3 sale z fioletowymi ogniami&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2046&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;stone &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;660&lt;/span&gt;, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;650&lt;/span&gt;, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;, stoneid&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1304&lt;/span&gt;, switch&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1945&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2047&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;stone &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;662&lt;/span&gt;, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;650&lt;/span&gt;, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;, stoneid&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1304&lt;/span&gt;, switch&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1945&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2048&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;stone &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;664&lt;/span&gt;, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;650&lt;/span&gt;, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;, stoneid&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1304&lt;/span&gt;, switch&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1945&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2049&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;stone &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;666&lt;/span&gt;, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;650&lt;/span&gt;, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;, stoneid&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1304&lt;/span&gt;, switch&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1945&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
		&lt;span class=&quot;co1&quot;&gt;-- ostatnia sala 8 kamieni&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2050&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;stone &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;684&lt;/span&gt;, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;650&lt;/span&gt;, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;60&lt;/span&gt;, stoneid&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1304&lt;/span&gt;, switch&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1945&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2051&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;stone &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;685&lt;/span&gt;, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;650&lt;/span&gt;, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;60&lt;/span&gt;, stoneid&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1304&lt;/span&gt;, switch&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1945&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2052&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;stone &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;686&lt;/span&gt;, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;650&lt;/span&gt;, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;60&lt;/span&gt;, stoneid&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1304&lt;/span&gt;, switch&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1945&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2053&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;stone &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;687&lt;/span&gt;, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;650&lt;/span&gt;, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;60&lt;/span&gt;, stoneid&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1304&lt;/span&gt;, switch&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1945&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2054&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;stone &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;688&lt;/span&gt;, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;650&lt;/span&gt;, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;60&lt;/span&gt;, stoneid&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1304&lt;/span&gt;, switch&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1945&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2055&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;stone &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;689&lt;/span&gt;, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;650&lt;/span&gt;, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;60&lt;/span&gt;, stoneid&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1304&lt;/span&gt;, switch&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1945&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2056&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;stone &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;690&lt;/span&gt;, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;650&lt;/span&gt;, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;60&lt;/span&gt;, stoneid&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1304&lt;/span&gt;, switch&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1945&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2057&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;stone &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;691&lt;/span&gt;, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;650&lt;/span&gt;, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;60&lt;/span&gt;, stoneid&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1304&lt;/span&gt;, switch&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1945&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onUse&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, item, fromPosition, itemEx, toPosition&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; cfg &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; config&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;item.uid&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; stoneCheck &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getTileItemById&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cfg.stone, cfg.stoneid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; item.itemid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1945&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
			doRemoveItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;stoneCheck.uid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			doCreatureSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;You deleted this stone for &amp;quot;&lt;/span&gt;..cfg.&lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot; minutes. Hurry up!&amp;quot;&lt;/span&gt;, TALKTYPE_ORANGE_1&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			doTransformItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;item.uid, item.itemid + &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; eventCreateItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;a&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; doCreateItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;a&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;, a&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;, a&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
			addEvent&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;eventCreateItem, cfg.&lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;60&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1000&lt;/span&gt;, &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;cfg.stoneid, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, cfg.stone&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; eventDoTransformItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;b&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; doTransformItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;b&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;, b&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
			addEvent&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;eventDoTransformItem, cfg.&lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;60&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1000&lt;/span&gt;, &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;item.uid, cfg.switch&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; item.itemid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1946&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
			doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;The stone is deleted.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
I Teraz 2 pliczki do tronów i bramek. Dodajemy za pomocą:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/poi_by_moqill?do=export_code&amp;amp;codeblock=2&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_xml&quot;&gt;movements.xml&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file xml&quot;&gt;		&lt;span class=&quot;sc-1&quot;&gt;&amp;lt;!-- PoI --&amp;gt;&lt;/span&gt;
	&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;movevent&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;StepIn&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;2060-2065&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;script&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;quests/poi/thrones.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;
	&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;movevent&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;StepIn&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;2066-2071&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;script&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;quests/poi/bramka.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/poi_by_moqill?do=export_code&amp;amp;codeblock=3&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;bramka.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; config &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2066&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;storage &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2060&lt;/span&gt;, name&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Verminor´s&amp;quot;&lt;/span&gt;, efekt &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2067&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;storage &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2061&lt;/span&gt;, name&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Infernatil´s&amp;quot;&lt;/span&gt;, efekt &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;15&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2068&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;storage &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2062&lt;/span&gt;, name&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Tafariel´s&amp;quot;&lt;/span&gt;, efekt &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2069&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;storage &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2063&lt;/span&gt;, name&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Apocalypse´s&amp;quot;&lt;/span&gt;, efekt &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2070&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;storage &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2064&lt;/span&gt;, name&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Pumina's&amp;quot;&lt;/span&gt;, efekt &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2071&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;storage &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2065&lt;/span&gt;, name&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Ashfalor´s&amp;quot;&lt;/span&gt;, efekt &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;17&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onStepIn&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, item, pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;712&lt;/span&gt;, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;658&lt;/span&gt;, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;12&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; cfg &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; config&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;item.uid&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, cfg.storage&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ~&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
		doTeleportThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		doCreatureSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Sorry, but you did not absorb enough energy! You must touch &amp;quot;&lt;/span&gt; ..cfg.name.. &lt;span class=&quot;st0&quot;&gt;&amp;quot; throne!&amp;quot;&lt;/span&gt;, TALKTYPE_ORANGE_1&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;,cfg.efekt&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/poi_by_moqill?do=export_code&amp;amp;codeblock=4&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;thrones.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; config &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2060&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;storage &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2060&lt;/span&gt;, name &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Verminor´s&amp;quot;&lt;/span&gt;, efekt &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2061&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;storage &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2061&lt;/span&gt;, name &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Infernatil´s&amp;quot;&lt;/span&gt;, efekt &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;15&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2062&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;storage &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2062&lt;/span&gt;, name &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Tafariel´s&amp;quot;&lt;/span&gt;, efekt &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2063&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;storage &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2063&lt;/span&gt;, name &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Apocalypse´s&amp;quot;&lt;/span&gt;, efekt &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2064&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;storage &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2064&lt;/span&gt;, name &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Pumina's&amp;quot;&lt;/span&gt;, efekt &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;7&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2065&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;storage &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2065&lt;/span&gt;, name &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Ashfalor´s&amp;quot;&lt;/span&gt;, efekt &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;17&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onStepIn&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, item, pos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; cfg &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; config&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;item.uid&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; pos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, cfg.storage&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
		setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,cfg.storage,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		doCreatureSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;'You have touched '&lt;/span&gt;..cfg.name..&lt;span class=&quot;st0&quot;&gt;' throne and absorbed some of his spirit.'&lt;/span&gt;, TALKTYPE_ORANGE_1&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;,cfg.efekt&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		doTeleportThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;pos.x, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;pos.y+&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;pos.z&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		doCreatureSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;st0&quot;&gt;&amp;quot;Begone.&amp;quot;&lt;/span&gt;, TALKTYPE_ORANGE_1&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
		doCreatureSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;'You have already absorbed some of '&lt;/span&gt;..cfg.name..&lt;span class=&quot;st0&quot;&gt;' spirit.'&lt;/span&gt;, TALKTYPE_ORANGE_1&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		doTeleportThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;pos.x, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;pos.y+&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;pos.z&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;	
	&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;	
&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;
</description>
        <category>otspub</category>
            <pubDate>Fri, 07 May 2010 12:35:56 +0200</pubDate>
        </item>
        <item>
            <title>otspub:pvp_enfo_skrypt_by_darkhaos</title>
            <link>http://otos.pl/doku.php/otspub/pvp_enfo_skrypt_by_darkhaos?rev=1272475741</link>
            <description>
&lt;p&gt;
Autor: darkhaos &lt;a href=&quot;http://otland.net/f82/anticheat-pvp-enforced-servers-60569/&quot; class=&quot;urlextern&quot; title=&quot;http://otland.net/f82/anticheat-pvp-enforced-servers-60569/&quot;  rel=&quot;nofollow&quot;&gt;klik&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
Licencja: brak
&lt;/p&gt;

&lt;p&gt;
Skrypt do serwerów war lub pvp enfo. Gdy gracz o daje się zabijać graczowi l (gdy gracz o zabije go x razy wciagu x sekund zostaje on zabity przez skrypt.
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;Część &lt;acronym title=&quot;Structured Query Language&quot;&gt;SQL&lt;/acronym&gt;&lt;/strong&gt;
&lt;/p&gt;

&lt;p&gt;
Dodajemy do naszej bazy :
&lt;/p&gt;
&lt;pre class=&quot;code file sql&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;ALTER&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;TABLE&lt;/span&gt; players &lt;span class=&quot;kw1&quot;&gt;ADD&lt;/span&gt; lastKill int&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;DEFAULT&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;;
&lt;span class=&quot;kw1&quot;&gt;ALTER&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;TABLE&lt;/span&gt; players &lt;span class=&quot;kw1&quot;&gt;ADD&lt;/span&gt; lastKillTime int&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;DEFAULT&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;;  &lt;/pre&gt;

&lt;p&gt;
&lt;strong&gt;Część LUA&lt;/strong&gt;
&lt;/p&gt;

&lt;p&gt;
Wchodzimy do /data/creaturescripts/scripts/ tworzymy tam plik anticheat.lua a jego zawartość to:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/pvp_enfo_skrypt_by_darkhaos?do=export_code&amp;amp;codeblock=1&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;anticheat.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;     &lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onKill&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, target, lastHit&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; timeWithinKill &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;300&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--in seconds&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; killsLimit &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--limit to die&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; lastKill, lastKillTime &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;nil&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;nil&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; storage &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;65535&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--storage to check if player has killed another player 'killsLimit' times&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;isPlayer&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;target&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;isMonster&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
        query &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; db.getResult&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;select lastKill, lastKillTime from players where id = &amp;quot;&lt;/span&gt; .. getPlayerGUID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;query:getID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ~&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                lastKill, lastKillTime &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; query:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;lastKill&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, query:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;lastKillTime&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;lastKill &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; getPlayerGUID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;target&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;os.clock&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - lastKillTime&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; timeWithinKill &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, storage&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                                        doPlayerSetStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, storage, &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
                                doPlayerSetStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, storage, getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, storage&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; + &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, storage&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;=&lt;/span&gt; killsLimit&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                                        doCreatureAddHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, -getCreatureHealth&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                                doPlayerSetStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, storage, &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
                db.executeQuery&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;update players set lastKill = &amp;quot;&lt;/span&gt; .. getPlayerGUID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;target&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;, lastKillTime = &amp;quot;&lt;/span&gt; .. &lt;span class=&quot;kw1&quot;&gt;os.clock&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot; where id = &amp;quot;&lt;/span&gt; .. getPlayerGUID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; LUA_ERROR
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt; &lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Następnie dodajemy do login.lua linijkę:
&lt;/p&gt;
&lt;pre class=&quot;code file lua&quot;&gt;registerCreatureEvent&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;AntiCheat&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Oraz do /data/creaturescripts/creaturescripts.xml wklejamy linijkę:
&lt;/p&gt;
&lt;pre class=&quot;code file xml&quot;&gt;    &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;event&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;kill&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;AntiCheat&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;anticheat.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  &lt;/pre&gt;

&lt;p&gt;
Gotowe!
&lt;/p&gt;
</description>
        <category>otspub</category>
            <pubDate>Wed, 28 Apr 2010 19:29:01 +0200</pubDate>
        </item>
        <item>
            <title>otspub:quest_na_outfity</title>
            <link>http://otos.pl/doku.php/otspub/quest_na_outfity?rev=1275485803</link>
            <description>
&lt;p&gt;
&lt;strong&gt;Autor:&lt;/strong&gt; Nie znany
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;Licencja:&lt;/strong&gt; Nie znana
&lt;/p&gt;

&lt;p&gt;
Fajny skrypcik, znalazłem go ponad rok temu gdzieś na otlandzie, zanikł jednak w sieci, usunąłem go teraz z mojego ots&amp;#039;a, ale może innym się przyda.
do Actions.xml :
&lt;/p&gt;
&lt;pre class=&quot;code file xml&quot;&gt;    &lt;span class=&quot;sc-1&quot;&gt;&amp;lt;!--Outfit Quests --&amp;gt;&lt;/span&gt;
     &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;12001&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;allOutfits.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  -- Hunter 
     &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;12002&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;allOutfits.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  -- Mage  
     &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;12003&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;allOutfits.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  -- Knight 
     &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;12004&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;allOutfits.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  -- Nobleman 
     &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;12005&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;allOutfits.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  -- Summoner 
     &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;12006&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;allOutfits.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  -- Warrior 
     &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;12007&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;allOutfits.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  -- Barbarian 
     &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;12008&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;allOutfits.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  -- Druid 
     &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;12009&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;allOutfits.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  -- Wizard  
     &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;12010&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;allOutfits.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  -- Oriental 
     &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;12011&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;allOutfits.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  -- Pirate 
     &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;12012&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;allOutfits.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  -- Assassin 
     &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;12013&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;allOutfits.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  -- Beggar 
     &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;12014&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;allOutfits.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  -- Shaman 
     &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;12015&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;allOutfits.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  -- Norseman 
     &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;12016&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;allOutfits.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  -- Knightmare 
     &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;12017&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;allOutfits.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  -- Jester 
     &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;12018&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;allOutfits.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  -- Brotherhood 
     &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;12019&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;allOutfits.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  -- Demon Hunter 
     &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;12020&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;allOutfits.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  -- Yalahari&lt;/pre&gt;

&lt;p&gt;
Do data\actions\scripts tworzymy plik AllOutfits.lua i wklejamy do niego:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/quest_na_outfity?do=export_code&amp;amp;codeblock=1&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;quest12.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onUse&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, item, frompos, item2, topos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; item.uid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;12001&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
             &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12010&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You now have the Hunter Outfit!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddOutfitId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12010&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;67&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You Already have the Hunter Outfit.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
       &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; item.uid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;12002&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
              &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12011&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You now have the Mage Outfit!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddOutfitId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12011&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;67&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You Already have the Mage Outfit.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
       &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; item.uid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;12003&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
              &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12012&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You now have the Knight Outfit!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddOutfitId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12012&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;67&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You Already have the Knight Outfit.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; item.uid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;12004&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
           &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12013&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; getPlayerSex&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You now have the Nobleman Outfit!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddOutfitId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;5&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12013&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;67&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12013&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; getPlayerSex&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You now have the Noblewoman Outfit!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddOutfitId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;5&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12013&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You Already have this outfit.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;        
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
           &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; item.uid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;12005&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12014&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You now have the Summoner Outfit!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddOutfitId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;6&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12014&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;67&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You Already have the Summoner Outfit.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; item.uid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;12006&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
          &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12015&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You now have the Warrior Outfit!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddOutfitId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;7&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12015&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;67&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You Already have the Warrior Outfit.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; item.uid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;12007&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
          &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12016&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You now have the Barbarian Outfit!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddOutfitId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;8&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12016&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;67&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You Already have the Barbarian Outfit.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; item.uid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;12008&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
          &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12017&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You now have the Druid Outfit!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddOutfitId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;9&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12017&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;67&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You Already have the Druid Outfit.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; item.uid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;12009&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
          &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12018&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You now have the Wizard Outfit!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddOutfitId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12018&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;67&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You Already have the Wizard Outfit.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; item.uid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;12010&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
          &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12019&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You now have the Oriental Outfit!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddOutfitId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12019&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;67&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You Already have the Oriental Outfit.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; item.uid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;12011&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
          &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12020&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You now have the Pirate Outfit!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddOutfitId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12020&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;67&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You Already have the Pirate Outfit.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; item.uid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;12012&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
          &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12021&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You now have the Assassin Outfit!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddOutfitId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;13&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12021&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;67&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You Already have the Assassin Outfit.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; item.uid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;12013&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
          &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12022&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You now have the Beggar Outfit!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddOutfitId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;14&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12022&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;67&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You Already have the Beggar Outfit.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; item.uid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;12014&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
          &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12023&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You now have the Shaman Outfit!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddOutfitId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;15&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12023&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;67&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You Already have the Shaman Outfit.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; item.uid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;12015&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
           &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12024&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; getPlayerSex&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You now have the Norseman Outfit!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddOutfitId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;16&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12024&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;67&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12024&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; getPlayerSex&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You now have the Norsewoman Outfit!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddOutfitId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;16&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12024&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You Already have this outfit.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;        
          &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
           &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; item.uid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;12016&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
          &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12025&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You now have the Knightmare Outfit!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddOutfitId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;17&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12025&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;67&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You Already have the Knightmare Outfit.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; item.uid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;12017&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
          &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12026&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You now have the Jester Outfit!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddOutfitId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;18&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12026&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;67&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You Already have the Jester Outfit.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; item.uid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;12018&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
          &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12027&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You now have the Brotherhood Outfit!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddOutfitId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;19&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12027&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;67&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You Already have the Brotherhood Outfit.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; item.uid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;12019&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
          &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12028&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You now have the Demonhunter Outfit!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddOutfitId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12028&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;67&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You Already have the Demonhunter Outfit.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; item.uid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;12020&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
          &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12029&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You now have the Yalahari Outfit!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddOutfitId&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;21&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;12029&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;67&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You Already have the Yalahari Outfit.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; TRUE
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;
</description>
        <category>otspub</category>
            <pubDate>Wed, 02 Jun 2010 15:36:43 +0200</pubDate>
        </item>
        <item>
            <title>otspub:rusty_remover_by_tarjei_lua</title>
            <link>http://otos.pl/doku.php/otspub/rusty_remover_by_tarjei_lua?rev=1272385848</link>
            <description>
&lt;p&gt;
Autor: &lt;strong&gt;Trajer&lt;/strong&gt; &lt;br/&gt;

Licencja &lt;strong&gt;Brak opisu na stronie autora&lt;/strong&gt;&lt;br/&gt;

Opracowanie: &lt;strong&gt;&lt;em&gt;Moqill&lt;/em&gt;&lt;/strong&gt;&lt;br/&gt;

Testowane: TFS 0.4_&lt;br/&gt;

&lt;br/&gt;

Do data/actions/scripts/tools/ dodajemy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/rusty_remover_by_tarjei_lua?do=export_code&amp;amp;codeblock=0&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;rustyremover.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;co1&quot;&gt;-------------------------------------------------&lt;/span&gt;
&lt;span class=&quot;co1&quot;&gt;-------------------CONFIGURE-----------------------&lt;/span&gt;
&lt;span class=&quot;co1&quot;&gt;-------------------------------------------------&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; config &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
 			rustyarmorid &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;9808&lt;/span&gt;,
			rustylegsid &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;9813&lt;/span&gt;,
			rustyremoveid &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;9930&lt;/span&gt;
			&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;co1&quot;&gt;---------------------CHANCES------------------------&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; prizes &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt; 
			armors &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
				&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;5&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;2472&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,&lt;span class=&quot;co1&quot;&gt;-- mpa&lt;/span&gt;
				&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;2466&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,&lt;span class=&quot;co1&quot;&gt;-- golden armor&lt;/span&gt;
				&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;50&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;2487&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,&lt;span class=&quot;co1&quot;&gt;-- crown armor&lt;/span&gt;
				&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;8891&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;co1&quot;&gt;--paladin armor&lt;/span&gt;
				&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;500&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;2463&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;co1&quot;&gt;--plate armor&lt;/span&gt;
				&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;800&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;2465&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;co1&quot;&gt;--brass&lt;/span&gt;
				&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;850&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;2464&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;co1&quot;&gt;--chain arm&lt;/span&gt;
				&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;900&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;2483&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--studded armor&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
				&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
&amp;nbsp;
			 legs &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
				 &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;5&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;2470&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,&lt;span class=&quot;co1&quot;&gt;--golden legs	&lt;/span&gt;
				 &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;30&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;2488&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,&lt;span class=&quot;co1&quot;&gt;--crown legs&lt;/span&gt;
				 &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;400&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;2477&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,&lt;span class=&quot;co1&quot;&gt;--knight legs&lt;/span&gt;
				 &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;600&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;2647&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,&lt;span class=&quot;co1&quot;&gt;--plate legs&lt;/span&gt;
				 &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;750&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;2478&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,&lt;span class=&quot;co1&quot;&gt;--brass legs&lt;/span&gt;
				 &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;800&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;2648&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,&lt;span class=&quot;co1&quot;&gt;--chainlegs&lt;/span&gt;
				 &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;900&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;2468&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span class=&quot;co1&quot;&gt;--studded legs&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
			&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;co1&quot;&gt;----------------------------------------------------------&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onUse&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, item, fromPosition, itemEx, toPosition&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; item.itemid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; config.rustyremoveid &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; itemEx.itemid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; config.rustyarmorid &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
           	 &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; prize1 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
           	 &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; reward1 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; 
			&lt;span class=&quot;kw1&quot;&gt;for&lt;/span&gt; i &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, #prizes.armors &lt;span class=&quot;kw1&quot;&gt;do&lt;/span&gt;
				prize1 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; prizes.armors&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;i&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;
				rand &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;999&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			 	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;  rand &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; prize1&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                   			 reward1 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; prize1&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; 
					doTransformItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;itemEx.uid, reward1&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
					doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;toPosition,CONST_ME_BLOCKHIT&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
					doPlayerRemoveItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;9930&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
				&lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt; 
				&lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; rand &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;900&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
					doRemoveItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;itemEx.uid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
					doPlayerRemoveItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;9930&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
					doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;toPosition,CONST_ME_POFF&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
				&lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;
				 &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; itemEx.itemid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; config.rustylegsid &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
           	 &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; prize &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
           	 &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; reward &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; 
			&lt;span class=&quot;kw1&quot;&gt;for&lt;/span&gt; i &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, #prizes.legs &lt;span class=&quot;kw1&quot;&gt;do&lt;/span&gt;
				prize &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; prizes.legs&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;i&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;
				rand &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;math.random&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;999&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			 	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; rand &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; prize&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                   			 reward &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; prize&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; 
					doTransformItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;itemEx.uid, reward&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
					doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;toPosition,CONST_ME_BLOCKHIT&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
					doPlayerRemoveItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;9930&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
				&lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt; 
				&lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; rand &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;900&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
					doRemoveItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;itemEx.uid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
					doPlayerRemoveItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;9930&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
					doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;toPosition,CONST_ME_POFF&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
				&lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
				 &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; FALSE
&amp;nbsp;
		&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; TRUE
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Do action.xml dodajemy linijke
&lt;/p&gt;
&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;itemid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;9930&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;tools/rustyremover.lua&amp;quot;&lt;/span&gt; &lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Gotowe :)
&lt;/p&gt;
</description>
        <category>otspub</category>
            <pubDate>Tue, 27 Apr 2010 18:30:48 +0200</pubDate>
        </item>
        <item>
            <title>otspub:skrypt_powitalny_by_kielb</title>
            <link>http://otos.pl/doku.php/otspub/skrypt_powitalny_by_kielb?rev=1272476297</link>
            <description>
&lt;p&gt;
Autor: kielb
&lt;/p&gt;

&lt;p&gt;
Licencja: brak
&lt;/p&gt;

&lt;p&gt;
Mój pierwszy skrypt troche banalny ale cóż zawsze jest :). Skrypt ma na celu widać gracza gdy on się zaloguje.
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;Część LUA&lt;/strong&gt;
&lt;/p&gt;

&lt;p&gt;
Wchodzimy do folderu data\creaturescripts\scripts\ tam tworzymy plik witaj.lua a jego zawartość to:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/skrypt_powitalny_by_kielb?do=export_code&amp;amp;codeblock=0&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;witaj.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onLogin&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;22&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;Witaj na RealiaOTS &amp;quot;&lt;/span&gt;..getPlayerName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot;!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; TRUE
	&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Dodajemy również linijkę do data\creaturescripts\creaturescripts.xml o to ona:
&lt;/p&gt;
&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt;event &lt;span class=&quot;kw1&quot;&gt;type&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;login&amp;quot;&lt;/span&gt; name&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;FirstItems&amp;quot;&lt;/span&gt; script&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;witaj.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Gotowe! Każdy gracz gdy wejdzie dostanie powitalną wiadomość!
&lt;/p&gt;
</description>
        <category>otspub</category>
            <pubDate>Wed, 28 Apr 2010 19:38:17 +0200</pubDate>
        </item>
        <item>
            <title>otspub:skrypty</title>
            <link>http://otos.pl/doku.php/otspub/skrypty?rev=1302802624</link>
            <description>
&lt;h2 class=&quot;sectionedit35&quot;&gt;&lt;a name=&quot;skrypty&quot; id=&quot;skrypty&quot;&gt;Skrypty&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;/div&gt;

&lt;h4&gt;&lt;a name=&quot;by_moqill&quot; id=&quot;by_moqill&quot;&gt;By moqill&lt;/a&gt;&lt;/h4&gt;
&lt;div class=&quot;level4&quot;&gt;

&lt;/div&gt;

&lt;h5&gt;&lt;a name=&quot;lua&quot; id=&quot;lua&quot;&gt;LUA&lt;/a&gt;&lt;/h5&gt;
&lt;div class=&quot;level5&quot;&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/skrzynki.lua_na_tablicy&quot; class=&quot;wikilink1&quot; title=&quot;otspub:skrzynki.lua_na_tablicy&quot;&gt;Skrzynki.lua na tablicy&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/poi_by_moqill&quot; class=&quot;wikilink1&quot; title=&quot;otspub:poi_by_moqill&quot;&gt;PoI by Moqill&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/vip_system_by_mock_vip_medal_door_by_moqill_lua&quot; class=&quot;wikilink1&quot; title=&quot;otspub:vip_system_by_mock_vip_medal_door_by_moqill_lua&quot;&gt;VIP System by Mock + Vip Medal, door by Moqill [LUA]&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h5&gt;&lt;a name=&quot;php&quot; id=&quot;php&quot;&gt;PHP&lt;/a&gt;&lt;/h5&gt;
&lt;div class=&quot;level5&quot;&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/buypoints.php_fixed&quot; class=&quot;wikilink1&quot; title=&quot;otspub:buypoints.php_fixed&quot;&gt;Buypoints.php fixed&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h4&gt;&lt;a name=&quot;by_kowol&quot; id=&quot;by_kowol&quot;&gt;By Kowol&lt;/a&gt;&lt;/h4&gt;
&lt;div class=&quot;level4&quot;&gt;

&lt;p&gt;
 &lt;a href=&quot;http://otos.pl/doku.php/otspub/zliczanie_smsow_by_kowol&quot; class=&quot;wikilink1&quot; title=&quot;otspub:zliczanie_smsow_by_kowol&quot;&gt;Zliczanie smsów by Kowol&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h4&gt;&lt;a name=&quot;by_kielb&quot; id=&quot;by_kielb&quot;&gt;By kielb&lt;/a&gt;&lt;/h4&gt;
&lt;div class=&quot;level4&quot;&gt;

&lt;p&gt;
 &lt;a href=&quot;http://otos.pl/doku.php/otspub/skrypt_powitalny_by_kielb&quot; class=&quot;wikilink1&quot; title=&quot;otspub:skrypt_powitalny_by_kielb&quot;&gt;Skrypt powitalny by kielb!&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
 &lt;a href=&quot;http://otos.pl/doku.php/otspub/animacja_gdy_awansujesz_by_kielb&quot; class=&quot;wikilink1&quot; title=&quot;otspub:animacja_gdy_awansujesz_by_kielb&quot;&gt;Animacja gdy awansujesz by kielb&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
 &lt;a href=&quot;http://otos.pl/doku.php/otspub/cos_podobnego_do_anni_by_kielb_dla_donaja&quot; class=&quot;wikilink1&quot; title=&quot;otspub:cos_podobnego_do_anni_by_kielb_dla_donaja&quot;&gt;Cos podobnego do anni by kielb dla donaja&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/auto_broardcast_by_idk_edited_by_kielb_lua&quot; class=&quot;wikilink1&quot; title=&quot;otspub:auto_broardcast_by_idk_edited_by_kielb_lua&quot;&gt;Auto Broardcast by IDK edited by kielb [LUA]&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h4&gt;&lt;a name=&quot;by_karpio&quot; id=&quot;by_karpio&quot;&gt;By Karpio&lt;/a&gt;&lt;/h4&gt;
&lt;div class=&quot;level4&quot;&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/cheat_system&quot; class=&quot;wikilink1&quot; title=&quot;otspub:cheat_system&quot;&gt;Cheat System&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/multi_world&quot; class=&quot;wikilink1&quot; title=&quot;otspub:multi_world&quot;&gt;Multi world&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/statystyki_smsow&quot; class=&quot;wikilink1&quot; title=&quot;otspub:statystyki_smsow&quot;&gt;Statystyki SMSów&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/podglad_pw_na_ots&quot; class=&quot;wikilink1&quot; title=&quot;otspub:podglad_pw_na_ots&quot;&gt;Podgląd PW na OTS&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/gdy_silnik_zerwie_polaczenie_z_baza&quot; class=&quot;wikilink1&quot; title=&quot;otspub:gdy_silnik_zerwie_polaczenie_z_baza&quot;&gt;Gdy silnik zerwie połączenie z bazą&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/antibot_system&quot; class=&quot;wikilink1&quot; title=&quot;otspub:antibot_system&quot;&gt;AntiBot System&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/ondroploot_event&quot; class=&quot;wikilink1&quot; title=&quot;otspub:ondroploot_event&quot;&gt;onDropLoot Event&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h4&gt;&lt;a name=&quot;by_erexo&quot; id=&quot;by_erexo&quot;&gt;By Erexo&lt;/a&gt;&lt;/h4&gt;
&lt;div class=&quot;level4&quot;&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/item_dajacy_losowy_item&quot; class=&quot;wikilink1&quot; title=&quot;otspub:item_dajacy_losowy_item&quot;&gt;Item dający losowy item&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/item_regenerujacy_hp_mp&quot; class=&quot;wikilink1&quot; title=&quot;otspub:item_regenerujacy_hp_mp&quot;&gt;Item regenerujący %hp mp&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/za_potwora_kazdy_gracz_dostaje_item_i_exp&quot; class=&quot;wikilink1&quot; title=&quot;otspub:za_potwora_kazdy_gracz_dostaje_item_i_exp&quot;&gt;Za potwora każdy gracz dostaje item i exp&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;

&lt;h4&gt;&lt;a name=&quot;inne&quot; id=&quot;inne&quot;&gt;Inne:&lt;/a&gt;&lt;/h4&gt;
&lt;div class=&quot;level4&quot;&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/rusty_remover_by_tarjei_lua&quot; class=&quot;wikilink1&quot; title=&quot;otspub:rusty_remover_by_tarjei_lua&quot;&gt;Rusty remover by Tarjei [LUA]&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/czyszczenie_domow&quot; class=&quot;wikilink1&quot; title=&quot;otspub:czyszczenie_domow&quot;&gt;Czyszczenie domów&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/vip_most_by_legolas23&quot; class=&quot;wikilink1&quot; title=&quot;otspub:vip_most_by_legolas23&quot;&gt;VIP MOST by legolas23&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/stamina_doll_dobre_do_sms_shopu_by_backy&quot; class=&quot;wikilink1&quot; title=&quot;otspub:stamina_doll_dobre_do_sms_shopu_by_backy&quot;&gt;Stamina doll dobre do sms shopu! by Backy&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/system_aukcji_by_vdk_all_fixed&quot; class=&quot;wikilink1&quot; title=&quot;otspub:system_aukcji_by_vdk_all_fixed&quot;&gt;System Aukcji by vDk all fixed&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/system_huntowania_graczy_by_infinity&quot; class=&quot;wikilink1&quot; title=&quot;otspub:system_huntowania_graczy_by_infinity&quot;&gt;System huntowania graczy by Infinity!&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/guild_broadcast_tfs_0.3._by_elf&quot; class=&quot;wikilink1&quot; title=&quot;otspub:guild_broadcast_tfs_0.3._by_elf&quot;&gt;Guild broadcast tfs 0.3.+ by elf&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/system_reportow_by_guitar_freak&quot; class=&quot;wikilink1&quot; title=&quot;otspub:system_reportow_by_guitar_freak&quot;&gt;System reportów  by Guitar Freak&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/banowanie_gracza_na_okreslony_czas&quot; class=&quot;wikilink1&quot; title=&quot;otspub:banowanie_gracza_na_okreslony_czas&quot;&gt;Banowanie gracza na okreslony czas&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/lottery_system_v2_by_vdk_and_kleksu&quot; class=&quot;wikilink1&quot; title=&quot;otspub:lottery_system_v2_by_vdk_and_kleksu&quot;&gt;Lottery system v2 by vDk and klekSu&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/automatyczne_zapisywanie_postaci_gry_awansuje_by_rodo&quot; class=&quot;wikilink1&quot; title=&quot;otspub:automatyczne_zapisywanie_postaci_gry_awansuje_by_rodo&quot;&gt;Automatyczne zapisywanie postaci gry awansuje by Rodo&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/pvp_enfo_skrypt_by_darkhaos&quot; class=&quot;wikilink1&quot; title=&quot;otspub:pvp_enfo_skrypt_by_darkhaos&quot;&gt;Pvp enfo skrypt by darkhaos&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/quest_na_outfity&quot; class=&quot;wikilink1&quot; title=&quot;otspub:quest_na_outfity&quot;&gt;Quest na outfity&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/npc_misje&quot; class=&quot;wikilink1&quot; title=&quot;otspub:npc_misje&quot;&gt;Npc misje&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/bonus_system&quot; class=&quot;wikilink1&quot; title=&quot;otspub:bonus_system&quot;&gt;Bonus system&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/advance_-_specjalny_efekt&quot; class=&quot;wikilink1&quot; title=&quot;otspub:advance_-_specjalny_efekt&quot;&gt;Advance - Specjalny Efekt&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/wiadomosc_przy_zalogowaniu&quot; class=&quot;wikilink1&quot; title=&quot;otspub:wiadomosc_przy_zalogowaniu&quot;&gt;Wiadomosc przy zalogowaniu&lt;/a&gt;
&lt;/p&gt;

&lt;/div&gt;
</description>
        <category>otspub</category>
            <pubDate>Thu, 14 Apr 2011 19:37:04 +0200</pubDate>
        </item>
        <item>
            <title>otspub:skrzynki.lua_na_tablicy</title>
            <link>http://otos.pl/doku.php/otspub/skrzynki.lua_na_tablicy?rev=1273004918</link>
            <description>
&lt;p&gt;
Skrypt by &lt;strong&gt;&lt;em class=&quot;u&quot;&gt;Moqill&lt;/em&gt;&lt;/strong&gt; &lt;br/&gt;

Licencja: &lt;em&gt;Nie może się znaleść na innych stronach www. Można sobie skorzytać w silniczku tylko…&lt;/em&gt;&lt;br/&gt;

Testowane: tfs 0.4_
&lt;/p&gt;

&lt;p&gt;
Pliczek chest.lua
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/skrzynki.lua_na_tablicy?do=export_code&amp;amp;codeblock=0&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;chest.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; config &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;uid&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;storage&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;ID, item&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;ID&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, &lt;span class=&quot;co1&quot;&gt;-- uid to uniqudeid skrzynki, storage to to co dopisuje się w bazie, item id przedmiotu którym ma otrzymać gracz&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;uid&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;storage&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;ID, item&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;ID&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;,
&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;uid&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;storage&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;ID, item&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;ID&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onUse&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, item, frompos, item2, topos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; cfg&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;config&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;item.uid&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, cfg.storage&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
			doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;22&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You have found &amp;quot;&lt;/span&gt;..getItemNameById&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cfg.item&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot;.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			doPlayerAddItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,cfg.item,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,cfg.storage,&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt; 
			doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;22&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;It is empty.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
do action.xml dodajemy jedna z linijek do wyboru
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/skrzynki.lua_na_tablicy?do=export_code&amp;amp;codeblock=1&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_xml&quot;&gt;action.xml&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;itemid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;itemid_skrzynli;itemid_skrzynli;itemid_skrzynli&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;script&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;chest.lua&amp;quot;&lt;/span&gt; &lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;
&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;uniqueid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;odjakiegouid-dojakiegouid&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;script&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;chest.lua&amp;quot;&lt;/span&gt; &lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt; &lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;
</description>
        <category>otspub</category>
            <pubDate>Tue, 04 May 2010 22:28:38 +0200</pubDate>
        </item>
        <item>
            <title>otspub:stamina_doll_dobre_do_sms_shopu_by_backy</title>
            <link>http://otos.pl/doku.php/otspub/stamina_doll_dobre_do_sms_shopu_by_backy?rev=1272462306</link>
            <description>
&lt;p&gt;
Autor: Backy     &lt;a href=&quot;http://otland.net/f81/stamina-refuel-good-item-shop-real-rpg-ot-67697/&quot; class=&quot;urlextern&quot; title=&quot;http://otland.net/f81/stamina-refuel-good-item-shop-real-rpg-ot-67697/&quot;  rel=&quot;nofollow&quot;&gt;klik&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
Licencja: Nie ma
&lt;/p&gt;

&lt;p&gt;
Jest to dobry przedmiot do naszego sklepiku jeśli prowadzimy serwer RPG.
&lt;/p&gt;

&lt;p&gt;
No to zaczynamy ! Wchodzimy do katalogu data/actions/scripts/ tworzymy plik stamina-refuel.lua i wklejamy do niego:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/stamina_doll_dobre_do_sms_shopu_by_backy?do=export_code&amp;amp;codeblock=0&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;stamina-refuel.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onUse&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, item, fromPosition, itemEx, toPosition&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; cfg &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	cfg.refuel &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;42&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;60&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1000&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStamina&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;=&lt;/span&gt; cfg.refuel&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
		doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Your stamina is already full.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;not&lt;/span&gt; isPremium&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
		doPlayerSendCancel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;You must have a premium account.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
		doPlayerSetStamina&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, cfg.refuel&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_ORANGE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Your stamina has been refilled.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		doRemoveItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;item.uid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
data/actions/actions.xml dodajemy linjke:
&lt;/p&gt;
&lt;pre class=&quot;code file xml&quot;&gt;&amp;nbsp;
&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;itemid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;TUTAJ ID ITEMA&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;script&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;stamina-refuel.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
TUTAJ ID ITEMA- tutaj musimy wybrac id itema pod jakim bedzie urzywany skrypt.
&lt;/p&gt;

&lt;p&gt;
Gotowe!
&lt;/p&gt;
</description>
        <category>otspub</category>
            <pubDate>Wed, 28 Apr 2010 15:45:06 +0200</pubDate>
        </item>
        <item>
            <title>otspub:start</title>
            <link>http://otos.pl/doku.php/otspub/start?rev=1272384958</link>
            <description>
&lt;p&gt;
Publicznie dostępne otsowe sprawy
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;http://otos.pl/doku.php/otspub/skrypty&quot; class=&quot;wikilink1&quot; title=&quot;otspub:skrypty&quot;&gt;Skrypty&lt;/a&gt;
&lt;/p&gt;
</description>
        <category>otspub</category>
            <pubDate>Tue, 27 Apr 2010 18:15:58 +0200</pubDate>
        </item>
        <item>
            <title>otspub:statystyki_smsow</title>
            <link>http://otos.pl/doku.php/otspub/statystyki_smsow?rev=1297364718</link>
            <description>
&lt;p&gt;
Autor: Karpio&lt;br/&gt;

Licencja: public domain
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/statystyki_smsow?do=export_code&amp;amp;codeblock=0&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_php&quot;&gt;total_shop.php&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file php&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;&amp;lt;?php&lt;/span&gt;
&lt;span class=&quot;co2&quot;&gt;# Script by Karpio
&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;html&amp;gt;&amp;lt;head&amp;gt;&amp;lt;title&amp;gt;ValturiaOTS - Total Shop&amp;lt;/title&amp;gt;&amp;lt;meta http-equiv=&amp;quot;Content-Type&amp;quot; content=&amp;quot;text/html; charset=utf-8&amp;quot; /&amp;gt;&amp;lt;/head&amp;gt;&amp;lt;body&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$koszta&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;120&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$pass&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;ProsteHaslo&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co2&quot;&gt;# Twoje hasło tutaj;
&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/empty&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;empty&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$_REQUEST&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;pass&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;form action=&amp;quot;total_shop.php&amp;quot; method=&amp;quot;POST&amp;quot;&amp;gt;&amp;lt;input type=&amp;quot;password&amp;quot; name=&amp;quot;pass&amp;quot; /&amp;gt;&amp;amp;nbsp;&amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Zaloguj&amp;quot; /&amp;gt;&amp;lt;/form&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$_REQUEST&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;pass&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;!==&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$pass&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;strong style=&amp;quot;color:red;&amp;quot;&amp;gt;Błędne hasło!&amp;lt;/strong&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;form action=&amp;quot;total_shop.php&amp;quot; method=&amp;quot;POST&amp;quot;&amp;gt;&amp;lt;input type=&amp;quot;password&amp;quot; name=&amp;quot;pass&amp;quot; /&amp;gt;&amp;amp;nbsp;&amp;lt;input type=&amp;quot;submit&amp;quot; value=&amp;quot;Zaloguj&amp;quot; /&amp;gt;&amp;lt;/form&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;include&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;config-and-functions.php&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;re0&quot;&gt;$cash&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$SQL&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;query&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;SELECT * FROM `sms_cost`;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;fetchAll&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/empty&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;empty&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$cash&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'Brak pieniędzy na koncie.'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
		&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;table style=&amp;quot;border: 1px solid navy;&amp;quot;&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
			&lt;span class=&quot;re0&quot;&gt;$i&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
			&lt;span class=&quot;re0&quot;&gt;$t&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
			&lt;span class=&quot;re0&quot;&gt;$suma&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
			&lt;span class=&quot;re0&quot;&gt;$tenMiesiac&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
			&lt;span class=&quot;re0&quot;&gt;$za3zl&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
			&lt;span class=&quot;re0&quot;&gt;$za6zl&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
			&lt;span class=&quot;re0&quot;&gt;$za9zl&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
			&lt;span class=&quot;re0&quot;&gt;$razempieniadze&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/array&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;array&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;foreach&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$cash&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$kasa&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
				&lt;span class=&quot;re0&quot;&gt;$suma&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$kasa&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;cash&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
				&lt;span class=&quot;re0&quot;&gt;$data&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/explode&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;explode&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot; &amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$kasa&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;date&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
				&lt;span class=&quot;re0&quot;&gt;$data&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/explode&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;explode&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;-&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$data&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
				&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$data&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;a href=&quot;http://www.php.net/date&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;date&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Y&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$data&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;a href=&quot;http://www.php.net/date&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;date&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;m&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
				&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
					&lt;span class=&quot;re0&quot;&gt;$tenMiesiac&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$kasa&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;cash&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
					&lt;span class=&quot;re0&quot;&gt;$t&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;++;&lt;/span&gt;
					&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/floor&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;floor&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$kasa&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'cash'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$za3zl&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;++;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$razempieniadze&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$kasa&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'cash'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
					&lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/floor&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;floor&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$kasa&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'cash'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$za6zl&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;++;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$razempieniadze&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$kasa&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'cash'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
					&lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/floor&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;floor&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$kasa&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'cash'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$za9zl&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;++;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$razempieniadze&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;+=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$kasa&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'cash'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
				&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
				&lt;span class=&quot;re0&quot;&gt;$i&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;++;&lt;/span&gt;
			&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Suma:&amp;lt;/strong&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$suma&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'zł&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Za ten miesiąc:&amp;lt;/strong&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$tenMiesiac&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'zł&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Wysłano:&amp;lt;/strong&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$i&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;' sms\'ów&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
			&amp;lt;tr&amp;gt;&amp;lt;td style=&amp;quot;font-weight:bold;&amp;quot;&amp;gt;Wysłano &amp;lt;small&amp;gt;(ten miesiąc)&amp;lt;/small&amp;gt;:&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$t&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;' sms\'ów&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;
			&amp;lt;tr style=&amp;quot;border-top: 1px solid navy;&amp;quot;&amp;gt;&amp;lt;td&amp;gt;&amp;lt;strong&amp;gt;Na czysto:&amp;lt;/strong&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;a href=&quot;http://www.php.net/round&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;round&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$tenMiesiac&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;nu19&quot;&gt;0.81&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$koszta&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'zł&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/table&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
			&lt;span class=&quot;kw1&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;Liczba SMSów:&amp;lt;br /&amp;gt;&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;za 3zł: &amp;lt;strong&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$za3zl&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/strong&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;za 6zł: &amp;lt;strong&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$za6zl&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/strong&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;za 9zł: &amp;lt;strong&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$za9zl&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/strong&amp;gt;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&amp;lt;br /&amp;gt;Pieniędzy z SMSów:&amp;lt;br /&amp;gt;&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;za 3zł: &amp;lt;strong&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$razempieniadze&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/strong&amp;gt;zł&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;za 6zł: &amp;lt;strong&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$razempieniadze&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/strong&amp;gt;zł&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;za 9zł: &amp;lt;strong&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$razempieniadze&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/strong&amp;gt;zł&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
		&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
	&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;	
&lt;span class=&quot;kw1&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/body&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;sy1&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Wrzucamy plik do folderu z naszą stroną www.
&lt;/p&gt;

&lt;p&gt;
System wymaga skryptu Kowola na zliczanie SMSów.
&lt;/p&gt;
</description>
        <category>otspub</category>
            <pubDate>Thu, 10 Feb 2011 20:05:18 +0200</pubDate>
        </item>
        <item>
            <title>otspub:system_aukcji_by_vdk_all_fixed</title>
            <link>http://otos.pl/doku.php/otspub/system_aukcji_by_vdk_all_fixed?rev=1272462089</link>
            <description>
&lt;p&gt;
Autor: vDk                                                   Źródło: &lt;a href=&quot;http://otland.net/f81/offline-player-player-item-trader-auction-system-51447/&quot; class=&quot;urlextern&quot; title=&quot;http://otland.net/f81/offline-player-player-item-trader-auction-system-51447/&quot;  rel=&quot;nofollow&quot;&gt;Klik&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
Licencja: Rób co chcesz byle by nie zmieniać autora 
&lt;/p&gt;

&lt;p&gt;
System ma usunięte wszystkie dotychczasowe błędy typu: klonowanie przedmiotów. Działa bez błędnie na tfs: 0.3.4 , 0.3.5 , 0.3.6 !
&lt;/p&gt;

&lt;p&gt;
Skrypt działa na zasadzie: gracz x wystawia przedmiot na aukcje za 10k musi wyjść wiec wychodzi z gry. Gracz y zauważa na stronie atrakcyjną oferte i kupuje przedmiot na aukcji.Graczowi y zostaje zabrane 10k a dostaje przedmiot który kupił a gracz x otrzymuje 10k które ma w plecaku.
&lt;/p&gt;

&lt;p&gt;
No to zaczynamy!
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;Część &lt;acronym title=&quot;Structured Query Language&quot;&gt;SQL&lt;/acronym&gt;&lt;/strong&gt;
&lt;/p&gt;
&lt;pre class=&quot;code sql&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;ALTER&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;TABLE&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`players`&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;ADD&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`auction_balance`&lt;/span&gt; INT&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;DEFAULT&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;'0'&lt;/span&gt;;
&amp;nbsp;
oraz
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;TABLE&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`auction_system`&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;
  &lt;span class=&quot;st0&quot;&gt;`id`&lt;/span&gt; int&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;AUTO_INCREMENT&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;st0&quot;&gt;`player`&lt;/span&gt; int&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;st0&quot;&gt;`item_id`&lt;/span&gt; int&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;st0&quot;&gt;`item_name`&lt;/span&gt; varchar&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;255&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;st0&quot;&gt;`count`&lt;/span&gt; int&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;st0&quot;&gt;`cost`&lt;/span&gt; int&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;st0&quot;&gt;`date`&lt;/span&gt; int&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;kw1&quot;&gt;PRIMARY&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;KEY&lt;/span&gt;  &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;`id`&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ENGINE&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;MyISAM  &lt;span class=&quot;kw1&quot;&gt;DEFAULT&lt;/span&gt; CHARSET&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;latin1 &lt;span class=&quot;kw1&quot;&gt;AUTO_INCREMENT&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; ;&lt;/pre&gt;

&lt;p&gt;
&lt;strong&gt; Część &lt;acronym title=&quot;Hypertext Preprocessor&quot;&gt;PHP&lt;/acronym&gt; &lt;/strong&gt;
&lt;/p&gt;

&lt;p&gt;
Robimy plik auctionsystem.php i wklejamy do niego:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/system_aukcji_by_vdk_all_fixed?do=export_code&amp;amp;codeblock=1&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_php&quot;&gt;auctionsystem.php&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file php&quot;&gt;   &lt;span class=&quot;kw2&quot;&gt;&amp;lt;?PHP&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$auctions&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$SQL&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;query&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'SELECT `auction_system`.`player`, `auction_system`.`id`, `auction_system`.`item_name`, `auction_system`.`item_id`, `auction_system`.`count`, `auction_system`.`cost`, `auction_system`.`date`, `players`.`name` FROM `auction_system`, `players` WHERE `players`.`id` = `auction_system`.`player` ORDER BY `auction_system`.`id` DESC'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;fetchAll&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$players&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
    &lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%&amp;gt;&amp;lt;TR BGCOLOR=&amp;quot;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'site'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'vdarkborder'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot;&amp;gt;&amp;lt;TD CLASS=white&amp;gt;&amp;lt;b&amp;gt;Instruction&amp;lt;b&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR BGCOLOR='&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'site'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'darkborder'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;center&amp;gt;&amp;lt;h2&amp;gt;Commands&amp;lt;/h2&amp;gt;&amp;lt;b&amp;gt;!offer add, itemName, itemPrice, itemCount&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;small&amp;gt;example: !offer add, plate armor, 500, 1&amp;lt;/small&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;B&amp;gt;!offer buy, AuctionID&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;small&amp;gt;example: !offer buy, 1943&amp;lt;/small&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;b&amp;gt;!offer remove, AuctionID&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;small&amp;gt;example: !offer remove, 1943&amp;lt;/small&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;b&amp;gt;!offer withdraw&amp;lt;/b&amp;gt;&amp;lt;br /&amp;gt;&amp;lt;small&amp;gt;Use this command to get money for sold items.&amp;lt;/small&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;/TABLE&amp;gt;&amp;lt;br /&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/empty&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;empty&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$auctions&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
        &lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%&amp;gt;&amp;lt;TR BGCOLOR=&amp;quot;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'site'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'vdarkborder'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot;&amp;gt;&amp;lt;TD CLASS=white&amp;gt;&amp;lt;b&amp;gt;Auctions&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;TR BGCOLOR='&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'site'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'darkborder'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;gt;&amp;lt;TD&amp;gt;Currently is no one active Auction.&amp;lt;/TD&amp;gt;&amp;lt;/TR&amp;gt;&amp;lt;/TABLE&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;br /&amp;gt;&amp;lt;p align=&amp;quot;right&amp;quot;&amp;gt;&amp;lt;small&amp;gt;System created by &amp;lt;a href=&amp;quot;http://otland.net/members/vDk/&amp;quot;&amp;gt;vDk&amp;lt;/a&amp;gt;.&amp;lt;/small&amp;gt;&amp;lt;/p&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
    &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;foreach&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$auctions&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;as&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$auction&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
        &lt;span class=&quot;re0&quot;&gt;$players&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;++;&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/is_int&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;is_int&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$players&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                &lt;span class=&quot;re0&quot;&gt;$bgcolor&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'site'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'lightborder'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                &lt;span class=&quot;re0&quot;&gt;$bgcolor&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'site'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'darkborder'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;re0&quot;&gt;$cost&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/round&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;round&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$auction&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'cost'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;re0&quot;&gt;$content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;TR BGCOLOR='&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$bgcolor&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;center&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$auction&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'id'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/center&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;center&amp;gt;&amp;lt;img src=&amp;quot;http://otland.net/images/items/'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$auction&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'item_id'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'.gif&amp;quot;/&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;center&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$auction&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'item_name'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/center&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;center&amp;gt;&amp;lt;a href=&amp;quot;?subtopic=characters&amp;amp;name='&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;a href=&quot;http://www.php.net/urlencode&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;urlencode&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$auction&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'name'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot;&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$auction&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'name'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/a&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;center&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$auction&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'count'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/center&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;center&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$cost&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'k&amp;lt;br /&amp;gt;&amp;lt;small&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$auction&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'cost'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'gp&amp;lt;/small&amp;gt;&amp;lt;/center&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD&amp;gt;&amp;lt;center&amp;gt;!offer buy, '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$auction&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'id'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/center&amp;gt;&amp;lt;/TR&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
    &lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%&amp;gt;&amp;lt;TR BGCOLOR=&amp;quot;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'site'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'vdarkborder'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot;&amp;gt;&amp;lt;TD CLASS=white&amp;gt;&amp;lt;b&amp;gt;&amp;lt;center&amp;gt;ID&amp;lt;/center&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD class=&amp;quot;white&amp;quot;&amp;gt;&amp;lt;b&amp;gt;&amp;lt;center&amp;gt;#&amp;lt;/center&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD class=&amp;quot;white&amp;quot;&amp;gt;&amp;lt;b&amp;gt;&amp;lt;center&amp;gt;Item Name&amp;lt;/center&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD class=&amp;quot;white&amp;quot;&amp;gt;&amp;lt;b&amp;gt;&amp;lt;center&amp;gt;Player&amp;lt;/center&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD class=&amp;quot;white&amp;quot;&amp;gt;&amp;lt;b&amp;gt;&amp;lt;center&amp;gt;Count&amp;lt;/center&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;TD class=&amp;quot;white&amp;quot;&amp;gt;&amp;lt;b&amp;gt;&amp;lt;center&amp;gt;Cost&amp;lt;/center&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;TD class=&amp;quot;white&amp;quot;&amp;gt;&amp;lt;b&amp;gt;&amp;lt;center&amp;gt;Buy&amp;lt;/center&amp;gt;&amp;lt;/b&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/TR&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$content&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/TABLE&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;br /&amp;gt;&amp;lt;p align=&amp;quot;right&amp;quot;&amp;gt;&amp;lt;small&amp;gt;System created by &amp;lt;a href=&amp;quot;http://otland.net/members/vDk/&amp;quot;&amp;gt;vDk&amp;lt;/a&amp;gt;.&amp;lt;/small&amp;gt;&amp;lt;/p&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
    &lt;span class=&quot;sy1&quot;&gt;?&amp;gt;&lt;/span&gt; &lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Pamiętamy też aby dodać to do index.php 
&lt;/p&gt;
&lt;pre class=&quot;code file php&quot;&gt;   &lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;auctionsystem&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
          &lt;span class=&quot;re0&quot;&gt;$topic&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Auction System&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
          &lt;span class=&quot;re0&quot;&gt;$subtopic&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;auctionsystem&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
          &lt;span class=&quot;kw1&quot;&gt;include&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;auctionsystem.php&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;/pre&gt;

&lt;p&gt;
Oraz do naszego layouta!( tutaj nie będę podwał ponieważ każdy może mieć inny sposób dodawania.)
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt; Część LUA &lt;/strong&gt;
&lt;/p&gt;

&lt;p&gt;
Wchodzimy do katalogu /data/talkactions/talkactions.xml tam dodajemy linijkę:
&lt;/p&gt;
&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;talkaction&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;words&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;!offer&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;auctionsystem.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Nastepnie przechodzimy do katalogu /data/talkactions/scripts/ i tam tworzymy plik auctionsystem.lua oraz dodajemy do niego:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/system_aukcji_by_vdk_all_fixed?do=export_code&amp;amp;codeblock=4&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;auctionsystem.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;  &lt;span class=&quot;coMULTI&quot;&gt;--[[
        Offline player to player item trader (Auction System) by vDk
                Script version: 1.2a [ -- FIXED CLONE ITEMS BUG -- ]
]]&lt;/span&gt;&lt;span class=&quot;co1&quot;&gt;--&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; config &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
        levelRequiredToAdd &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;,
        maxOffersPerPlayer &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;5&lt;/span&gt;,
        SendOffersOnlyInPZ &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;,
        blocked_items &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2165&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2152&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2148&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2160&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2166&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2167&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2168&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2169&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2202&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2203&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2204&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2205&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2206&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2207&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2208&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2209&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2210&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2211&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2212&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2213&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2214&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2215&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2343&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2433&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;2640&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;6132&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;6300&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;6301&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;9932&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;9933&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
        &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, words, param, channel&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;param &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;''&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Command requires param.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; t &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;string&lt;/span&gt;.explode&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;param, &lt;span class=&quot;st0&quot;&gt;&amp;quot;,&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;add&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;not&lt;/span&gt; t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;not&lt;/span&gt; t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;not&lt;/span&gt; t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Command requires param.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;not&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;not&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;You don't set valid price or items count.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;string.len&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;7&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;string.len&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;This price or item count is too high.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
                &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; item &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getItemIdByName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;false&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;not&lt;/span&gt; item&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Item wich such name does not exists.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerLevel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; config.levelRequiredToAdd&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;You don't have required (&amp;quot;&lt;/span&gt; .. config.levelRequiredToAdd .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;) level.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;isInArray&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;config.blocked_items, item&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;This item is blocked.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerItemCount&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, item&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Sorry, you don't have this item(s).&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
                &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; check &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; db.getResult&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;SELECT `id` FROM `auction_system` WHERE `player` = &amp;quot;&lt;/span&gt; .. getPlayerGUID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;check:getID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;check:getRows&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;=&lt;/span&gt; config.maxOffersPerPlayer&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Sorry you can't add more offers (max. &amp;quot;&lt;/span&gt; .. config.maxOffersPerPlayer .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;)&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;config.SendOffersOnlyInPZ&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;    
                        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;not&lt;/span&gt; getTilePzInfo&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerPosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;You must be in PZ area when you add offert to database.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                                &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;You have to type a number higher than 0.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
                &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; itemcount, costgp &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;math.floor&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;4&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;kw1&quot;&gt;math.floor&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerRemoveItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, item, itemcount&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                db.executeQuery&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;INSERT INTO `auction_system` (`player`, `item_name`, `item_id`, `count`, `cost`, `date`) VALUES (&amp;quot;&lt;/span&gt; .. getPlayerGUID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;, &lt;span class=&quot;es0&quot;&gt;\&amp;quot;&lt;/span&gt;&amp;quot;&lt;/span&gt; .. t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es0&quot;&gt;\&amp;quot;&lt;/span&gt;, &amp;quot;&lt;/span&gt; .. getItemIdByName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;, &amp;quot;&lt;/span&gt; .. itemcount .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;, &amp;quot;&lt;/span&gt; .. costgp ..&lt;span class=&quot;st0&quot;&gt;&amp;quot;, &amp;quot;&lt;/span&gt; .. &lt;span class=&quot;kw1&quot;&gt;os.time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;)&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_INFO_DESCR, &lt;span class=&quot;st0&quot;&gt;&amp;quot;You successfully add &amp;quot;&lt;/span&gt; .. itemcount ..&lt;span class=&quot;st0&quot;&gt;&amp;quot; &amp;quot;&lt;/span&gt; .. t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; ..&lt;span class=&quot;st0&quot;&gt;&amp;quot; for &amp;quot;&lt;/span&gt; .. costgp .. &lt;span class=&quot;st0&quot;&gt;&amp;quot; gps to offerts database.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;buy&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;not&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Wrong ID.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
                &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; buy &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; db.getResult&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;SELECT * FROM `auction_system` WHERE `id` = &amp;quot;&lt;/span&gt; .. &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;buy:getID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ~&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerMoney&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; buy:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;cost&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;You don't have enoguh GP.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                                buy:free&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                                &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
                        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; getPlayerNameByGUID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;buy:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;player&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Sorry, you can't buy your own items.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                                buy:free&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                                &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
                        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerFreeCap&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; getItemWeightById&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;buy:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;item_id&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, buy:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;count&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;You try to buy a &amp;quot;&lt;/span&gt; .. buy:getDataString&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;item_name&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;. It weight &amp;quot;&lt;/span&gt; .. getItemWeightById&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;buy:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;item_id&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, buy:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;count&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot; cap oz. and you have only &amp;quot;&lt;/span&gt; .. getPlayerFreeCap&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot; oz. free capacity. Put some items to depot and try again.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                                buy:free&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                                &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
                        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;isItemStackable&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;buy:getDataString&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;item_id&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                                doPlayerAddItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, buy:getDataString&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;item_id&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, buy:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;count&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                                &lt;span class=&quot;kw1&quot;&gt;for&lt;/span&gt; i &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, buy:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;count&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;do&lt;/span&gt;
                                        doPlayerAddItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, buy:getDataString&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;item_id&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
                        doPlayerRemoveMoney&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, buy:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;cost&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        db.executeQuery&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;DELETE FROM `auction_system` WHERE `id` = &amp;quot;&lt;/span&gt; .. t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_INFO_DESCR, &lt;span class=&quot;st0&quot;&gt;&amp;quot;You bought &amp;quot;&lt;/span&gt; .. buy:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;count&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot; &amp;quot;&lt;/span&gt;.. buy:getDataString&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;item_name&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot; for &amp;quot;&lt;/span&gt; .. buy:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;cost&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot; gps!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        db.executeQuery&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;UPDATE `players` SET `auction_balance` = `auction_balance` + &amp;quot;&lt;/span&gt; .. buy:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;cost&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot; WHERE `id` = &amp;quot;&lt;/span&gt; .. buy:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;player&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        buy:free&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Wrong ID.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;remove&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;not&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Wrong ID.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
                                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;config.SendOffersOnlyInPZ&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;    
                                        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;not&lt;/span&gt; getTilePzInfo&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerPosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                                                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;You must be in PZ area when you remove offerts from database.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                                                &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
                                        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
                &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; delete &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; db.getResult&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;SELECT * FROM `auction_system` WHERE `id` = &amp;quot;&lt;/span&gt; .. &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;        
                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;delete:getID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ~&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerGUID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; delete:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;player&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                                db.executeQuery&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;DELETE FROM `auction_system` WHERE `id` = &amp;quot;&lt;/span&gt; .. t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;isItemStackable&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;delete:getDataString&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;item_id&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                                        doPlayerAddItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, delete:getDataString&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;item_id&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, delete:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;count&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                                &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                                        &lt;span class=&quot;kw1&quot;&gt;for&lt;/span&gt; i &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;, delete:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;count&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;do&lt;/span&gt;
                                                doPlayerAddItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, delete:getDataString&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;item_id&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                                        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
                                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
                                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_INFO_DESCR, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Your offert has been deleted from offerts database.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;This is not your offert!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
                delete:free&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Wrong ID.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;withdraw&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; balance &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; db.getResult&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;SELECT `auction_balance` FROM `players` WHERE `id` = &amp;quot;&lt;/span&gt; .. getPlayerGUID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;balance:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;auction_balance&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_INFO_DESCR, &lt;span class=&quot;st0&quot;&gt;&amp;quot;You don't have money on your auction balance.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        balance:free&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_INFO_DESCR, &lt;span class=&quot;st0&quot;&gt;&amp;quot;You got &amp;quot;&lt;/span&gt; .. balance:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;auction_balance&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot; gps from auction system!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doPlayerAddMoney&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, balance:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;auction_balance&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                db.executeQuery&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;UPDATE `players` SET `auction_balance` = '0' WHERE `id` = &amp;quot;&lt;/span&gt; .. getPlayerGUID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                balance:free&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Gotowe!
&lt;/p&gt;
</description>
        <category>otspub</category>
            <pubDate>Wed, 28 Apr 2010 15:41:29 +0200</pubDate>
        </item>
        <item>
            <title>otspub:system_huntowania_graczy_by_infinity</title>
            <link>http://otos.pl/doku.php/otspub/system_huntowania_graczy_by_infinity?rev=1272462240</link>
            <description>
&lt;p&gt;
Autor :Infinity z oTibia.net &lt;a href=&quot;http://otland.net/f81/bounty-hunters-system-player-hunt-system-27721/&quot; class=&quot;urlextern&quot; title=&quot;http://otland.net/f81/bounty-hunters-system-player-hunt-system-27721/&quot;  rel=&quot;nofollow&quot;&gt;klik&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
Licencja : Rób co chcesz byle by nie zmieniać autora 
&lt;/p&gt;

&lt;p&gt;
Skrypt działa na zasadzie gdy gracz &lt;strong&gt;x&lt;/strong&gt; został zabity przez gracza &lt;strong&gt;y&lt;/strong&gt; (zdenerwował sie bo ma dużo mniejszy level niż gracz &lt;strong&gt;y&lt;/strong&gt;) ma on dużo pieniędzy wiec zamawia hunta graczowi &lt;strong&gt;y&lt;/strong&gt;. Za jego głowę płaci 100k. Gracz &lt;strong&gt;z&lt;/strong&gt; zabija gracza &lt;strong&gt;y&lt;/strong&gt; i otrzymuje nagrodę w wysokości 100k.
&lt;/p&gt;

&lt;p&gt;
Teraz konkrety:
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt; Część &lt;acronym title=&quot;Structured Query Language&quot;&gt;SQL&lt;/acronym&gt; &lt;/strong&gt;
&lt;/p&gt;
&lt;pre class=&quot;code file sql&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;TABLE&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;IF&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;EXISTS&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`bounty_hunters`&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;
  &lt;span class=&quot;st0&quot;&gt;`id`&lt;/span&gt; int&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;AUTO_INCREMENT&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;st0&quot;&gt;`fp_id`&lt;/span&gt; int&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;st0&quot;&gt;`sp_id`&lt;/span&gt; int&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;st0&quot;&gt;`k_id`&lt;/span&gt; int&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;st0&quot;&gt;`added`&lt;/span&gt; int&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;15&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;st0&quot;&gt;`prize`&lt;/span&gt; bigint&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;st0&quot;&gt;`killed`&lt;/span&gt; int&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;st0&quot;&gt;`kill_time`&lt;/span&gt; int&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;15&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;kw1&quot;&gt;PRIMARY&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;KEY&lt;/span&gt;  &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;`id`&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ENGINE&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;MyISAM  &lt;span class=&quot;kw1&quot;&gt;DEFAULT&lt;/span&gt; CHARSET&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;utf8 COLLATE&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;utf8_unicode_ci;&lt;/pre&gt;

&lt;p&gt;
&lt;strong&gt; Część LUA &lt;/strong&gt;
&lt;/p&gt;

&lt;p&gt;
Wchodzimy do katalogu /data/talkactions/scripts/ tworzymy plik bh-add.lua dodajemy do niego:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/system_huntowania_graczy_by_infinity?do=export_code&amp;amp;codeblock=1&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;bh-add.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, words, param&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;param &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
		doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;[BOUNTY HUNTERS] Use: &lt;span class=&quot;es0&quot;&gt;\&amp;quot;&lt;/span&gt;!hunt [prize],[nick]&lt;span class=&quot;es0&quot;&gt;\&amp;quot;&lt;/span&gt; where prize is for example 1(k).&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; TRUE
	&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; t &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;string&lt;/span&gt;.explode&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;param, &lt;span class=&quot;st0&quot;&gt;&amp;quot;,&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;not&lt;/span&gt; t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
		doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;[BOUNTY HUNTERS] Use: &lt;span class=&quot;es0&quot;&gt;\&amp;quot;&lt;/span&gt;!hunt [prize],[nick]&lt;span class=&quot;es0&quot;&gt;\&amp;quot;&lt;/span&gt; where prize is for example 1(k).&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; TRUE
	&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; sp_id &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerGUIDByName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; sp_id &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;nil&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
		doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;[BOUNTY HUNTERS] This player doesn't exists.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;		
		&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; TRUE
	&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
    &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; result_plr &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; db.getResult&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;SELECT * FROM `bounty_hunters` WHERE `sp_id` = &amp;quot;&lt;/span&gt;..sp_id..&lt;span class=&quot;st0&quot;&gt;&amp;quot; AND `killed` = 0;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;result_plr:getID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ~&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
		is &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;result_plr:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;sp_id&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		result_plr:free&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
		is &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
    prize &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;t&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;prize &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;nil&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; prize &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
		doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;[BOUNTY HUNTERS] Use: &lt;span class=&quot;es0&quot;&gt;\&amp;quot;&lt;/span&gt;!hunt [prize],[nick]&lt;span class=&quot;es0&quot;&gt;\&amp;quot;&lt;/span&gt; where prize is for example 1(k).&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; TRUE
	&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;prize &lt;span class=&quot;sy0&quot;&gt;&amp;gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;100000000000000000000&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
		doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;[BOUNTY HUNTERS] Sorry, you typed too big number!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
		&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; TRUE
	&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; is ~&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
		doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;[BOUNTY HUNTERS] This player has already hunted.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;	
		&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; TRUE
	&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
		&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; doPlayerRemoveMoney&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, prize&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; TRUE &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
		    db.executeQuery&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;INSERT INTO `bounty_hunters` VALUES (NULL,&amp;quot;&lt;/span&gt;..getPlayerGUID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot;,&amp;quot;&lt;/span&gt;..sp_id..&lt;span class=&quot;st0&quot;&gt;&amp;quot;,0,&amp;quot;&lt;/span&gt; .. &lt;span class=&quot;kw1&quot;&gt;os.time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot;,&amp;quot;&lt;/span&gt;..prize..&lt;span class=&quot;st0&quot;&gt;&amp;quot;,0,0);&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;[BOUNTY HUNTERS] Hunt has been added!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;			
		&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
			doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_STATUS_CONSOLE_BLUE, &lt;span class=&quot;st0&quot;&gt;&amp;quot;[BOUNTY HUNTERS] You haven't got enough money!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;			
		&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
&amp;nbsp;
	&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Następnie wchodzimy do katalogu /data/talkactions/talkactions.xml/ i dodajemy linijkę:
&lt;/p&gt;
&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;talkaction&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;access&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;0&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;log&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;no&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;filter&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;word&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;words&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;!hunt&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;script&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;bh-add.lua&amp;quot;&lt;/span&gt; &lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Kolejnym krokiem jest wejście do katalogu data/creaturescript/creaturescripts.xml i dodanie linijki:
&lt;/p&gt;
&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;event&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;kill&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;BountyHunter&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;script&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;kill.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Następnie data/creaturescripts/scripts/ otwieramy plik login.lua i dodajemy tam linijkę:
&lt;/p&gt;
&lt;pre class=&quot;code file lua&quot;&gt;POD LINIJKA&lt;span class=&quot;sy0&quot;&gt;!&lt;/span&gt;
	registerCreatureEvent&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;PlayerDeath&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
DODAC TO
	registerCreatureEvent&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;BountyHunter&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Zostajemy w katalogu data/creaturescripts/scripts/ i tworzymy plik kill.lua wklejamy do niego:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/system_huntowania_graczy_by_infinity?do=export_code&amp;amp;codeblock=5&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;kill.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onKill&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, target&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; isPlayer&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;target&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; TRUE &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
&lt;span class=&quot;co1&quot;&gt;---- BOUNTY HUNTERS START -----&lt;/span&gt;
pid &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; cid
pid2 &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerGUID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;target&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; result_plr &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; db.getResult&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;SELECT * FROM `bounty_hunters` WHERE `sp_id` = &amp;quot;&lt;/span&gt;..pid2..&lt;span class=&quot;st0&quot;&gt;&amp;quot; AND `killed` = 0;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;result_plr:getID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ~&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
    prize &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;result_plr:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;prize&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
    bid &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;result_plr:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;id&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	result_plr:free&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
    prize &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;
	bid &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;bid ~&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; prize ~&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;not&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getTileInfo&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;.pvp&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
    db.executeQuery&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;UPDATE `bounty_hunters` SET `killed` = 1, `k_id`=&amp;quot;&lt;/span&gt;..getPlayerGUID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot;, `kill_time` = &amp;quot;&lt;/span&gt; .. &lt;span class=&quot;kw1&quot;&gt;os.time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; .. &lt;span class=&quot;st0&quot;&gt;&amp;quot; WHERE `id`  = &amp;quot;&lt;/span&gt;..bid..&lt;span class=&quot;st0&quot;&gt;&amp;quot;;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	doPlayerAddMoney&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,prize&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
	doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,MESSAGE_STATUS_CONSOLE_BLUE,&lt;span class=&quot;st0&quot;&gt;'[BOUNTY HUNTERS] You killed hunted player, so you gained the reward!'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;	
&lt;span class=&quot;co1&quot;&gt;---- BOUNTY HUNTERS END -----&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; TRUE
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
&lt;strong&gt;Część &lt;acronym title=&quot;Hypertext Preprocessor&quot;&gt;PHP&lt;/acronym&gt;&lt;/strong&gt;
&lt;/p&gt;

&lt;p&gt;
Tworzymy plik bounty-hunters.php w katalogu z naszym acc makerem.
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/system_huntowania_graczy_by_infinity?do=export_code&amp;amp;codeblock=6&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_php&quot;&gt;bounty-hunters.php&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file php&quot;&gt;   &lt;span class=&quot;kw2&quot;&gt;&amp;lt;?php&lt;/span&gt;
&lt;span class=&quot;sy0&quot;&gt;@&lt;/span&gt;&lt;a href=&quot;http://www.php.net/mysql_connect&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;mysql_connect&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;localhost&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;user&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;password&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;sy0&quot;&gt;@&lt;/span&gt;&lt;a href=&quot;http://www.php.net/mysql_select_db&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;mysql_select_db&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;database&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;P ALIGN=CENTER&amp;gt;
    &amp;lt;br&amp;gt;
    &amp;lt;FONT SIZE=5 COLOR=#CFF00C&amp;gt;
        How to use...
    &amp;lt;/FONT&amp;gt;
    &amp;lt;br&amp;gt;
    &amp;lt;br&amp;gt;
    &amp;lt;FONT SIZE=2 COLOR=#CFF00C&amp;gt;
    * !hunt [prize],[nick] :
        &amp;lt;FONT SIZE=1 COLOR=#FCC33F&amp;gt;
            Wysyla ogloszenie o huncie dla postaci. Cena w tysiacach.&amp;lt;br&amp;gt;
            Przyklad: !hunt 100,Infinity
        &amp;lt;/FONT&amp;gt;&amp;lt;br&amp;gt;
    &amp;lt;/FONT&amp;gt;
&amp;lt;/P&amp;gt;
&amp;lt;br&amp;gt;
&amp;lt;br&amp;gt;
    &amp;lt;center&amp;gt;
        &amp;lt;h1&amp;gt;
            Bounty Hunters
        &amp;lt;/h1&amp;gt;
    &amp;lt;/center&amp;gt;
        &amp;lt;TABLE BORDER=0 CELLSPACING=1 CELLPADDING=4 WIDTH=100%&amp;gt;
            &amp;lt;TR BGCOLOR=&amp;quot;#505050&amp;quot;&amp;gt;
                &amp;lt;TD CLASS=white width=30%&amp;gt;
                    &amp;lt;center&amp;gt;&amp;lt;B&amp;gt;Zlecil&amp;lt;/B&amp;gt;&amp;lt;/center&amp;gt;
                &amp;lt;/TD&amp;gt;
                &amp;lt;TD CLASS=white width=30%&amp;gt;
                    &amp;lt;center&amp;gt;&amp;lt;B&amp;gt;Nagroda&amp;lt;/B&amp;gt;&amp;lt;/center&amp;gt;
                &amp;lt;/TD&amp;gt;
                &amp;lt;TD CLASS=white width=30%&amp;gt;
                    &amp;lt;center&amp;gt;&amp;lt;B&amp;gt;Ofiara&amp;lt;/B&amp;gt;&amp;lt;/center&amp;gt;
                &amp;lt;/TD&amp;gt;
                &amp;lt;TD CLASS=white width=10%&amp;gt;
                    &amp;lt;center&amp;gt;&amp;lt;B&amp;gt;Zabity przez&amp;lt;/B&amp;gt;&amp;lt;/center&amp;gt;
                &amp;lt;/TD&amp;gt;
            &amp;lt;/TR&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
 &lt;span class=&quot;re0&quot;&gt;$inv&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;@&lt;/span&gt;&lt;a href=&quot;http://www.php.net/mysql_query&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;mysql_query&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;SELECT * FROM `bounty_hunters` ORDER BY `added` DESC&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$num&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$color&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'site'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'darkborder'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;while&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$tab&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;@&lt;/span&gt;&lt;a href=&quot;http://www.php.net/mysql_fetch_array&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;mysql_fetch_array&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$inv&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$num&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;%&lt;/span&gt;&lt;span class=&quot;nu19&quot;&gt;2&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$color&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'site'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'darkborder'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$color&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$config&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'site'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'lightborder'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$pid&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$tab&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'fp_id'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$sid&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$tab&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'sp_id'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$kid&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$tab&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'k_id'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$killed&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$tab&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'killed'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$prize&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$tab&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'prize'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1000&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$killed&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$kill&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;font color=&amp;quot;red&amp;quot;&amp;gt;Nobody!&amp;lt;/font&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$k&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;@&lt;/span&gt;&lt;a href=&quot;http://www.php.net/mysql_query&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;mysql_query&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;SELECT * FROM `players` WHERE `id` = &amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$kid&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$k1&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;@&lt;/span&gt;&lt;a href=&quot;http://www.php.net/mysql_fetch_array&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;mysql_fetch_array&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$k&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$kill_name&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$k1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'name'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$kill&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'&amp;lt;a href=&amp;quot;index.php?subtopic=characters&amp;amp;name='&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$kill_name&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot;&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$kill_name&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/a&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$f&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;@&lt;/span&gt;&lt;a href=&quot;http://www.php.net/mysql_query&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;mysql_query&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;SELECT * FROM `players` WHERE `id` = &amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$pid&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$f1&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;@&lt;/span&gt;&lt;a href=&quot;http://www.php.net/mysql_fetch_array&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;mysql_fetch_array&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$f&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$s&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;@&lt;/span&gt;&lt;a href=&quot;http://www.php.net/mysql_query&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;mysql_query&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;SELECT * FROM `players` WHERE `id` = &amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sid&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$s1&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;@&lt;/span&gt;&lt;a href=&quot;http://www.php.net/mysql_fetch_array&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;mysql_fetch_array&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$s&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$fn&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$f1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'name'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$sn&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$s1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'name'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt; &lt;span class=&quot;st_h&quot;&gt;'
        &amp;lt;TR BGCOLOR=&amp;quot;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$color&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot;&amp;gt;
            &amp;lt;TD&amp;gt;
                &amp;lt;center&amp;gt;
                    &amp;lt;b&amp;gt;
                        &amp;lt;a href=&amp;quot;index.php?subtopic=characters&amp;amp;name='&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$fn&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot;&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$fn&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/a&amp;gt;
                    &amp;lt;/b&amp;gt;
                &amp;lt;/center&amp;gt;
            &amp;lt;/TD&amp;gt;
            &amp;lt;TD&amp;gt;
                &amp;lt;center&amp;gt;
                    &amp;lt;b&amp;gt;
                        '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$prize&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;' gp
                    &amp;lt;/b&amp;gt;
                &amp;lt;/center&amp;gt;
            &amp;lt;/TD&amp;gt;
            &amp;lt;TD&amp;gt;
                &amp;lt;center&amp;gt;
                    &amp;lt;b&amp;gt;
                        &amp;lt;a href=&amp;quot;index.php?subtopic=characters&amp;amp;name='&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sn&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot;&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sn&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/a&amp;gt;
                    &amp;lt;/b&amp;gt;
                &amp;lt;/center&amp;gt;
            &amp;lt;/TD&amp;gt;
            &amp;lt;TD&amp;gt;
                &amp;lt;center&amp;gt;
                    &amp;lt;b&amp;gt;
                        '&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$kill&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'
                    &amp;lt;/b&amp;gt;
                &amp;lt;/center&amp;gt;
            &amp;lt;/TD&amp;gt;
        &amp;lt;/TR&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;re0&quot;&gt;$num&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;++;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$num&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
        &lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;TR BGCOLOR=&amp;quot;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$color&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;quot;&amp;gt;
            &amp;lt;TD colspan=4&amp;gt;
                &amp;lt;center&amp;gt;
                    Currently there are not any bounty hunter offer.
                &amp;lt;/center&amp;gt;
            &amp;lt;/TD&amp;gt;
        &amp;lt;/TR&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
        &lt;span class=&quot;re0&quot;&gt;$main_content&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;.=&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'&amp;lt;/TABLE&amp;gt;&amp;lt;div align=&amp;quot;right&amp;quot;&amp;gt;Copyright &amp;amp;copy; &amp;lt;a href=&amp;quot;http://otibia.net&amp;quot;&amp;gt;oTibia.net&amp;lt;/a&amp;gt;.&amp;lt;/div&amp;gt;'&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
&lt;span class=&quot;sy1&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Teraz dodajemy to do naszego index.php :
&lt;/p&gt;
&lt;pre class=&quot;code file php&quot;&gt;POD 
&amp;nbsp;
    &lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;guilds&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;re0&quot;&gt;$topic&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Guilds&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;re0&quot;&gt;$subtopic&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;guilds&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;include&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;guilds.php&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;  
&amp;nbsp;
WKLEJAMY TO
&amp;nbsp;
    &lt;span class=&quot;kw1&quot;&gt;case&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;bounty-hunters&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;re0&quot;&gt;$topic&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Bounty Hunters&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;re0&quot;&gt;$subtopic&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;characters&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;include&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;bounty-hunters.php&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;break&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;/pre&gt;

&lt;p&gt;
To dodajemy do naszego layouta jeśli używamy tibiacom layout:
&lt;/p&gt;
&lt;pre class=&quot;code file php&quot;&gt;&amp;lt;a href='index.php?subtopic=bounty-hunters'&amp;gt;
  &amp;lt;div id='submenu_bounty' class='Submenuitem' onMouseOver='MouseOverSubmenuItem(this)' onMouseOut='MouseOutSubmenuItem(this)'&amp;gt;
    &amp;lt;div class='LeftChain' style='background-image:url(&lt;span class=&quot;kw2&quot;&gt;&amp;lt;?PHP&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$layout_name&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;sy1&quot;&gt;?&amp;gt;&lt;/span&gt;/images/general/chain.gif);'&amp;gt;&amp;lt;/div&amp;gt;
&amp;nbsp;
    &amp;lt;div id='ActiveSubmenuItemIcon_biunty' class='ActiveSubmenuItemIcon' style='background-image:url(&lt;span class=&quot;kw2&quot;&gt;&amp;lt;?PHP&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$layout_name&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;sy1&quot;&gt;?&amp;gt;&lt;/span&gt;/images/menu/icon-activesubmenu.gif);'&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;div class='SubmenuitemLabel'&amp;gt;Bounty Hunters&amp;lt;/div&amp;gt;
    &amp;lt;div class='RightChain' style='background-image:url(&lt;span class=&quot;kw2&quot;&gt;&amp;lt;?PHP&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;echo&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$layout_name&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;sy1&quot;&gt;?&amp;gt;&lt;/span&gt;/images/general/chain.gif);'&amp;gt;&amp;lt;/div&amp;gt;
  &amp;lt;/div&amp;gt;&lt;/pre&gt;

&lt;h3 class=&quot;sectionedit36&quot;&gt;&lt;a name=&quot;pamietaj_system_nie_dziala_w_sqlite_tylko_mysql&quot; id=&quot;pamietaj_system_nie_dziala_w_sqlite_tylko_mysql&quot;&gt;PAMIETAJ! SYSTEM NIE DZIAŁA W SQLite TYLKO MySQL!&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;/div&gt;
&lt;!-- EDIT36 SECTION &quot;PAMIETAJ! SYSTEM NIE DZIAŁA W SQLite TYLKO MySQL!&quot; [9056-] --&gt;</description>
        <category>otspub</category>
            <pubDate>Wed, 28 Apr 2010 15:44:00 +0200</pubDate>
        </item>
        <item>
            <title>otspub:system_reportow_by_guitar_freak</title>
            <link>http://otos.pl/doku.php/otspub/system_reportow_by_guitar_freak?rev=1272463167</link>
            <description>
&lt;p&gt;
Autor: Guitar Freak &lt;a href=&quot;http://otland.net/f81/working-report-talkaction-0-3-a-44500/&quot; class=&quot;urlextern&quot; title=&quot;http://otland.net/f81/working-report-talkaction-0-3-a-44500/&quot;  rel=&quot;nofollow&quot;&gt;klik&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
Licencja: Brak
&lt;/p&gt;

&lt;p&gt;
Skrypt działa na zasadzie “normalnego” systemu reportów który mamy w tfsie lecz ten jest &lt;strong&gt;lepszy&lt;/strong&gt; poniewaz gracz który zaraportuje “buga” mapy możemy sprawdzić gdzie on jest ponieważ wiadomość oraz pozycja gracza zapisuje się w folderze /data/logs/report.txt/
&lt;/p&gt;

&lt;p&gt;
Teraz przechodzimy do konkretów!
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;Część LUA&lt;/strong&gt;
&lt;/p&gt;

&lt;p&gt;
Wchodzimy do folderu /data/lib/  otwieramy znajdujący się tam plik function.lua i wklejamy do niego:
&lt;/p&gt;
&lt;pre class=&quot;code file lua&quot;&gt;  &lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; setExhaust&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, storage&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
    setPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, storage, &lt;span class=&quot;kw1&quot;&gt;os.time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; isExhausted&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, storage, exhaust&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; exhaustTime &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, storage&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; exhaustTime &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; FALSE
    &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; isExhausted &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;os.time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - exhaustTime &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; exhaust
    &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; isExhausted &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; TRUE &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; FALSE
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt; &lt;/pre&gt;

&lt;p&gt;
Nastepnie przechodzimy do katalogu /data/talkactions/talkactions.xml/ i doklejamy linjkę:
&lt;/p&gt;
&lt;pre class=&quot;code file xml&quot;&gt;    &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;talkaction&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;log&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;no&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;words&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;/report&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;filter&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;quotation&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;textreports.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  &lt;/pre&gt;

&lt;p&gt;
Przechodzimy do /data/talkactions/scripts/ i tworzymy plik textreports.lua :
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/system_reportow_by_guitar_freak?do=export_code&amp;amp;codeblock=2&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;textreports.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;        &lt;span class=&quot;co1&quot;&gt;-- Credits --&lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;-- References: Shawak &amp;amp; Colandus.&lt;/span&gt;
        &lt;span class=&quot;co1&quot;&gt;-- Modifications: Guitar Freak.&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; level &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;8&lt;/span&gt;                         &lt;span class=&quot;co1&quot;&gt;-- Minimum level to send a report.&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; minimum &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;                       &lt;span class=&quot;co1&quot;&gt;-- Minimum characters per report.&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; maximum &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;85&lt;/span&gt;                      &lt;span class=&quot;co1&quot;&gt;-- Maximum characters per report.&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; useExhaust &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;         &lt;span class=&quot;co1&quot;&gt;-- True if you want to use exhaustion, false if not.&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; storageValue &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;8000&lt;/span&gt;       &lt;span class=&quot;co1&quot;&gt;-- Needed for exhaustion to work. Set to any unused value you wish.&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; exhaustTime &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;15&lt;/span&gt;          &lt;span class=&quot;co1&quot;&gt;-- Exhaust time between each report (15 = 15 seconds).&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; getVoc &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getPlayerVocationName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; position &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, words, param, channel&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; getPlayerLevel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; level &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;Report Manager:&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;18&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You need to be at least level &amp;quot;&lt;/span&gt;..level..&lt;span class=&quot;st0&quot;&gt;&amp;quot; to send a report.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
                &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;useExhaust &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; isExhausted&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, storageValue, exhaustTime&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; TRUE&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;Report Manager:&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;18&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;Sorry, you need to wait &amp;quot;&lt;/span&gt;..exhaustTime..&lt;span class=&quot;st0&quot;&gt;&amp;quot; seconds before sending another report.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
                &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; param:len&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; minimum &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;Report Manager:&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;18&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;Sorry, you need to enter atleast &amp;quot;&lt;/span&gt; .. minimum .. &lt;span class=&quot;st0&quot;&gt;&amp;quot; characters to send in a report.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
                &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; param:len&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; maximum &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;Report Manager:&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;18&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;Sorry, you can only write max. &amp;quot;&lt;/span&gt; .. maximum .. &lt;span class=&quot;st0&quot;&gt;&amp;quot; characters per report.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
                &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                        Log &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;io.open&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getDataDir&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot;logs/Reports.txt&amp;quot;&lt;/span&gt;, &lt;span class=&quot;st0&quot;&gt;&amp;quot;a+&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        Log:&lt;span class=&quot;kw1&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;Sent: &amp;quot;&lt;/span&gt;..&lt;span class=&quot;kw1&quot;&gt;os.date&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;%A %I:%M:%S %p.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        Log:&lt;span class=&quot;kw1&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;From position: X = &amp;quot;&lt;/span&gt;..position.x..&lt;span class=&quot;st0&quot;&gt;&amp;quot; | Y = &amp;quot;&lt;/span&gt;..position.y..&lt;span class=&quot;st0&quot;&gt;&amp;quot; | Z = &amp;quot;&lt;/span&gt;..position.z..&lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        Log:&lt;span class=&quot;kw1&quot;&gt;write&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt;..getPlayerName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot; [&amp;quot;&lt;/span&gt;..getPlayerLevel&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot;] (&amp;quot;&lt;/span&gt;..getVoc..&lt;span class=&quot;st0&quot;&gt;&amp;quot;): &amp;quot;&lt;/span&gt;..param..&lt;span class=&quot;st0&quot;&gt;&amp;quot;&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                        Log:close&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;20&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;Report Manager:&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                                doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;27&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You have successfully sent your report. Thanks for your support.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                                setExhaust&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, storageValue&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
                &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; TRUE
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Testowany na tfs 0.3.4 oraz 0.3.5 ! Komendy w grze &lt;strong&gt;/report tekst&lt;/strong&gt;
&lt;/p&gt;
</description>
        <category>otspub</category>
            <pubDate>Wed, 28 Apr 2010 15:59:27 +0200</pubDate>
        </item>
        <item>
            <title>otspub:vip_most_by_legolas23</title>
            <link>http://otos.pl/doku.php/otspub/vip_most_by_legolas23?rev=1272462357</link>
            <description>
&lt;p&gt;
Autor: &lt;strong&gt;legolas23&lt;/strong&gt;   Źródło: &lt;a href=&quot;http://otland.net/f81/vip-bridge-script-52104/&quot; class=&quot;urlextern&quot; title=&quot;http://otland.net/f81/vip-bridge-script-52104/&quot;  rel=&quot;nofollow&quot;&gt;| Kilik&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
Licencja: Nie ma.
&lt;/p&gt;

&lt;p&gt;
Zamieścił: kielb
&lt;/p&gt;

&lt;p&gt;
Wchodzimy do katalogu /data/movements/scripts/   i tworzymy katalog vipbridge.lua
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/vip_most_by_legolas23?do=export_code&amp;amp;codeblock=0&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;vipbridge.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onStepIn&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, item, position, fromPosition&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; config &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
uniqueid &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1234&lt;/span&gt;,   &lt;span class=&quot;co1&quot;&gt;---item unique id&lt;/span&gt;
vipstorage &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1234&lt;/span&gt;, &lt;span class=&quot;co1&quot;&gt;---- storage of vip player&lt;/span&gt;
kickpos &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1232&lt;/span&gt;, y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;234&lt;/span&gt;, z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;234&lt;/span&gt;, stackpos&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;--- position where non vip player will be kicked&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
    &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;item.uid &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; config.uniqueid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
        &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerStorageValue&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, config.vipstorage&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
			doTeleportThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, config.kickpos&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
			doCreatureSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Only Vip players can pass here!, TALKTYPE_ORANGE_2, getCreaturePosition(cid))
		else
			doPlayerSendTextMessage(cid, 20, 'Hiho vip Player!')		
		end
return TRUE
end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Nastepnie do /data/movements/movements.xml i dodajemy linijkę
&lt;/p&gt;
&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;movevent&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;StepIn&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;itemid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;UNIQUEID HERE&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;vipbridge.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
</description>
        <category>otspub</category>
            <pubDate>Wed, 28 Apr 2010 15:45:57 +0200</pubDate>
        </item>
        <item>
            <title>otspub:vip_system_by_mock_vip_medal_door_by_moqill_lua</title>
            <link>http://otos.pl/doku.php/otspub/vip_system_by_mock_vip_medal_door_by_moqill_lua?rev=1272385796</link>
            <description>
&lt;p&gt;
Autor głównego system to: &lt;strong&gt;Mock&lt;/strong&gt; &lt;a href=&quot;http://otland.net/f163/mock-vip-system-vip-account-51512/&quot; class=&quot;urlextern&quot; title=&quot;http://otland.net/f163/mock-vip-system-vip-account-51512/&quot;  rel=&quot;nofollow&quot;&gt;link&lt;/a&gt;
licencja: ~brak opisu~&lt;br/&gt;

Autorem dodatkowego mebla i drzwi: &lt;strong&gt;Moqill&lt;/strong&gt; Licencja: Rób co chcesz byle by nie zmieniać autora
&lt;/p&gt;

&lt;p&gt;
Testowane na: tfs 0.4_
&lt;/p&gt;

&lt;p&gt;
Najpierw uaktualniamy baze danych o linijke 
&lt;/p&gt;
&lt;pre class=&quot;code sql&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;ALTER&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;TABLE&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`accounts`&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;ADD&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`vip_time`&lt;/span&gt; INT&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;15&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Dodajem w data/lib/ plik o naziw vip_system.lua. Wklejamy w niego
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/vip_system_by_mock_vip_medal_door_by_moqill_lua?do=export_code&amp;amp;codeblock=1&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;vip_system.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;vip &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;
   name &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Vip system&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
   author &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;Mock&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
   version &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;1.0.0.0&amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
   query&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;ALTER TABLE `accounts` ADD `vip_time` INT( 15 ) NOT NULL&amp;quot;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; vip.setTable&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   db.executeQuery&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;vip.query&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; vip.getVip&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;assert&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;'Parameter must be a number'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; isPlayer&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; FALSE &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;error&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Player don&lt;span class=&quot;es0&quot;&gt;\'&lt;/span&gt;t find'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
         ae &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;  db.getResult&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;SELECT `vip_time` FROM `accounts` WHERE `name` = &amp;quot;&lt;/span&gt;..getPlayerAccount&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot;;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; ae:getID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; ae:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;vip_time&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; vip.getVipByAcc&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;acc&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;assert&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;acc,&lt;span class=&quot;st0&quot;&gt;'Account is nil'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; a &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; db.getResult&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;SELECT `vip_time` FROM `accounts` WHERE `name` = &amp;quot;&lt;/span&gt;..acc..&lt;span class=&quot;st0&quot;&gt;&amp;quot;;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; a:getID&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ~&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; -&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
             &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; a:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;vip_time&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
             &lt;span class=&quot;kw1&quot;&gt;error&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Account don&lt;span class=&quot;es0&quot;&gt;\'&lt;/span&gt;t find.'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; vip.setVip&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;dofile&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;config.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;assert&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;'Parameter must be a number'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;assert&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;'Parameter must be a number'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; isPlayer&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; FALSE &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;error&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Player don&lt;span class=&quot;es0&quot;&gt;\'&lt;/span&gt;t find'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
         db.executeQuery&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;UPDATE `&amp;quot;&lt;/span&gt;..sqlDatabase..&lt;span class=&quot;st0&quot;&gt;&amp;quot;`.`accounts` SET `vip_time` = '&amp;quot;&lt;/span&gt;..&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;os.time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;+&lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot;' WHERE `accounts`.`name` =&amp;quot;&lt;/span&gt;.. getPlayerAccount&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot; LIMIT 1 ;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; vip.getVipByAccount&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;acc&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;assert&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;acc,&lt;span class=&quot;st0&quot;&gt;'Account is nil'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; db.getResult&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;SELECT `vip_time` FROM `accounts` WHERE `name` = &amp;quot;&lt;/span&gt;..acc..&lt;span class=&quot;st0&quot;&gt;&amp;quot;;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;:getDataInt&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;vip_time&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;                                      
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; vip.hasVip&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;assert&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;'Parameter must be a number'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; isPlayer&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; FALSE &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;error&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'Player don&lt;span class=&quot;es0&quot;&gt;\'&lt;/span&gt;t find'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; t &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; vip.getVip&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;os.time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;day&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; t &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; TRUE
         &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; FALSE
         &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; vip.accountHasVip&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;acc&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;assert&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;acc,&lt;span class=&quot;st0&quot;&gt;'Account is nil'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;os.time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; vip.getVipByAccount&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;acc&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; TRUE
         &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; FALSE
         &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; vip.getDays&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;days&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;3600&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;24&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; days&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; vip.addVipByAccount&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;acc,&lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;assert&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;acc,&lt;span class=&quot;st0&quot;&gt;'Account is nil'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;assert&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;'Parameter must be a number'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; a &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; vip.getVipByAcc&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;acc&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   a &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;os.difftime&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;a,&lt;span class=&quot;kw1&quot;&gt;os.time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; a &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt; a &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
   a &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; a+&lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; vip.setVipByAccount&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;acc,a&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; vip.setVipByAccount&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;acc,&lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;dofile&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;config.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;assert&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;acc,&lt;span class=&quot;st0&quot;&gt;'Account is nil'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;assert&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;'Parameter must be a number'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         db.executeQuery&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;UPDATE `&amp;quot;&lt;/span&gt;..sqlDatabase..&lt;span class=&quot;st0&quot;&gt;&amp;quot;`.`accounts` SET `vip_time` = '&amp;quot;&lt;/span&gt;..&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;os.time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;+&lt;span class=&quot;kw1&quot;&gt;time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot;' WHERE `accounts`.`name` =&amp;quot;&lt;/span&gt;..acc..&lt;span class=&quot;st0&quot;&gt;&amp;quot; LIMIT 1 ;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; TRUE
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; vip.returnVipString&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;assert&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;'Parameter must be a number'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; isPlayer&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; TRUE &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
      &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;os.date&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;%d %B %Y %X &amp;quot;&lt;/span&gt;, vip.getVip&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Dodajemy do talkactions.xml linijke najlepiej gdzies pod &amp;lt;!– God –&amp;gt;
&lt;/p&gt;
&lt;pre class=&quot;code xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;talkaction&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;log&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;yes&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;words&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;/vip&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;access&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;5&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;vip.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Dodajemy do data/talkaction/script/ pliczek o nazwie vip.lua z treścią:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/vip_system_by_mock_vip_medal_door_by_moqill_lua?do=export_code&amp;amp;codeblock=3&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;vip.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;  &lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, words, param&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; param &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;&amp;quot;&amp;quot;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt;  doPlayerPopupFYI&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;st0&quot;&gt;&amp;quot;Are you confused?&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt; Lear the commands!&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;---------------&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;ADD vip:&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;/vip add days player&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;/vip add 30 mock&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;---------------&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;Del vip:&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;/vip del player&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;/vip del mock&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;---------------&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;check vip:&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;/vip see player&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;/vip see mock&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;---------------&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; param:lower&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;:find&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'add'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; ret &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;string&lt;/span&gt;.explode&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;param,&lt;span class=&quot;st0&quot;&gt;' '&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; #ret &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ret&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;nil&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; getPlayerByName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ret&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;false&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
               &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;Add vip:&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;/vip add days player&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;/vip add 30 mock&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
            vip.addVipByAccount&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt; getPlayerAccount&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerByName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ret&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; ,vip.getDays&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ret&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;Has benn added &amp;quot;&lt;/span&gt;..&lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ret&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot; days to &amp;quot;&lt;/span&gt;..ret&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot;.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerByName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ret&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;You recivied &amp;quot;&lt;/span&gt;..&lt;span class=&quot;kw1&quot;&gt;tonumber&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ret&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot; vip days!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; param:lower&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;:find&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'del'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; ret &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;string&lt;/span&gt;.explode&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;param,&lt;span class=&quot;st0&quot;&gt;' '&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; #ret &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; getPlayerByName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ret&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;false&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
               &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;Del vip:&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;/vip del player&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;/vip del mock&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
            vip.setVipByAccount&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerAccount&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerByName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ret&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;,-&lt;span class=&quot;kw1&quot;&gt;os.time&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,ret&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot;'s vip has been deleted.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;                                                                                                                                              
         &lt;span class=&quot;kw1&quot;&gt;elseif&lt;/span&gt; param:lower&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;:find&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;'see'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;3&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; ret &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;string&lt;/span&gt;.explode&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;param,&lt;span class=&quot;st0&quot;&gt;' '&lt;/span&gt;,&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; #ret &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;or&lt;/span&gt; getPlayerByName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ret&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;false&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
               &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;check vip:&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;/vip see player&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;/vip see mock&lt;span class=&quot;es0&quot;&gt;\n&lt;/span&gt;&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; ret_ &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; vip.getVip&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerByName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;ret&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; ret_ &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
              &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;,ret&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot; Dont have any vip&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
              &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;nu0&quot;&gt;25&lt;/span&gt;, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Vip from &amp;quot;&lt;/span&gt;..ret&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot; end in &amp;quot;&lt;/span&gt;..&lt;span class=&quot;kw1&quot;&gt;os.date&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot;%d %B %Y %X &amp;quot;&lt;/span&gt;,ret_&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
         &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; TRUE
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt; &lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Do actions.xml dodajemy:
&lt;/p&gt;
&lt;pre class=&quot;code xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;itemid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;5785&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;other/vip.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt; 
&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;action&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;unqideid&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;5780&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;event&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;script&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;value&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;other/vip door.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
Tworzymy pliczek o nazwie vip.lua w data/actions/script/other z zawartością:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/vip_system_by_mock_vip_medal_door_by_moqill_lua?do=export_code&amp;amp;codeblock=5&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;vip.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onUse&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, item, fromPosition, itemEx, toPosition&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt; days &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;30&lt;/span&gt;
&amp;nbsp;
                doCreatureSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;CONGRATULATIONS! You are now a VIP for &amp;quot;&lt;/span&gt;..days..&lt;span class=&quot;st0&quot;&gt;&amp;quot; days! You can now enter the VIP-area and use unique features!. &amp;quot;&lt;/span&gt;, TALKTYPE_ORANGE_1&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
           	vip.addVipByAccount&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getPlayerAccount&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, vip.getDays&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;days&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doRemoveItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;item.uid, &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
                doSendAnimatedText&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;st0&quot;&gt;&amp;quot;+&amp;quot;&lt;/span&gt;..days..&lt;span class=&quot;st0&quot;&gt;&amp;quot; days&amp;quot;&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;30&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;   
        &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; TRUE
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt; &lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Tworzymy pliczek o nazwie vip_door.lua w data/actions/script/other/ z zawartością:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/vip_system_by_mock_vip_medal_door_by_moqill_lua?do=export_code&amp;amp;codeblock=6&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;vip_door.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onUse&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, item, fromPosition, itemEx, toPosition&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
    &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; vip.getVip&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;.y &lt;span class=&quot;sy0&quot;&gt;&amp;lt;&lt;/span&gt; toPosition.y &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
                   doTeleportThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;toPosition.x,y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;toPosition.y+&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;toPosition.z&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, TRUE&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
                     doTeleportThing&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt;x&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;toPosition.x,y&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;toPosition.y-&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;,z&lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt;toPosition.z&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt;, TRUE&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
            &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
         doCreatureSay&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Thank you for purchasing a VIP!&amp;quot;&lt;/span&gt;, TALKTYPE_ORANGE_1&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
           doSendMagicEffect&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;getCreaturePosition&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;nu0&quot;&gt;10&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
      &lt;span class=&quot;kw1&quot;&gt;else&lt;/span&gt;
           doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, MESSAGE_INFO_DESCR, &lt;span class=&quot;st0&quot;&gt;&amp;quot;Sorry, only VIP Players can pass here!.&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
      &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; TRUE
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt; &lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
Gotowe :)
&lt;/p&gt;
</description>
        <category>otspub</category>
            <pubDate>Tue, 27 Apr 2010 18:29:56 +0200</pubDate>
        </item>
        <item>
            <title>otspub:wiadomosc_przy_zalogowaniu</title>
            <link>http://otos.pl/doku.php/otspub/wiadomosc_przy_zalogowaniu?rev=1275487948</link>
            <description>
&lt;p&gt;
&lt;strong&gt;Autor:&lt;/strong&gt; LordGizmo
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;Licencja:&lt;/strong&gt; Nie znana
&lt;/p&gt;

&lt;p&gt;
Jak Się Zaloguje Jakiś Player to Wyskoczy Mu Prywatna Wiadomość:
wchodzimy w Creaturescripts/scripts
i robimy plik powitanie.lua :
&lt;/p&gt;
&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onLogin&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
doPlayerSendTextMessage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,&lt;span class=&quot;nu0&quot;&gt;22&lt;/span&gt;,&lt;span class=&quot;st0&quot;&gt;&amp;quot;Elo.Zapraszamy do SmS Shop Zyczymy udanych zakupow. &amp;quot;&lt;/span&gt;..getPlayerName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;..&lt;span class=&quot;st0&quot;&gt;&amp;quot;!&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; TRUE
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
teraz w creaturescript.xml
&lt;/p&gt;
&lt;pre class=&quot;code file xml&quot;&gt;&lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;event&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;login&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;FirstItems&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;script&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;powitanie.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;  &lt;/pre&gt;
</description>
        <category>otspub</category>
            <pubDate>Wed, 02 Jun 2010 16:12:28 +0200</pubDate>
        </item>
        <item>
            <title>otspub:za_potwora_kazdy_gracz_dostaje_item_i_exp</title>
            <link>http://otos.pl/doku.php/otspub/za_potwora_kazdy_gracz_dostaje_item_i_exp?rev=1305965229</link>
            <description>
&lt;p&gt;
do creaturescripts.xml dodajemy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/za_potwora_kazdy_gracz_dostaje_item_i_exp?do=export_code&amp;amp;codeblock=0&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_xml&quot;&gt;creaturescripts.xml&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file xml&quot;&gt;   &lt;span class=&quot;sc3&quot;&gt;&lt;span class=&quot;re1&quot;&gt;&amp;lt;event&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;type&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;kill&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;name&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;boss&amp;quot;&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;script&lt;/span&gt;=&lt;span class=&quot;st0&quot;&gt;&amp;quot;boss.lua&amp;quot;&lt;/span&gt;&lt;span class=&quot;re2&quot;&gt;/&amp;gt;&lt;/span&gt;&lt;/span&gt;
&amp;nbsp;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
do login.lua dodajemy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/za_potwora_kazdy_gracz_dostaje_item_i_exp?do=export_code&amp;amp;codeblock=1&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;login.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;registerCreatureEvent&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, &lt;span class=&quot;st0&quot;&gt;&amp;quot;boss&amp;quot;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&amp;nbsp;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;

&lt;p&gt;
tworzymy plik boss.lua w data/creaturescripts i wlejamy:
&lt;/p&gt;
&lt;dl class=&quot;file&quot;&gt;
&lt;dt&gt;&lt;a href=&quot;http://otos.pl/doku.php/otspub/za_potwora_kazdy_gracz_dostaje_item_i_exp?do=export_code&amp;amp;codeblock=2&quot; title=&quot;Download Snippet&quot; class=&quot;mediafile mf_lua&quot;&gt;boss.lua&lt;/a&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;pre class=&quot;code file lua&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;function&lt;/span&gt; onKill&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, target&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
       &lt;span class=&quot;co1&quot;&gt;--Config (By Erexo)&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt;  monstername &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;'ferumbras'&lt;/span&gt;  &lt;span class=&quot;co1&quot;&gt;-- nazwa potwora (z malych liter!)&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt;  expedience &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;5000&lt;/span&gt;  &lt;span class=&quot;co1&quot;&gt;-- ile expa ma dawac (da kazdemu kto choć raz hit potwora)&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt;  itemid &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1234&lt;/span&gt;  &lt;span class=&quot;co1&quot;&gt;-- id itema&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;local&lt;/span&gt;  itemcount &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;  &lt;span class=&quot;co1&quot;&gt;-- ilosc itemow&lt;/span&gt;
&amp;nbsp;
   &lt;span class=&quot;kw1&quot;&gt;if&lt;/span&gt; isMonster&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;target&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;and&lt;/span&gt; getCreatureName&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;target&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;:lower&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;==&lt;/span&gt; monstername &lt;span class=&quot;kw1&quot;&gt;then&lt;/span&gt;
   doPlayerAddExp&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid,expedience&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
      doPlayerAddItem&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;cid, itemid, itemcount&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;
   &lt;span class=&quot;kw1&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;true&lt;/span&gt;
&lt;span class=&quot;kw1&quot;&gt;end&lt;/span&gt;&lt;/pre&gt;
&lt;/dd&gt;&lt;/dl&gt;
</description>
        <category>otspub</category>
            <pubDate>Sat, 21 May 2011 10:07:09 +0200</pubDate>
        </item>
        <item>
            <title>otspub:zliczanie_smsow_by_kowol</title>
            <link>http://otos.pl/doku.php/otspub/zliczanie_smsow_by_kowol?rev=1307644258</link>
            <description>
&lt;p&gt;
&lt;br/&gt;

Skrypt jest udostępniany na zasadach &lt;em&gt;public domain&lt;/em&gt;.&lt;br/&gt;

Aby skrypt zliczał nam wysłane sms&amp;#039;y należy dodać poniższy skrypt do &lt;strong&gt;config-and-functions.php&lt;/strong&gt; oraz uzupełnić dane dot. połączenia z serwerem sql:
&lt;/p&gt;

&lt;h2 class=&quot;sectionedit37&quot;&gt;&lt;a name=&quot;config-and-functionsphp&quot; id=&quot;config-and-functionsphp&quot;&gt;Config-And-Functions.php&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
Wszystko wrzucamy przed znacznik &lt;strong&gt;&lt;em&gt;&lt;em class=&quot;u&quot;&gt;?&amp;gt;&lt;/em&gt;&lt;/em&gt;&lt;/strong&gt; (znajduje się on na końcu pliku).
&lt;/p&gt;
&lt;pre class=&quot;code php&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;function&lt;/span&gt; sms_cost&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$sms&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#123;&lt;/span&gt; 
	&lt;span class=&quot;re0&quot;&gt;$SQL&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$GLOBALS&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'SQL'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;re0&quot;&gt;$cost&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/explode&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;explode&lt;/span&gt;&lt;/a&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;&amp;quot; &amp;quot;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$sms&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;re0&quot;&gt;$cost_p&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$cost&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;23&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;123&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;
	&lt;span class=&quot;re0&quot;&gt;$dzialanie&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;41&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;100&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; &lt;span class=&quot;co1&quot;&gt;//dla homepaya to będzie 50/100&lt;/span&gt;
	&lt;span class=&quot;re0&quot;&gt;$cas&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$cost&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;-&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$cost_p&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;*&lt;/span&gt; &lt;span class=&quot;re0&quot;&gt;$dzialanie&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; 
	&lt;span class=&quot;re0&quot;&gt;$cash&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/round&quot;&gt;&lt;span class=&quot;kw3&quot;&gt;round&lt;/span&gt;&lt;/a&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$cas&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt; &lt;span class=&quot;nu0&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt;  
	&lt;span class=&quot;re0&quot;&gt;$SQL&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;-&amp;gt;&lt;/span&gt;&lt;span class=&quot;me1&quot;&gt;query&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;'INSERT INTO sms_cost (cash) VALUES('&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;re0&quot;&gt;$cash&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;st_h&quot;&gt;')'&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;;&lt;/span&gt; 
&lt;span class=&quot;br0&quot;&gt;&amp;#125;&lt;/span&gt; &lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT37 SECTION &quot;Config-And-Functions.php&quot; [222-669] --&gt;
&lt;h2 class=&quot;sectionedit38&quot;&gt;&lt;a name=&quot;sql&quot; id=&quot;sql&quot;&gt;SQL&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
&lt;strong&gt;

następnie należy wykonać zapytania do sql&amp;#039;a: &lt;br/&gt;


&lt;/strong&gt;
&lt;/p&gt;
&lt;pre class=&quot;code sql&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;TABLE&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;IF&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;EXISTS&lt;/span&gt; &lt;span class=&quot;st0&quot;&gt;`sms_cost`&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;
  &lt;span class=&quot;st0&quot;&gt;`id`&lt;/span&gt; int&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;nu0&quot;&gt;11&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;AUTO_INCREMENT&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;st0&quot;&gt;`cash`&lt;/span&gt; double &lt;span class=&quot;kw1&quot;&gt;DEFAULT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt;&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;st0&quot;&gt;`date`&lt;/span&gt; timestamp &lt;span class=&quot;kw1&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;NULL&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;DEFAULT&lt;/span&gt; CURRENT_TIMESTAMP&lt;span class=&quot;sy0&quot;&gt;,&lt;/span&gt;
  &lt;span class=&quot;kw1&quot;&gt;PRIMARY&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;KEY&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span class=&quot;st0&quot;&gt;`id`&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;
&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;;&lt;/pre&gt;

&lt;/div&gt;
&lt;!-- EDIT38 SECTION &quot;SQL&quot; [670-954] --&gt;
&lt;h2 class=&quot;sectionedit39&quot;&gt;&lt;a name=&quot;buypointsphp&quot; id=&quot;buypointsphp&quot;&gt;Buypoints.php&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;
Kolejno przechodzimy do buypoints.php i szukamy tego: &lt;br/&gt;

&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;if(add_points($account, $config[&amp;#039;dotpay&amp;#039;][$sms_type][&amp;#039;addpoints&amp;#039;]))&lt;/pre&gt;

&lt;p&gt;
i pod &lt;strong&gt;{&lt;/strong&gt; dodajemy: 
&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;DOTPAY&lt;/strong&gt;
&lt;br/&gt;

&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;sms_cost($config[&amp;#039;dotpay&amp;#039;][$sms_type][&amp;#039;sms_cost&amp;#039;]);&lt;/pre&gt;

&lt;p&gt;
&lt;br/&gt;

&lt;/p&gt;

&lt;p&gt;
&lt;strong&gt;HOMEPAY&lt;/strong&gt;
&lt;br/&gt;

&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;sms_cost($config[&amp;#039;homepay&amp;#039;][$sms_type][&amp;#039;sms_cost&amp;#039;]);&lt;/pre&gt;

&lt;p&gt;
&lt;br/&gt;

&lt;/p&gt;

&lt;p&gt;
Od teraz po każdym prawidłowym wpisaniu kodu, skrypt zapisze do bazy sumę zaokrągloną do 1 miejsca po przecinku.
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT39 SECTION &quot;Buypoints.php&quot; [955-1400] --&gt;
&lt;h2 class=&quot;sectionedit40&quot;&gt;&lt;a name=&quot;poznajemy_sume_pieniedzy_za_dany_miesiac&quot; id=&quot;poznajemy_sume_pieniedzy_za_dany_miesiac&quot;&gt;Poznajemy sumę pieniędzy za dany miesiąc&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;pre class=&quot;code&quot;&gt;SELECT SUM(cash) FROM sms_cost WHERE `date` &amp;gt; &amp;#039;2010-11-0&amp;#039; AND `date` &amp;lt; &amp;#039;2010-12-0&amp;#039;&lt;/pre&gt;

&lt;p&gt;
Gdzie &lt;strong&gt;2010-11-0&lt;/strong&gt; to rok, miesiąc, dzień od którego chcemy liczyć łączną ilość kasy, a &lt;strong&gt;2010-12-0&lt;/strong&gt; to data, do której skrypt ma zliczyć kase
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- EDIT40 SECTION &quot;Poznajemy sumę pieniędzy za dany miesiąc&quot; [1401-] --&gt;</description>
        <category>otspub</category>
            <pubDate>Thu, 09 Jun 2011 20:30:58 +0200</pubDate>
        </item>
    </channel>
</rss>
