<?xml version="1.0" encoding="iso-8859-2"?>
<rss version="2.0">
<channel>
<title>OTS Fans</title>
<link>http://www.otsfans.pun.pl</link>
<description> OTS Fans</description>
<language>pl</language>
<docs>http://backend.userland.com/rss</docs>
<item>
<title>Container Npc</title>
<link>http://www.otsfans.pun.pl/viewtopic.php?pid=31#p31</link>
<guid isPermaLink="false">31@http://www.otsfans.pun.pl</guid>
<description><![CDATA[<p class="center"><strong>Autorem Jest creativess<br /><a href="http://forum.otsoft.pl/showthread.php?t=30143<br />/" target="_blank" rel="nofollow">Oryginalny Temat</a></strong><br />Opis:Npc ktory sprzedaje table, big table, bamboo table i tak dalej jest tego bardzo dużo.<br />data/npc/script/furniture:<br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 35em"><pre>ox = 218 
  oy = 109 
  oz = 8 
  max = 7 
  focus = 0 
  talk_start = 0 
  target = 0 
  following = false 
  attacking = false 
  
  function onThingMove(creature, thing, oldpos, oldstackpos) 
  
  end 
  
  
  function onCreatureAppear(creature) 
  
  end 
  
  
  function onCreatureDisappear(cid, pos) 
      if focus == cid then 
          selfSay('Good bye then.') 
          focus = 0 
          talk_start = 0 
      end 
  end 
  
  
  function onCreatureTurn(creature) 
  
  end 
  
 function msgcontains(txt, str) 
      return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)')) 
  end 
  
  
  function onCreatureSay(cid, type, msg) 
      msg = string.lower(msg) 
  
      if ((string.find(msg, '(%a*)hi(%a*)')) and (focus == 0)) and getDistanceToCreature(cid) &lt; 3 then 
          selfSay('Hello ' .. creatureGetName(cid) .. '! Welcome to the famous Rulys Furniture Shop. I sell chairs, tables, plants, water pipe, containers, pillows and more.') 
          focus = cid 
          talk_start = os.clock() 
     elseif string.find(msg, '(%a*)hi(%a*)') and (focus ~= cid) and getDistanceToCreature(cid) &lt; 3 then 
          selfSay('Sorry, ' .. creatureGetName(cid) .. '! I talk to you in a minute.')      elseif focus == cid then 
         talk_start = os.clock() 
  
         if msgcontains(msg, 'wooden chair') then 
              buy(cid,3901,1,500) 
         elseif msgcontains(msg, 'sofa chair') then 
              buy(cid,3902,1,500) 
         elseif msgcontains(msg, 'red cushioned chair') then 
              buy(cid,3903,1,500) 
         elseif msgcontains(msg, 'green cushioned chair') then 
              buy(cid,3904,1,500) 
         elseif msgcontains(msg, 'tusk chair') then 
              buy(cid,3905,1,500) 
         elseif msgcontains(msg, 'ivory chair') then 
              buy(cid,3906,1,500) 
          elseif msgcontains(msg, 'chairs') then 
              selfSay('I sell wooden, sofa, red cushioned, green cushioned, tusk and ivory chairs.') 
  
         elseif msgcontains(msg, 'big table') then 
              buy(cid,3909,1,500) 
         elseif msgcontains(msg, 'square table') then 
              buy(cid,3910,1,500) 
         elseif msgcontains(msg, 'round table') then 
              buy(cid,3911,1,500) 
         elseif msgcontains(msg, 'small table') then 
              buy(cid,3912,1,500) 
         elseif msgcontains(msg, 'stone table') then 
              buy(cid,3913,1,500) 
         elseif msgcontains(msg, 'tusk table') then 
              buy(cid,3914,1,500) 
         elseif msgcontains(msg, 'bamboo table') then 
              buy(cid,3919,1,500) 
         elseif msgcontains(msg, 'tables') then 
              selfSay('I sell big, square, round, small, stone, tusk, bamboo tables.') 
  
         elseif msgcontains(msg, 'pink flower') then 
              buy(cid,3928,1,500) 
         elseif msgcontains(msg, 'green flower') then 
              buy(cid,3929,1,500) 
         elseif msgcontains(msg, 'christmas tree') then 
              buy(cid,3931,1,500) 
         elseif msgcontains(msg, 'plants') then 
              selfSay('I sell pink and green flowers, also christmas trees.') 
  
  
         elseif msgcontains(msg, 'large trunk') then 
              buy(cid,3938,1,500) 
         elseif msgcontains(msg, 'drawer') then 
              buy(cid,3921,1,500) 
         elseif msgcontains(msg, 'dresser') then 
              buy(cid,3932,1,500) 
         elseif msgcontains(msg, 'locker') then 
              buy(cid,3934,1,500) 
         elseif msgcontains(msg, 'trough') then 
              buy(cid,3935,1,500) 
         elseif msgcontains(msg, 'box') then 
              buy(cid,1738,1,500) 
         elseif msgcontains(msg, 'containers') then 
              selfSay('I sell large trunks, boxes, drawers, dressers, lockers and troughs.') 
  
         elseif msgcontains(msg, 'birdcage') then 
              buy(cid,3918,1,500) 
         elseif msgcontains(msg, 'harp') then 
              buy(cid,3917,1,500) 
         elseif msgcontains(msg, 'piano') then 
              buy(cid,3926,1,500) 
         elseif msgcontains(msg, 'globe') then 
              buy(cid,3927,1,500) 
         elseif msgcontains(msg, 'clock') then 
              buy(cid,3933,1,500) 
         elseif msgcontains(msg, 'lamp') then 
              buy(cid,3937,1,500) 
         elseif msgcontains(msg, 'more')  then 
              selfSay('I sell birdcages, harps, pianos, globes, clocks and lamps.') 
  
         elseif msgcontains(msg, 'small purple pillow') then 
              buy(cid,1678,1,500) 
         elseif msgcontains(msg, 'small green pillow') then 
              buy(cid,1679,1,500) 
         elseif msgcontains(msg, 'small red pillow') then 
              buy(cid,1680,1,500) 
         elseif msgcontains(msg, 'small blue pillow') then 
              buy(cid,1681,1,500) 
         elseif msgcontains(msg, 'small orange pillow') then 
              buy(cid,1682,1,500) 
         elseif msgcontains(msg, 'small turquiose pillow') then 
              buy(cid,1683,1,500) 
         elseif msgcontains(msg, 'small white pillow') then 
              buy(cid,1684,1,500) 
         elseif msgcontains(msg, 'heart pillow') then 
              buy(cid,1685,1,500) 
         elseif msgcontains(msg, 'blue pillow') then 
              buy(cid,1686,1,500) 
         elseif msgcontains(msg, 'red pillow') then 
              buy(cid,1687,1,500) 
         elseif msgcontains(msg, 'green pillow') then 
              buy(cid,1688,1,500) 
         elseif msgcontains(msg, 'yellow pillow') then 
              buy(cid,1689,1,500) 
         elseif msgcontains(msg, 'round blue pillow') then 
              buy(cid,1690,1,500) 
         elseif msgcontains(msg, 'round red pillow') then 
              buy(cid,1691,1,500) 
         elseif msgcontains(msg, 'round purple pillow') then 
              buy(cid,1692,1,500) 
         elseif msgcontains(msg, 'round turquiose pillow') then 
              buy(cid,1693,1,500) 
         elseif msgcontains(msg, 'small') then 
              selfSay('I sell small purple, small green, small red, small blue, small orange, small turquiose and small white pillows.') 
         elseif msgcontains(msg, 'round') then 
              selfSay('I sell round blue, round red, round purple and round turquiose pillows.') 
         elseif msgcontains(msg, 'square') then 
              selfSay('I sell blue, red, green and yellow pillows.') 
         elseif msgcontains(msg, 'pillows') then 
              selfSay('I sell heart, small, sqare and round pillows.') 
  
         elseif msgcontains(msg, 'water pipe') then 
              buy(cid,2093,1,200) 
  
          elseif string.find(msg, '(%a*)bye(%a*)')  and getDistanceToCreature(cid) &lt; 3 then 
              selfSay('Good bye, ' .. creatureGetName(cid) .. '!') 
              focus = 0 
              talk_start = 0 
          end 
      end 
  end 
  
 function onCreatureChangeOutfit(creature) 

end 


function onThink() 
      if (os.clock() - talk_start) &gt; 30 then 
          if focus &gt; 0 then 
              selfSay('Next Please...') 
          end 
              focus = 0 
      end 
     if focus ~= 0 then 
         if getDistanceToCreature(focus) &gt; 5 then 
             selfSay('Good bye then.') 
             focus = 0 
end 
end 
if focus == 0 then 
cx, cy, cz = selfGetPosition() 
randmove = math.random(1,20) 
if randmove == 1 then 
nx = cx + 1 
end 
if randmove == 2 then 
nx = cx - 1 
end 
if randmove == 3 then 
ny = cy + 1 
end 
if randmove == 4 then 
ny = cy - 1 
end 
if randmove &gt;= 5 then 
nx = cx 
ny = cy 
end 
moveToPosition(nx, ny, cz) 
--summons = 30 
--summons2 = 30 
end 
end</pre></div></div></div>data/npc/Obi.xml<br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 9em"><pre>&lt;?xml version=&quot;1.0&quot;?&gt; 
&lt;npc name=&quot;Kalle&quot; script=&quot;data/npc/scripts/furniture.lua&quot; access=&quot;3&quot;&gt; 
     &lt;look type=&quot;128&quot; head=&quot;78&quot; body=&quot;71&quot; legs=&quot;82&quot; feet=&quot;114&quot;/&gt; 
&lt;/npc&gt;</pre></div></div></div>]]></description>
<pubDate>Niedziela 17 KwiecieĹ</pubDate>
<comments>Niedziela 17 KwiecieĹ</comments>
</item>
<item>
<title>Friendly Dog - Czyli nietypowy NPC</title>
<link>http://www.otsfans.pun.pl/viewtopic.php?pid=30#p30</link>
<guid isPermaLink="false">30@http://www.otsfans.pun.pl</guid>
<description><![CDATA[<p class="center"><strong>Autorem Jest Cassius<br /><a href="http://forum.otsoft.pl/showthread.php?t=37235<br />/" target="_blank" rel="nofollow">Oryginalny Temat</a></strong><br />Skrypt mojego autorstwa.<br /><br /><strong>1. Stwórz plik Friendly Dog.xml a do niego wklej:</strong><br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 12em"><pre>&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;npc name=&quot;Friendly Dog&quot; script=&quot;data/npc/scripts/fd.lua&quot; access=&quot;0&quot; monster=&quot;1&quot; speed=&quot;220&quot; level=&quot;10&quot; maglevel=&quot;1&quot; exp=&quot;0&quot; pushable=&quot;0&quot; lookdir=&quot;0&quot;&gt;
    &lt;health now=&quot;100&quot; max=&quot;100&quot;/&gt;
    &lt;mana now=&quot;100&quot; max=&quot;100&quot;/&gt;
    &lt;look type=&quot;32&quot; head=&quot;78&quot; body=&quot;61&quot; legs=&quot;52&quot; feet=&quot;114&quot; corpse=&quot;2839&quot;/&gt;  
&lt;/npc&gt;</pre></div></div></div><strong>2. Następnie stwórz plik fd.lua a w nim:</strong><br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 35em"><pre>focus = 0
talk_start = 0
target = 0
following = false
attacking = false


function onThingMove(creature, thing, oldpos, oldstackpos)

end


function onCreatureAppear(creature)

end


function onCreatureDisappear(cid, pos)
    if focus == cid then
      sx, sy, sz = selfGetPosition()
          focus = 0
          talk_start = 0
    end
end


function onCreatureTurn(creature)

end


function msgcontains(txt, str)
    return (string.find(txt, str) and not string.find(txt, '(%w+)' .. str) and not string.find(txt, str .. '(%w+)'))
end


function onCreatureSay(cid, type, msg)
    msg = string.lower(msg)

    if (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) &lt; 4 then
        selfSay('How How!')
        focus = cid
        talk_start = os.clock()

    elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) &lt; 4 then
        selfSay('Grrrrrrrrr!')

    elseif focus == cid then
        talk_start = os.clock()

        if msgcontains(msg, 'a') then
            sx, sy, sz = selfGetPosition()
            selfMoveTo(sx-1, sy, sz)

        elseif msgcontains(msg, 'd') then
            sx, sy, sz = selfGetPosition()
            selfMoveTo(sx+1, sy, sz)

        elseif msgcontains(msg, 's') then
            sx, sy, sz = selfGetPosition()
            selfMoveTo(sx, sy+1, sz)

        elseif msgcontains(msg, 'w') then
            sx, sy, sz = selfGetPosition()
            selfMoveTo(sx, sy-1, sz)

        elseif msgcontains(msg, 'z') then
        selfSay('exori mort')

        elseif msgcontains(msg, 'x') then
        selfSay('exura')

        elseif string.find(msg, '(%a*)bye(%a*)') and getDistanceToCreature(cid) &lt; 4 then
            selfSay('Mhmmmuu... Mhmuuu... !!!')
            focus = 0
            talk_start = 0
        end
    end
end


function onCreatureChangeOutfit(creature)

end


function onThink()
    if (os.clock() - talk_start) &gt; 3600 then
        if focus &gt; 0 then
            selfSay('Wuff! Wuff?')
        end
            focus = 0
    end
    if focus ~= 0 then
        if getDistanceToCreature(focus) &gt; 1000 then
            selfSay('Wuff! Wuff!!! Wuuuuffff!!!!')
            focus = 0
        end
    end
end</pre></div></div></div>Użycie:<br />Napisz hi.<br />Od teraz możesz nim sterować za pomocą:<br /><br />w a s d (Jak strzałki - chodzenie)<br />z - atak<br />x - leczenie się<br /><br />/// Nie wiem po co to komu, ale rozrywka przednia]]></description>
<pubDate>Niedziela 17 KwiecieĹ</pubDate>
<comments>Niedziela 17 KwiecieĹ</comments>
</item>
<item>
<title>Auto Clean</title>
<link>http://www.otsfans.pun.pl/viewtopic.php?pid=29#p29</link>
<guid isPermaLink="false">29@http://www.otsfans.pun.pl</guid>
<description><![CDATA[<p class="center"><strong>Autorem Jest NoName<br /><a href="http://forum.otsoft.pl/showthread.php?t=16995<br />/" target="_blank" rel="nofollow">Oryginalny Temat</a></strong><br /><strong>1. w data\npc<br />utwórz plik: Cleaner.xml, a w nim umieść to:</strong><br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 9em"><pre>&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;npc name=&quot;Cleaner&quot; script=&quot;data/npc/scripts/cleaner.lua&quot; access=&quot;5&quot;&gt;
 	&lt;look type=&quot;133&quot; head=&quot;116&quot; body=&quot;120&quot; legs=&quot;131&quot; feet=&quot;122&quot;/&gt;
&lt;/npc&gt;</pre></div></div></div><strong>2. w data\npc\scripts<br />utwórz plik: cleaner.lua, a w nim umieść to:</strong><br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 35em"><pre>start = nil
clean = 0
focus = 0
talk_start = 0
target = 0
following = false
attacking = false

function onThingMove(creature, thing, oldpos, oldstackpos)
end

function onCreatureAppear(creature)
end

function onCreatureDisappear(cid, pos)
end

function onCreatureTurn(creature)
end

function onCreatureSay(cid, type, msg)
end

function onCreatureChangeOutfit(creature)
end


function onThink()
--(G*M*S) - (24*60*60)
-- G-godziny / M-minuty / S-sekundy

if start == nil then
start = os.time()
end

if (clean==0) and os.difftime (os.time(), start) &gt;= (1*60*60) then
selfSay('/B Clean za 1 minute.')
clean = 1
start = os.time()
end

if (clean==1) and os.difftime (os.time(), start) &gt;= (30) then
selfSay('/B Clean za 30 sekund.')
clean = 2
start = os.time()
end

if (clean==2) and os.difftime (os.time(), start) &gt;= (20) then
selfSay('/B Clean za 10 sekund.')
clean = 3
start = os.time()
end

if (clean==3) and os.difftime (os.time(), start) &gt;= (7) then
selfSay('/B Clean za 3 sekundy.')
clean = 4
start = os.time()
end

if (clean==4) and os.difftime (os.time(), start) &gt;= (1) then
selfSay('/B Clean za 2 sekundy.')
clean = 5
start = os.time()
end

if (clean==5) and os.difftime (os.time(), start) &gt;= (1) then
selfSay('/B Clean za 1 sekunde.')
clean = 6
start = os.time()
end

if (clean==6) and os.difftime (os.time(), start) &gt;= (1) then
selfSay('/clean')
clean = 0
start = nil
end

end</pre></div></div></div><strong>3. w data\world w pliku npc.xml<br />dodaj między innymi linijkami:<br /></strong><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 4.5em"><pre>&lt;npc name=&quot;Cleaner&quot; x=&quot;666&quot; y=&quot;257&quot; z=&quot;7&quot;/&gt;</pre></div></div></div>Tłumaczenie:<br /><span style="color: red">11*60*60</span> - 1 razy 60 razy 60 sekund co daje nam 1 godzinę liczoną od włączenia serwera. Po jej upływie NPC poinformuje o cleanie i po kolejnej minucie zrobi clean'a.<br />x=<span style="color: blue">&quot;666&quot; y=&quot;257&quot; z=&quot;7</span>&quot; - pozycja tego NPC na mapie (najlepiej niedostępna dla graczy)]]></description>
<pubDate>Niedziela 17 KwiecieĹ</pubDate>
<comments>Niedziela 17 KwiecieĹ</comments>
</item>
<item>
<title>[Avesta SQL] The Queen Of The Banshees!</title>
<link>http://www.otsfans.pun.pl/viewtopic.php?pid=28#p28</link>
<guid isPermaLink="false">28@http://www.otsfans.pun.pl</guid>
<description><![CDATA[<p class="center"><strong>Autorem Jest (??)<br />Yo! Chciałbym się z wami podzielić dość ciekawym npc, a mianowicie Królową Banshee. Skrypt nie jest mój! Jest on przeróbką, z wersji tibii 8.0 na 7.6! Orygialny temat: <a href="http://otland.net/f83/queen-banshee-100-a-85094/" target="_blank" rel="nofollow">http://otland.net/f83/queen-banshee-100-a-85094/</a><br /></strong><br /><strong>1. Na początek tworzymy plik: Queen of Banshee.xml</strong><br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 10.5em"><pre>&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;npc name=&quot;The Queen Of The Banshees&quot; script=&quot;banshee_queen.lua&quot; walkinterval=&quot;2000&quot; idleinterval=&quot;30&quot;&gt;
	&lt;health now=&quot;100&quot; max=&quot;100&quot;/&gt;
	&lt;look type=&quot;78&quot; head=&quot;20&quot; body=&quot;30&quot; legs=&quot;40&quot; feet=&quot;50&quot; corpse=&quot;2998&quot;/&gt;
&lt;/npc&gt;</pre></div></div></div><strong>2. Następnie tworzymy w folderze scripts, plik o nazwie banshee_queen.lua<br />Wklejamy do niego:</strong><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 35em"><pre>_state = 0
_delay = 750

function getNext()
	_state = 0
	
	nextPlayer = getQueuedPlayer()
	if (nextPlayer ~= nil) then
		if (getDistanceToCreature(nextPlayer) &lt;= 4) then
			setFocus(nextPlayer)
			greet(nextPlayer, _delay * 2)
			updateIdle()
			return
		else
			getNext()
		end
	end
	
	setFocus(0)
	resetIdle()
end

function _selfSay(message)
	selfSay(message, _delay)
	updateIdle()
end

function selfSay_(message)
	selfSay(message, _delay)
	getNext()
end

function onCreatureAppear(cid)
end

function onCreatureDisappear(cid)
	if (getFocus() == cid) then
		selfSay('Yes, flee from death. But know it shall be always one step behind you.', _delay)
		getNext()
	else
		unqueuePlayer(cid)
	end
end

function onCreatureMove(cid, oldPos, newPos)
	if (getFocus() == cid) then
		faceCreature(cid)
	end
end

function onCreatureSay(cid, type, msg)
	if (getFocus() == 0) then
		if ((msgcontains(msg, 'hi') or msgcontains(msg, 'hello')) and getDistanceToCreature(cid) &lt;= 4) then
			if (getPlayerLevel(cid) &lt; 60) then
				selfSay('Be greeted, dear visitor. Come and stay ... a while.', _delay)
			else
				updateIdle()
				setFocus(cid)
				greet(cid, _delay)
			end
		end
		
	elseif (getFocus() ~= cid) then 
		if ((msgcontains(msg, 'hi') or msgcontains(msg, 'hello')) and getDistanceToCreature(cid) &lt;= 4) then
			selfSay('Be greeted, dear visitor. Come and stay ... a while.', _delay)
			if (getPlayerLevel(cid) &gt;= 60) then
				queuePlayer(cid)
			end
		end
	else
	local primeiro_selo = getPlayerStorageValue(cid, 20001)
	local segundo_selo = getPlayerStorageValue(cid, 20002)
	local terceiro_selo = getPlayerStorageValue(cid, 20003)
	local quarto_selo = getPlayerStorageValue(cid, 20004)
	local quinto_selo = getPlayerStorageValue(cid, 20005)
	local sexto_selo = getPlayerStorageValue(cid, 20006)
	local setimo_selo = getPlayerStorageValue(cid, 20007)
	local teletransporte = {x=32202, y=31812, z=8, stackpos =0}
	
	if msgcontains(msg, 'seventh') and getPlayerLevel(cid) &lt; 60 or msgcontains(msg, 'last') and getPlayerLevel(cid) &lt; 60 then
	selfSay('You are not experienced enough to master the challenges ahead or to receive knowledge about the seventh seal. Go and learn more before asking me again.')
	
	elseif msgcontains(msg, 'seventh') and getPlayerLevel(cid) &gt; 59 or msgcontains(msg, 'last') and getPlayerLevel(cid) &gt; 59 then
	selfSay('If you have passed the first six seals and entered the blue fires that lead to the chamber of the seal you might receive my kiss ... It will open the last seal. Do you think you are ready?')
	talk_state = 2
	
	elseif msgcontains(msg, 'kiss') and setimo_selo == -1 and talk_state == 8 then
	selfSay('Are you prepared to receive my kiss, even though this will mean that your death as well as a part of your soul will forever belong to me, my dear?')
	talk_state = 1
	elseif msgcontains(msg, 'kiss') and setimo_selo == -1 then
	selfSay('To receive my kiss you have to pass all other seals first.')
	talk_state = 0
	elseif msgcontains(msg, 'kiss') and setimo_selo == 1 then
	selfSay('You have already received my kiss. You should know better then to ask for it.')
	talk_state = 0
	
	elseif msgcontains(msg, 'yes') and talk_state == 1 then
	selfSay('So be it! Hmmmmmm...')
	doTeleportThing(cid, teletransporte)
	setPlayerStorageValue(cid, 20007, 1)
	elseif msgcontains(msg, 'no') and talk_state == 1 then
	selfSay('Perhaps it is the better choice for you, my dear.')
	talk_state = 0
	
	elseif msgcontains(msg, 'yes') and talk_state == 2 and quarto_selo == 1 then
	selfSay('Yessss, I can sense you have passed the seal of sacrifice. Have you passed any other seal yet?')
	talk_state = 3
	elseif msgcontains(msg, 'yes') and talk_state == 2 and quarto_selo == -1 then
	selfSay('You have not passed the seal of sacrifice yet. Return to me when you are better prepared.')
	talk_state = 0
	elseif msgcontains(msg, 'no') and talk_state == 2 then
	selfSay('Then try to be better prepared next time we meet.')
	talk_state = 0
	
	elseif msgcontains(msg, 'yes') and talk_state == 3 and primeiro_selo == 1 then
	selfSay('I sense you have passed the hidden seal as well. Have you passed any other seal yet?')
	talk_state = 4
	elseif msgcontains(msg, 'yes') and talk_state == 3 and primeiro_selo == -1 then
	selfSay('You have not found the hidden seal yet. Return when you are better prepared.')
	talk_state = 0
	elseif msgcontains(msg, 'no') and talk_state == 3 then
	selfSay('Then try to be better prepared next time we meet.')
	talk_state = 0
	
	elseif msgcontains(msg, 'yes') and talk_state == 4 and segundo_selo == 1 then
	selfSay('Oh yes, you have braved the plagueseal. Have you passed any other seal yet?')
	talk_state = 5
	elseif msgcontains(msg, 'yes') and talk_state == 4 and segundo_selo == -1 then
	selfSay('You have not faced the plagueseal yet. Return to me when you are better prepared.')
	talk_state = 0
	elseif msgcontains(msg, 'no') and talk_state == 4 then
	selfSay('Then try to be better prepared next time we meet.')
	talk_state = 0
	
	elseif msgcontains(msg, 'yes') and talk_state == 5 and terceiro_selo == 1 then
	selfSay('Ah, I can sense the power of the seal of demonrage burning in your heart. Have you passed any other seal yet?')
	talk_state = 6
	elseif msgcontains(msg, 'yes') and talk_state == 5 and terceiro_selo == -1 then
	selfSay('You are not filled with the fury of the imprisoned demon. Return when you are better prepared.')
	talk_state = 0
	elseif msgcontains(msg, 'no') and talk_state == 5 then
	selfSay('Then try to be better prepared next time we meet.')
	talk_state = 0
	
	elseif msgcontains(msg, 'yes') and talk_state == 6 and quinto_selo == 1 then
	selfSay('So, you have managed to pass the seal of the 1 path. Have you passed any other seal yet?')
	talk_state = 7
	elseif msgcontains(msg, 'yes') and talk_state == 6 and quinto_selo == -1 then
	selfSay('You have not found your 1 path yet. Return when you are better prepared.')
	talk_state = 0
	elseif msgcontains(msg, 'no') and talk_state == 6 then
	selfSay('Then try to be better prepared next time we meet.')
	talk_state = 0
	
	elseif msgcontains(msg, 'yes') and talk_state == 7 and sexto_selo == 1 then
	selfSay('I see! You have mastered the seal of logic. You have made the sacrifice, you have seen the unseen, you possess fortitude, you have filled yourself with power and found your path. You may ask me for my kiss now.')
	talk_state = 8
	elseif msgcontains(msg, 'yes') and talk_state == 7 and sexto_selo == -1 then
	selfSay('You have not found your 1 path yet. Return to meh when you are better prepared.')
	talk_state = 0
	elseif msgcontains(msg, 'no') and talk_state == 7 then
	selfSay('Then try to be better prepared next time we meet.')
	talk_state = 0
	
	elseif msgcontains(msg, 'spectral dress') then
	selfSay('Your wish for a spectral dress is silly. Allthough I will grant you the permission to take one. My maidens left one in a box in a room, directly south of here.')
	setPlayerStorageValue(cid, 327, 1)
	doPlayerAddItem(cid, 2657, 1)
	talk_state = 0
	
	elseif msgcontains(msg, 'spectral dress') and getPlayerStoraValue(cid, 327) == 1 then
	selfSay('Your wish for a spectral dress is silly. Allthough I will grant you the permission to take one. My maidens left one in a box in a room, directly south of here.')
	doPlayerAddItem(cid, 2657, 1)
	talk_state = 0
	
		
	elseif (msgcontains(msg, 'name')) then
			_selfSay('It hurts me to even think about my mortal past. Its long lost and forgotten. So don\'t ask me about it!')
	elseif (msgcontains(msg, 'job')) then
			_selfSay('It is my curse to be the eternal guardian of this ancient place.')
	elseif (msgcontains(msg, 'place')) then
			_selfSay('It served as a temple, a source of power and ... as a sender for an ancient race in time long gone by and forgotten.')
	elseif (msgcontains(msg, 'race')) then
			_selfSay('The race that built this edifice came to this place from the stars. They ran from an enemy even more horrible than even themselves. But they carried the seed of their own destruction in them.')
	elseif (msgcontains(msg, 'seed')) then
			_selfSay('This ancient race was annihilated by its own doings, that\'s all I know. Aeons have passed since then, but the sheer presence of this complex is still defiling and desecrating this area.')
	elseif (msgcontains(msg, 'destruction')) then
			_selfSay('This ancient race was annihilated by its own doings, that\'s all I know. Aeons have passed since then, but the sheer presence of this complex is still defiling and desecrating this area.')
	elseif (msgcontains(msg, 'complex')) then
			_selfSay('Its constructors were too strange for you or even me to understand. We cannot know what this ... thing they have built was supposed to be good for. All I can feel is a constant twisting and binding of souls, though that is probably only a side-effect.')
	elseif (msgcontains(msg, 'ghostlands')) then
			_selfSay('The place you know as the Ghostlands had a different name once ... and many names thereafter. Too many for me to remember them all.')
	elseif (msgcontains(msg, 'banshee')) then
			_selfSay('They are my maidens. They give me comfort in my eternal vigil over the last seal.')
	elseif (msgcontains(msg, 'seal')) then
			_selfSay('I am the guardian of the SEVENTH and final seal. The seal to open the last door before ... but perhaps it is better you see it with your own eyes.')
	
	elseif (msgcontains(msg, 'guardian')) then
			_selfSay('I am the guardian of the SEVENTH and final seal. The seal to open the last door before ... but perhaps it is better you see it with your own eyes.')
	
	
	elseif msgcontains(msg, 'bye') then
	selfSay('We will meet again.')
	talk_state = 0
	
	end
	-- Final The Queen of the Banshees NPC
	-- NPC The Queen of the Banshees feito por Rodrigo (Nottinghster)
	return true
end
end

function onThink()
	if (getFocus() ~= 0) then
		if (isIdle() or getDistanceToCreature(getFocus()) &gt; 4) then
			selfSay('Wait as patiently as death is waiting for you!', _delay)
			getNext()
		end
	end
end</pre></div></div></div>To na tyle. Mam nadzieję, że pomogłem <br />Zapraszam do komentowania!]]></description>
<pubDate>Niedziela 17 KwiecieĹ</pubDate>
<comments>Niedziela 17 KwiecieĹ</comments>
</item>
<item>
<title>Runa Hero</title>
<link>http://www.otsfans.pun.pl/viewtopic.php?pid=27#p27</link>
<guid isPermaLink="false">27@http://www.otsfans.pun.pl</guid>
<description><![CDATA[<p class="center"><strong>Autorem Jest Egzathum<br /><a href="http://forum.otsoft.pl/showthread.php?t=27879<br />/" target="_blank" rel="nofollow">Oryginalny Temat</a></strong><br /><strong>Siemka chciałem wam zaprezentować właściwie przedstawić &quot;Runke która was zmieni w Wygląd &lt;Hero&gt;.&quot;<br />A więc tak : Zaczynamy<br />Siemka chciałem wam zaprezentować właściwie przedstawić &quot;Runke która was zmieni w Wygląd &lt;Hero&gt;.&quot;<br />A więc tak : Zaczynamy</strong><br />Otwórz data/spells/runes<br />Następnie utwórz kopie dowolnego tam skrypta i zmień nazwę na<br />runa hero.lua . Następnie usuń wszystko z kopii i wklej to:<br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 22.5em"><pre>attackType = ATTACK_POISON
animationEffect = NM_ANI_NONE
hitEffect = NM_ME_MAGIC_POISEN
damageEffect = NM_ME_MAGIC_POISEN
animationColor = GREEN
offensive = false
drawblood = false
UltimateHealingObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)
function onCast(cid, creaturePos, level, maglv, var)
centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}
timec = 3000 --in seconds
changeOutfit(cid, timec, 73) -- 73 oznacza Id Outitu
end</pre></div></div></div>Następnie wejdź w data/spells/spells.xml<br />i znajdź linijkę .<br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 4.5em"><pre>&lt;rune name=&quot;Paralyze&quot;				id=&quot;2278&quot;	charges=&quot;1&quot;		maglv=&quot;18&quot;	mana=&quot;0&quot;	enabled=&quot;1&quot;&gt;&lt;/rune&gt;</pre></div></div></div>A pod nią wklej<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 4.5em"><pre>&lt;rune name=&quot;runa hero&quot;                 id=&quot;2274&quot; charges=&quot;1&quot;          maglv=&quot;0&quot;        mana=&quot;0&quot;         enabled=&quot;1&quot;&gt;&lt;/rune&gt;</pre></div></div></div>]]></description>
<pubDate>Niedziela 17 KwiecieĹ</pubDate>
<comments>Niedziela 17 KwiecieĹ</comments>
</item>
<item>
<title>Rozne typy kasyn</title>
<link>http://www.otsfans.pun.pl/viewtopic.php?pid=25#p25</link>
<guid isPermaLink="false">25@http://www.otsfans.pun.pl</guid>
<description><![CDATA[<p class="center"><strong>Autorem Jest: Henorek<br /><a href="http://forum.otsoft.pl/showthread.php?t=19635<br />/" target="_blank" rel="nofollow">Oryginalny Temat</a></strong><br />Witam<br /><br />Ostatnio znalazłem tu na forum skrypty na kasyno <br /><br />lecz tylko na CC<br /><br />i ja przerobiłem je żeby było na SC, oraz takie w którym można wygrać przedmiot za określoną stawkę oraz kasyno w którym można wygrać różne itemy za np 50 sc: <br />żebyście nie szukali po tematach skryptu na CC dam go tutaj :<br /><br />Tworzymy kasyno.lua w actions/scripts/<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 35em"><pre>function onUse(cid, item, frompos, item2, topos)
if item.uid == 5885 then
kasapos = {x=149, y=57, z=1, stackpos=255}
getkasa = getThingfromPos(kasapos)
winpos = {x=149, y=62, z=1}
if getkasa.itemid == 2160 and getkasa.type == 5 then
rand = math.random(4)
if rand == 1 or rand == 4 or rand == 3 then
doRemoveItem(getkasa.uid,5)
doSendMagicEffect(kasapos,2)
doPlayerSendTextMessage(cid,22,&quot;Straciles 5 Crystal Coins :(.&quot;)
end
if rand == 2 then
doRemoveItem(getkasa.uid,5)
doCreateItem(2160,15,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22,&quot; Gratulacje Wygrales 15 Crystal Coins :).&quot;)
end
end
if getkasa.itemid == 2160 and getkasa.type == 10 then
rand = math.random(4)
if rand == 1 or rand == 4 or rand == 3 then
doRemoveItem(getkasa.uid,10)
doSendMagicEffect(kasapos,2)
doPlayerSendTextMessage(cid,22,&quot;Straciles 10 Crystal Coins :(.&quot;)
end
if rand == 2 then
doRemoveItem(getkasa.uid,10)
doCreateItem(2160,30,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22,&quot;Gratulacje Wygrales 30 Crystal Coins :).&quot;)
end
end
if getkasa.itemid == 2160 and getkasa.type == 25 then
rand = math.random(4)
if rand == 1 or rand == 4 or rand == 3 then
doRemoveItem(getkasa.uid,25)
doSendMagicEffect(kasapos,2)
doPlayerSendTextMessage(cid,22,&quot;Straciles 25 Crystal Coins :(.&quot;)
end
if rand == 2 then
doRemoveItem(getkasa.uid,25)
doCreateItem(2160,75,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22,&quot; Gratulacje Wygrales 75 Crystal Coins :) .&quot;)
end
end
if getkasa.itemid == 2160 and getkasa.type == 50 then
rand = math.random(4)
if rand == 1 or rand == 4 or rand == 3 then
doRemoveItem(getkasa.uid,50)
doSendMagicEffect(kasapos,2)
doPlayerSendTextMessage(cid,22,&quot;Straciles 50 Crystal Coins :(.&quot;)
end
if rand == 2 then
doRemoveItem(getkasa.uid,50)
doCreateItem(2160,100,winpos)
doCreateItem(2160,50,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22,&quot;Gratulacje Wygrales 150 Crystal Coins :).&quot;)
end
end
if getkasa.itemid &gt; 2160 or getkasa.itemid &lt; 2160 then
doPlayerSendTextMessage(cid,22,&quot;Poloz 5, 10, 25 Lub 50 Crystal Coins :) jezeli Chcesz Wejsc W Gre.&quot;)
end
if getkasa.itemid == 2160 and getkasa.type == 1 or getkasa.itemid == 2160 and getkasa.type == 2 or getkasa.itemid == 2160 and getkasa.type == 3 or getkasa.itemid == 2160 and getkasa.type == 4 or getkasa.itemid == 2160 and getkasa.type == 6 or getkasa.itemid == 2160 and getkasa.type == 7 or getkasa.itemid == 2160 and getkasa.type == 8
or getkasa.itemid == 2160 and getkasa.type == 9 or getkasa.itemid == 2160 and getkasa.type == 11 or getkasa.itemid == 2160 and getkasa.type == 12 or getkasa.itemid == 2160 and getkasa.type == 13 or getkasa.itemid == 2160 and getkasa.type == 14 or getkasa.itemid == 2160 and getkasa.type == 15 or getkasa.itemid == 2160 and getkasa.type == 16
or getkasa.itemid == 2160 and getkasa.type == 17 or getkasa.itemid == 2160 and getkasa.type == 18 or getkasa.itemid == 2160 and getkasa.type == 19 or getkasa.itemid == 2160 and getkasa.type == 20 or getkasa.itemid == 2160 and getkasa.type == 21 or getkasa.itemid == 2160 and getkasa.type == 22 or getkasa.itemid == 2160 and getkasa.type == 23
or getkasa.itemid == 2160 and getkasa.type == 24 or getkasa.itemid == 2160 and getkasa.type == 26 or getkasa.itemid == 2160 and getkasa.type == 27 or getkasa.itemid == 2160 and getkasa.type == 28 or getkasa.itemid == 2160 and getkasa.type == 29 or getkasa.itemid == 2160 and getkasa.type == 30 or getkasa.itemid == 2160 and getkasa.type == 31
or getkasa.itemid == 2160 and getkasa.type == 32 or getkasa.itemid == 2160 and getkasa.type == 33 or getkasa.itemid == 2160 and getkasa.type == 34 or getkasa.itemid == 2160 and getkasa.type == 35 or getkasa.itemid == 2160 and getkasa.type == 36 or getkasa.itemid == 2160 and getkasa.type == 37 or getkasa.itemid == 2160 and getkasa.type == 38
or getkasa.itemid == 2160 and getkasa.type == 39 or getkasa.itemid == 2160 and getkasa.type == 40 or getkasa.itemid == 2160 and getkasa.type == 41 or getkasa.itemid == 2160 and getkasa.type == 42 or getkasa.itemid == 2160 and getkasa.type == 43 or getkasa.itemid == 2160 and getkasa.type == 44 or getkasa.itemid == 2160 and getkasa.type == 45
or getkasa.itemid == 2160 and getkasa.type == 46 or getkasa.itemid == 2160 and getkasa.type == 47 or getkasa.itemid == 2160 and getkasa.type == 48 or getkasa.itemid == 2160 and getkasa.type == 49 or getkasa.itemid == 2160 and getkasa.type &gt; 50 then
doPlayerSendTextMessage(cid,22,&quot;Poloz 5, 10, 25 Lub 50 Crystal Coins :) jezeli Chcesz Wejsc W Gre.&quot;)
end
end
end</pre></div></div></div>teraz actions/actions.xml<br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 4.5em"><pre>&lt;action uniqueid=&quot;5885&quot; script=&quot;kasyno.lua&quot; /&gt;</pre></div></div></div>a teraz skrypt podobny do zamieszczonego wyrzej lecz na SC :<br /><br />Tworzymy kasyno1.lua w actions/scripts/<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 35em"><pre>function onUse(cid, item, frompos, item2, topos)
if item.uid == 5886 then
kasapos = {x=149, y=57, z=1, stackpos=255}
getkasa = getThingfromPos(kasapos)
winpos = {x=149, y=58, z=1}
if getkasa.itemid == 2159 and getkasa.type == 5 then
rand = math.random(4)
if rand == 1 or rand == 4 or rand == 3 then
doRemoveItem(getkasa.uid,5)
doSendMagicEffect(kasapos,2)
doPlayerSendTextMessage(cid,22,&quot;Straciles 5 Scarab Coins :(.&quot;)
end
if rand == 2 then
doRemoveItem(getkasa.uid,5)
doCreateItem(2159,15,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22,&quot; Gratulacje Wygrales 15 Scarab Coins :).&quot;)
end
end
if getkasa.itemid == 2159 and getkasa.type == 10 then
rand = math.random(4)
if rand == 1 or rand == 4 or rand == 3 then
doRemoveItem(getkasa.uid,10)
doSendMagicEffect(kasapos,2)
doPlayerSendTextMessage(cid,22,&quot;Straciles 10 Scarab Coins :(.&quot;)
end
if rand == 2 then
doRemoveItem(getkasa.uid,10)
doCreateItem(2159,30,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22,&quot;Gratulacje Wygrales 30 Scarab Coins :).&quot;)
end
end
if getkasa.itemid == 2159 and getkasa.type == 25 then
rand = math.random(4)
if rand == 1 or rand == 4 or rand == 3 then
doRemoveItem(getkasa.uid,25)
doSendMagicEffect(kasapos,2)
doPlayerSendTextMessage(cid,22,&quot;Straciles 25 Scarab Coins :(.&quot;)
end
if rand == 2 then
doRemoveItem(getkasa.uid,25)
doCreateItem(2159,75,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22,&quot; Gratulacje Wygrales 75 Scarab Coins :) .&quot;)
end
end
if getkasa.itemid == 2159 and getkasa.type == 50 then
rand = math.random(4)
if rand == 1 or rand == 4 or rand == 3 then
doRemoveItem(getkasa.uid,50)
doSendMagicEffect(kasapos,2)
doPlayerSendTextMessage(cid,22,&quot;Straciles 50 Scarab Coins :(.&quot;)
end
if rand == 2 then
doRemoveItem(getkasa.uid,50)
doCreateItem(2159,100,winpos)
doCreateItem(2159,50,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22,&quot;Gratulacje Wygrales 150 Scarab Coins :).&quot;)
end
end
if getkasa.itemid &gt; 2159 or getkasa.itemid &lt; 2159 then
doPlayerSendTextMessage(cid,22,&quot;Poloz 5, 10, 25 Lub 50 Scarab Coins :) jezeli Chcesz Wejsc W Gre. szanse wynosza 1 do 4&quot;)
end
if getkasa.itemid == 2159 and getkasa.type == 0 or getkasa.itemid == getkasa.itemid == 2159 and getkasa.type == 1 or getkasa.itemid == 2159 and getkasa.type == 2 or getkasa.itemid == 2159 and getkasa.type == 3 or getkasa.itemid == 2159 and getkasa.type == 4 or getkasa.itemid == 2159 and getkasa.type == 6 or getkasa.itemid == 2159 and getkasa.type == 7 or getkasa.itemid == 2159 and getkasa.type == 8
or getkasa.itemid == 2159 and getkasa.type == 9 or getkasa.itemid == 2159 and getkasa.type == 11 or getkasa.itemid == 2159 and getkasa.type == 12 or getkasa.itemid == 2159 and getkasa.type == 13 or getkasa.itemid == 2159 and getkasa.type == 14 or getkasa.itemid == 2159 and getkasa.type == 15 or getkasa.itemid == 2159 and getkasa.type == 16
or getkasa.itemid == 2159 and getkasa.type == 17 or getkasa.itemid == 2159 and getkasa.type == 18 or getkasa.itemid == 2159 and getkasa.type == 19 or getkasa.itemid == 2159 and getkasa.type == 20 or getkasa.itemid == 2159 and getkasa.type == 21 or getkasa.itemid == 2159 and getkasa.type == 22 or getkasa.itemid == 2159 and getkasa.type == 23
or getkasa.itemid == 2159 and getkasa.type == 24 or getkasa.itemid == 2159 and getkasa.type == 26 or getkasa.itemid == 2159 and getkasa.type == 27 or getkasa.itemid == 2159 and getkasa.type == 28 or getkasa.itemid == 2159 and getkasa.type == 29 or getkasa.itemid == 2159 and getkasa.type == 30 or getkasa.itemid == 2159 and getkasa.type == 31
or getkasa.itemid == 2159 and getkasa.type == 32 or getkasa.itemid == 2159 and getkasa.type == 33 or getkasa.itemid == 2159 and getkasa.type == 34 or getkasa.itemid == 2159 and getkasa.type == 35 or getkasa.itemid == 2159 and getkasa.type == 36 or getkasa.itemid == 2159 and getkasa.type == 37 or getkasa.itemid == 2159 and getkasa.type == 38
or getkasa.itemid == 2159 and getkasa.type == 39 or getkasa.itemid == 2159 and getkasa.type == 40 or getkasa.itemid == 2159 and getkasa.type == 41 or getkasa.itemid == 2159 and getkasa.type == 42 or getkasa.itemid == 2159 and getkasa.type == 43 or getkasa.itemid == 2159 and getkasa.type == 44 or getkasa.itemid == 2159 and getkasa.type == 45
or getkasa.itemid == 2159 and getkasa.type == 46 or getkasa.itemid == 2159 and getkasa.type == 47 or getkasa.itemid == 2159 and getkasa.type == 48 or getkasa.itemid == 2159 and getkasa.type == 49 or getkasa.itemid == 2159 and getkasa.type &gt; 50 then
doPlayerSendTextMessage(cid,22,&quot;Poloz 5, 10, 25 Lub 50 Scarab Coins :) jezeli Chcesz Wejsc W Gre. szanse wynosza 1 do 4&quot;)
end
end
end</pre></div></div></div><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 4.5em"><pre>&lt;action uniqueid=&quot;5886&quot; script=&quot;kasyno1.lua&quot; /&gt;</pre></div></div></div>a teraz skrypt na itemy za określoną stawkę:<br />Tworzymy kasyno2.lua w actions/scripts/<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 35em"><pre>function onUse(cid, item, frompos, item2, topos)
if item.uid == 5887 then
kasapos = {x=149, y=65, z=1, stackpos=255}
getkasa = getThingfromPos(kasapos)
winpos = {x=149, y=66, z=1}
if getkasa.itemid == 2159 and getkasa.type == 25 then
rand = math.random(4)
if rand == 1 or rand == 4 or rand == 5 or rand == 6 or rand == 3 then
doRemoveItem(getkasa.uid,25)
doSendMagicEffect(kasapos,2)
doPlayerSendTextMessage(cid,22,&quot;Straciles 25 Crystal Coins :(.&quot;)
end
if rand == 2 then
doRemoveItem(getkasa.uid,25)
doCreateItem(2300,5,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22,&quot; Gratulacje! Wygrales TP rune :)&quot;)
end
end
if getkasa.itemid == 2159 and getkasa.type == 50 then
rand = math.random(4)
if rand == 1 or rand == 4 or rand == 5 or rand == 6 or rand == 3 then
doRemoveItem(getkasa.uid,50)
doSendMagicEffect(kasapos,2)
doPlayerSendTextMessage(cid,22,&quot;Straciles 50 Crystal Coins :(.&quot;)
end
if rand == 2 then
doRemoveItem(getkasa.uid,50)
doCreateItem(2533,100,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22,&quot;Gratulacje! Wygrales Griffin Shield :).&quot;)
end
end
if getkasa.itemid == 2159 and getkasa.type == 75 then
rand = math.random(4)
if rand == 1 or rand == 4 or rand == 5 or rand == 6 or rand == 3 then
doRemoveItem(getkasa.uid,75)
doSendMagicEffect(kasapos,2)
doPlayerSendTextMessage(cid,22,&quot;Straciles 75 Crystal Coins :(&quot;)
end
if rand == 2 then
doRemoveItem(getkasa.uid,75)
doCreateItem(2433,100,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22,&quot; Gratulacje! Wygrales a magic staff  :) &quot;)
end
end
if getkasa.itemid == 2159 and getkasa.type == 100 then
rand = math.random(4)
if rand == 1 or rand == 4 or rand == 5 or rand == 6 or rand == 3 then
doRemoveItem(getkasa.uid,100)
doSendMagicEffect(kasapos,2)
doPlayerSendTextMessage(cid,22,&quot;Straciles 100 Scarab Coins :(&quot;)
end
if rand == 2 then
doRemoveItem(getkasa.uid,100)
doCreateItem(2644,100,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22,&quot;Gratulacje! Wygrales bunny slippers  :)&quot;)
end
end
if getkasa.itemid &gt; 2159 or getkasa.itemid &lt; 2159 then
doPlayerSendTextMessage(cid,22,&quot;Poloz 25 , 50, 75 Lub 100 Scarab Coins :) jezeli Chcesz Wejsc W Gre. Szanse na wygranie 1 do 6&quot;)
end
if getkasa.itemid == 2159 and getkasa.type == 0 or getkasa.itemid == getkasa.itemid == 2159 and getkasa.type == 1 or getkasa.itemid == 2159 and getkasa.type == 2 or getkasa.itemid == 2159 and getkasa.type == 3 or getkasa.itemid == 2159 and getkasa.type == 4 or getkasa.itemid == 2159 and getkasa.type == 6 or getkasa.itemid == 2159 and getkasa.type == 7 or getkasa.itemid == 2159 and getkasa.type == 8
or getkasa.itemid == 2159 and getkasa.type == 9 or getkasa.itemid == 2159 and getkasa.type == 11 or getkasa.itemid == 2159 and getkasa.type == 12 or getkasa.itemid == 2159 and getkasa.type == 13 or getkasa.itemid == 2159 and getkasa.type == 14 or getkasa.itemid == 2159 and getkasa.type == 15 or getkasa.itemid == 2159 and getkasa.type == 16
or getkasa.itemid == 2159 and getkasa.type == 17 or getkasa.itemid == 2159 and getkasa.type == 18 or getkasa.itemid == 2159 and getkasa.type == 19 or getkasa.itemid == 2159 and getkasa.type == 20 or getkasa.itemid == 2159 and getkasa.type == 21 or getkasa.itemid == 2159 and getkasa.type == 22 or getkasa.itemid == 2159 and getkasa.type == 23
or getkasa.itemid == 2159 and getkasa.type == 24 or getkasa.itemid == 2159 and getkasa.type == 26 or getkasa.itemid == 2159 and getkasa.type == 27 or getkasa.itemid == 2159 and getkasa.type == 28 or getkasa.itemid == 2159 and getkasa.type == 29 or getkasa.itemid == 2159 and getkasa.type == 30 or getkasa.itemid == 2159 and getkasa.type == 31
or getkasa.itemid == 2159 and getkasa.type == 32 or getkasa.itemid == 2159 and getkasa.type == 33 or getkasa.itemid == 2159 and getkasa.type == 34 or getkasa.itemid == 2159 and getkasa.type == 35 or getkasa.itemid == 2159 and getkasa.type == 36 or getkasa.itemid == 2159 and getkasa.type == 37 or getkasa.itemid == 2159 and getkasa.type == 38
or getkasa.itemid == 2159 and getkasa.type == 39 or getkasa.itemid == 2159 and getkasa.type == 40 or getkasa.itemid == 2159 and getkasa.type == 41 or getkasa.itemid == 2159 and getkasa.type == 42 or getkasa.itemid == 2159 and getkasa.type == 43 or getkasa.itemid == 2159 and getkasa.type == 44 or getkasa.itemid == 2159 and getkasa.type == 45
or getkasa.itemid == 2159 and getkasa.type == 46 or getkasa.itemid == 2159 and getkasa.type == 47 or getkasa.itemid == 2159 and getkasa.type == 48 or getkasa.itemid == 2159 and getkasa.type == 49 or getkasa.itemid == 2159 and getkasa.type == 51 or getkasa.itemid == 2159 and getkasa.type == 52 or getkasa.itemid == 2159 and getkasa.type == 53 
or getkasa.itemid == 2159 and getkasa.type == 54 or getkasa.itemid == 2159 and getkasa.type ==  55 or getkasa.itemid == 2159 and getkasa.type == 56 or getkasa.itemid == 2159 and getkasa.type == 57 or getkasa.itemid == 2159 and getkasa.type ==  58 or getkasa.itemid == 2159 and getkasa.type == 59 or getkasa.itemid == 2159 and getkasa.type == 
60 or getkasa.itemid == 2159 and getkasa.type == 61 or getkasa.itemid == 2159 and getkasa.type == 62 or getkasa.itemid == 2159 and getkasa.type == 63 or getkasa.itemid == 2159 and getkasa.type == 64 or getkasa.itemid == 2159 and getkasa.type == 65 or getkasa.itemid == 2159 and getkasa.type == 66 or getkasa.itemid == 2159 and getkasa.type == 67 or getkasa.itemid == 2159 and getkasa.type == 
68 or getkasa.itemid == 2159 and getkasa.type == 69  or getkasa.itemid == 2159 and getkasa.type == 70 or getkasa.itemid == 2159 and getkasa.type == 71 or getkasa.itemid == 2159 and getkasa.type == 72 or getkasa.itemid == 2159 and getkasa.type == 73 or getkasa.itemid == 2159 and getkasa.type == 74 or getkasa.itemid == 2159 and getkasa.type == 
76 or getkasa.itemid == 2159 and getkasa.type == 77 or getkasa.itemid == 2159 and getkasa.type == 78  or getkasa.itemid == 2159 and getkasa.type == 79 or getkasa.itemid == 2159 and getkasa.type == 80  or getkasa.itemid == 2159 and getkasa.type == 81  or getkasa.itemid == 2159 and getkasa.type == 82 or getkasa.itemid == 2159 and getkasa.type == 
83 or getkasa.itemid == 2159 and getkasa.type == 84 or getkasa.itemid == 2159 and getkasa.type == 85  or getkasa.itemid == 2159 and getkasa.type == 86 or getkasa.itemid == 2159 and getkasa.type == 87 or getkasa.itemid == 2159 and getkasa.type == 88 or getkasa.itemid == 2159 and getkasa.type == 89 or getkasa.itemid == 2159 and getkasa.type == 
90 or getkasa.itemid == 2159 and getkasa.type == 91 or getkasa.itemid == 2159 and getkasa.type == 92 or getkasa.itemid == 2159 and getkasa.type == 93 or getkasa.itemid == 2159 and getkasa.type == 94 or getkasa.itemid == 2159 and getkasa.type == 95 or getkasa.itemid == 2159 and getkasa.type == 06 or getkasa.itemid == 2159 and getkasa.type == 
97 or getkasa.itemid == 2159 and getkasa.type == 98 or getkasa.itemid == 2159 and getkasa.type == 99 or getkasa.itemid == 2159 and getkasa.type &gt; 101 then 
doPlayerSendTextMessage(cid,22,&quot;Poloz 25 , 50, 75 Lub 100 Scarab Coins :) jezeli Chcesz Wejsc W Gre. Szanse na wygranie 1 do 6&quot;)
end
end
end</pre></div></div></div><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 4.5em"><pre>&lt;action uniqueid=&quot;5887&quot; script=&quot;kasyno2.lua&quot; /&gt;</pre></div></div></div>teraz kod na którym można wygrać kilka itemów za jedną stawkę:<br />(nie wiem czy dobrze działa bo piszę go na sucho)<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 35em"><pre>function onUse(cid, item, frompos, item2, topos)
if item.uid == 5888 then
kasapos = {x=149, y=65, z=1, stackpos=255}
getkasa = getThingfromPos(kasapos)
winpos = {x=149, y=66, z=1}
if getkasa.itemid == 2159 and getkasa.type == 50 then
rand = math.random(4)
if rand == 1 or rand == 4 or rand == 5 or rand == 7 or rand == 8 or rand == 9 or rand == 11 or rand == 12 or rand == 13 or rand == 14 or rand == 15 or rand == 3 then
doRemoveItem(getkasa.uid,50)
doSendMagicEffect(kasapos,2)
doPlayerSendTextMessage(cid,22,&quot;Straciles 50 Crystal Coins :(.&quot;)
end
if rand == 2 then
doRemoveItem(getkasa.uid,25)
doCreateItem(2300,5,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22,&quot; Gratulacje! Wygrales TP rune :)&quot;)
end
if rand == 6 then
doRemoveItem(getkasa.uid,50)
doCreateItem(2533,100,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22,&quot;Gratulacje! Wygrales Griffin Shield :).&quot;)
end
if rand == 10 then
doRemoveItem(getkasa.uid,75)
doCreateItem(2433,100,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22,&quot; Gratulacje! Wygrales a magic staff  :) &quot;)
end
if rand == 16 then
doRemoveItem(getkasa.uid,100)
doCreateItem(2644,100,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22,&quot;Gratulacje! Wygrales bunny slippers  :)&quot;)
end
end
if getkasa.itemid &gt; 2159 or getkasa.itemid &lt; 2159 then
doPlayerSendTextMessage(cid,22,&quot;Poloz 50 Scarab Coins :) jezeli Chcesz Wejsc W Gre. Szanse na wygranie 1 do 4&quot;)
end
if getkasa.itemid == 2159 and getkasa.type == 0 or getkasa.itemid == getkasa.itemid == 2159 and getkasa.type == 1 or getkasa.itemid == 2159 and getkasa.type == 2 or getkasa.itemid == 2159 and getkasa.type == 3 or getkasa.itemid == 2159 and getkasa.type == 4 or getkasa.itemid == 2159 and getkasa.type == 6 or getkasa.itemid == 2159 and getkasa.type == 7 or getkasa.itemid == 2159 and getkasa.type == 8
or getkasa.itemid == 2159 and getkasa.type == 9 or getkasa.itemid == 2159 and getkasa.type == 11 or getkasa.itemid == 2159 and getkasa.type == 12 or getkasa.itemid == 2159 and getkasa.type == 13 or getkasa.itemid == 2159 and getkasa.type == 14 or getkasa.itemid == 2159 and getkasa.type == 15 or getkasa.itemid == 2159 and getkasa.type == 16
or getkasa.itemid == 2159 and getkasa.type == 17 or getkasa.itemid == 2159 and getkasa.type == 18 or getkasa.itemid == 2159 and getkasa.type == 19 or getkasa.itemid == 2159 and getkasa.type == 20 or getkasa.itemid == 2159 and getkasa.type == 21 or getkasa.itemid == 2159 and getkasa.type == 22 or getkasa.itemid == 2159 and getkasa.type == 23
or getkasa.itemid == 2159 and getkasa.type == 24 or getkasa.itemid == 2159 and getkasa.type == 26 or getkasa.itemid == 2159 and getkasa.type == 27 or getkasa.itemid == 2159 and getkasa.type == 28 or getkasa.itemid == 2159 and getkasa.type == 29 or getkasa.itemid == 2159 and getkasa.type == 30 or getkasa.itemid == 2159 and getkasa.type == 31
or getkasa.itemid == 2159 and getkasa.type == 32 or getkasa.itemid == 2159 and getkasa.type == 33 or getkasa.itemid == 2159 and getkasa.type == 34 or getkasa.itemid == 2159 and getkasa.type == 35 or getkasa.itemid == 2159 and getkasa.type == 36 or getkasa.itemid == 2159 and getkasa.type == 37 or getkasa.itemid == 2159 and getkasa.type == 38
or getkasa.itemid == 2159 and getkasa.type == 39 or getkasa.itemid == 2159 and getkasa.type == 40 or getkasa.itemid == 2159 and getkasa.type == 41 or getkasa.itemid == 2159 and getkasa.type == 42 or getkasa.itemid == 2159 and getkasa.type == 43 or getkasa.itemid == 2159 and getkasa.type == 44 or getkasa.itemid == 2159 and getkasa.type == 45
or getkasa.itemid == 2159 and getkasa.type == 46 or getkasa.itemid == 2159 and getkasa.type == 47 or getkasa.itemid == 2159 and getkasa.type == 48 or getkasa.itemid == 2159 and getkasa.type == 49 or getkasa.itemid == 2159 and getkasa.type == 51 or getkasa.itemid == 2159 and getkasa.type == 52 or getkasa.itemid == 2159 and getkasa.type == 53 
or getkasa.itemid == 2159 and getkasa.type == 54 or getkasa.itemid == 2159 and getkasa.type ==  55 or getkasa.itemid == 2159 and getkasa.type == 56 or getkasa.itemid == 2159 and getkasa.type == 57 or getkasa.itemid == 2159 and getkasa.type ==  58 or getkasa.itemid == 2159 and getkasa.type == 59 or getkasa.itemid == 2159 and getkasa.type == 
60 or getkasa.itemid == 2159 and getkasa.type == 61 or getkasa.itemid == 2159 and getkasa.type == 62 or getkasa.itemid == 2159 and getkasa.type == 63 or getkasa.itemid == 2159 and getkasa.type == 64 or getkasa.itemid == 2159 and getkasa.type == 65 or getkasa.itemid == 2159 and getkasa.type == 66 or getkasa.itemid == 2159 and getkasa.type == 67 or getkasa.itemid == 2159 and getkasa.type == 
68 or getkasa.itemid == 2159 and getkasa.type == 69  or getkasa.itemid == 2159 and getkasa.type == 70 or getkasa.itemid == 2159 and getkasa.type == 71 or getkasa.itemid == 2159 and getkasa.type == 72 or getkasa.itemid == 2159 and getkasa.type == 73 or getkasa.itemid == 2159 and getkasa.type == 74 or getkasa.itemid == 2159 and getkasa.type == 
76 or getkasa.itemid == 2159 and getkasa.type == 77 or getkasa.itemid == 2159 and getkasa.type == 78  or getkasa.itemid == 2159 and getkasa.type == 79 or getkasa.itemid == 2159 and getkasa.type == 80  or getkasa.itemid == 2159 and getkasa.type == 81  or getkasa.itemid == 2159 and getkasa.type == 82 or getkasa.itemid == 2159 and getkasa.type == 
83 or getkasa.itemid == 2159 and getkasa.type == 84 or getkasa.itemid == 2159 and getkasa.type == 85  or getkasa.itemid == 2159 and getkasa.type == 86 or getkasa.itemid == 2159 and getkasa.type == 87 or getkasa.itemid == 2159 and getkasa.type == 88 or getkasa.itemid == 2159 and getkasa.type == 89 or getkasa.itemid == 2159 and getkasa.type == 
90 or getkasa.itemid == 2159 and getkasa.type == 91 or getkasa.itemid == 2159 and getkasa.type == 92 or getkasa.itemid == 2159 and getkasa.type == 93 or getkasa.itemid == 2159 and getkasa.type == 94 or getkasa.itemid == 2159 and getkasa.type == 95 or getkasa.itemid == 2159 and getkasa.type == 06 or getkasa.itemid == 2159 and getkasa.type == 
97 or getkasa.itemid == 2159 and getkasa.type == 98 or getkasa.itemid == 2159 and getkasa.type == 99 or getkasa.itemid == 2159 and getkasa.type == 5 or getkasa.itemid == 2159 and getkasa.type == 25 or getkasa.itemid == 2159 and getkasa.type == 75 or getkasa.itemid == 2159 and getkasa.type == &gt; 100 then 
doPlayerSendTextMessage(cid,22,&quot;Poloz 50 Scarab Coins :) jezeli Chcesz Wejsc W Gre. Szanse na wygranie 1 do 4&quot;)
end
end
end</pre></div></div></div><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 4.5em"><pre>&lt;action uniqueid=&quot;5888&quot; script=&quot;kasyno3.lua&quot; /&gt;</pre></div></div></div>[<p class="center">b]kasapos = to jest miejsce w którym gracz ma kłaść pieniądze<br />[/b]<br /><strong>winpos = to jest miejsce w którym będą leżeć (kasa lub itemy) po wygraniu</strong>]]></description>
<pubDate>Niedziela 17 KwiecieĹ</pubDate>
<comments>Niedziela 17 KwiecieĹ</comments>
</item>
<item>
<title></title>
<link>http://www.otsfans.pun.pl/viewtopic.php?pid=24#p24</link>
<guid isPermaLink="false">24@http://www.otsfans.pun.pl</guid>
<description><![CDATA[<p class="center"><strong>Autorem Jest TPlayer<br /><a href="http://forum.otsoft.pl/showthread.php?t=4648/" target="_blank" rel="nofollow">Oryginalny Temat</a><br /></strong><br /><p class="center"><strong>1. Najpierw kod na czas realistyczny:</strong><br />Tworzymy plik clock.lua w data/actions/scripts i wklejamy to:<br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 15em"><pre>function onUse(cid, item, frompos, item2, topos)

data = os.date('%c')

doPlayerSendTextMessage(cid, 22, &quot;&quot;..data..&quot;&quot;)
end

return 1</pre></div></div></div>Na koniec otwieramy plik actions.xml w data/actions i dopisujemy to:<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 10.5em"><pre>&lt;action itemid=&quot;2036&quot; script=&quot;clock.lua&quot; /&gt;
&lt;action itemid=&quot;1728&quot; script=&quot;clock.lua&quot; /&gt;
&lt;action itemid=&quot;1729&quot; script=&quot;clock.lua&quot; /&gt;
&lt;action itemid=&quot;1730&quot; script=&quot;clock.lua&quot; /&gt;
&lt;action itemid=&quot;1731&quot; script=&quot;clock.lua&quot; /&gt;</pre></div></div></div><p class="center"><strong><br />2. Teraz skrypt na czas Tibijski:</strong><br /><br />Tworzymy plik watch.lua w data/actions/scripts i wklejamy to:<br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 35em"><pre>function onUse(cid, item, frompos, item2, topos)

twentyfour = false 
tibiantime = true 

if (tibiantime == false) then
if (twentyfour == true) then
time = os.date('%H:%M')
else
time = os.date('%I:%M %p')
end
else
time = rl2tib(os.date('%M'), os.date('%S'), twentyfour)
end
doPlayerSendTextMessage(cid, 22, &quot;The time is &quot;..time..&quot;.&quot;)
return 1
end

function rl2tib(min, sec, twentyfour)

suffix = ''
varh = (min*60+sec)/150
tibH = math.floor(varh) 
tibM = math.floor(60*(varh-tibH)) 

if (twentyfour == false) then
if (tonumber(tibH) &gt; 11) then
tibH = tonumber(tibH) - 12
suffix = ' pm'
else
suffix = ' am'
end
if (tibH == 0) then
tibH = 12
end
end
if (tibH &lt; 10) then
tibH = '0'..tibH
end
if (tibM &lt; 10) then
tibM = '0'..tibM
end
return (tibH..':'..tibM..suffix)
end</pre></div></div></div>Na koniec otwieramy plik actions.xml w data/actions i dopisujemy to:<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 10.5em"><pre>&lt;action itemid=&quot;2036&quot; script=&quot;watch.lua&quot; /&gt;
&lt;action itemid=&quot;1728&quot; script=&quot;watch.lua&quot; /&gt;
&lt;action itemid=&quot;1729&quot; script=&quot;watch.lua&quot; /&gt;
&lt;action itemid=&quot;1730&quot; script=&quot;watch.lua&quot; /&gt;
&lt;action itemid=&quot;1731&quot; script=&quot;watch.lua&quot; /&gt;</pre></div></div></div>]]></description>
<pubDate>Niedziela 17 KwiecieĹ</pubDate>
<comments>Niedziela 17 KwiecieĹ</comments>
</item>
<item>
<title></title>
<link>http://www.otsfans.pun.pl/viewtopic.php?pid=23#p23</link>
<guid isPermaLink="false">23@http://www.otsfans.pun.pl</guid>
<description><![CDATA[<p class="center"><strong>Autorem Jest Vortis&Master Manyy<br /><a href="http://forum.otsoft.pl/showthread.php?t=29644/" target="_blank" rel="nofollow">Oryginalny Temat</a></strong><br />Witam wszystkich <br />Razem z kolegą napisaliśmy Skrypt pod Tibie 7.6<br />Ja wolę 8.54 lecz kolega umie tylko pod 7.6 więc napisaliśmy... ;-)<br /><br />Tak więc przejdźmy do rzeczy:<br /><br />Autorzy: VortiS & Master Manyy<br /><br />Nazwa Skryptu: Za pomocą dźwigni znikają przedmioty a pojawia się nowy.<br /><br />Opis Skryptu: Jeżeli po pociągnięciu dźwigni przedmiot z pozycji 1 i pozycji 2 znika i pojawia się nowy przedmiot na pozycji 1<br /><br />Teraz skrypt:<br />Przechodzimy do data/actions/scripts i tworzymy plik o nazwie dzwignia i wklejamy do niego to:<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 34.5em"><pre>function onUse(cid, item, frompos, item2, topos)

item1pos = {x=488, y=470, z=11, stackpos=1} -- pos gdzie ma lezec 1 itemek
item2pos = {x=489, y=470, z=11, stackpos=1} -- pos gdzie ma lezec 2 itemek
nagrodapos = {x=490, y=470, z=11, stackpos=1} -- pos gdzie ma sie pojawic nagroda
item1 = getThingfromPos(item1pos)
item2 = getThingfromPos(item2pos)

if item.uid == 6666 and item.itemid == 1945 and item1.itemid == XXXX and item2.itemid == OOOO then -- XXXX - id 1 itemka OOOO - id 2 itemka
doRemoveItem(item1.uid,1)
 doRemoveItem(item2.uid,1)
  doCreateItem(2400,1,nagrodapos)
 doPlayerSendTextMessage(cid,22,&quot;Zdobyles Magic Sword.&quot;)
doTransformItem(item.uid,item.itemid+1)
elseif item.uid == 6666 and item.itemid == 1946 then
doTransformItem(item.uid,item.itemid-1)
else
doPlayerSendTextMessage(cid,22,&quot;Nie mozliwe.&quot;)
end
return 1
end</pre></div></div></div>Następnie w data/actions/actions.xml dodajemy linijkę:<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 4.5em"><pre>&lt;action uniqueid=&quot;6666&quot; script=&quot;dzwignia.lua&quot; /&gt;</pre></div></div></div>To na tyle w tym kodzie <br />Możliwe, że będą powstawać następne..<br /><br />Proszę komentować <br /><br />Dziękujemy za Uwagę,<br />VortiS & Master Manyy]]></description>
<pubDate>Niedziela 17 KwiecieĹ</pubDate>
<comments>Niedziela 17 KwiecieĹ</comments>
</item>
<item>
<title></title>
<link>http://www.otsfans.pun.pl/viewtopic.php?pid=22#p22</link>
<guid isPermaLink="false">22@http://www.otsfans.pun.pl</guid>
<description><![CDATA[<p class="center"><strong>Autorem Jest Łabik<br /><a href="http://forum.otsoft.pl/showthread.php?t=34163/" target="_blank" rel="nofollow">Oryginalny Temat</a></strong><br />Autor: By Łabik <br />Opis: Przedmiot po osiągnięciu danego mlvl i użyciu go dodaje nam punkty HP, posiada on również exhausted i się nie kończy. Ilość dodawanego HP jest zmienna wraz z wzrostem lvl.<br />Testowane na: YurOTS 0.9.4f<br /><br />W xxx\data\actions\scripts tworzymy nowy plik hp.lua i wklejamy do niego:<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 33em"><pre>function onUse(cid, item, frompos, item2, topos) 
mag = getPlayerMagLevel(cid)
lvl = getPlayerLevel(cid) 
local exhausted_seconds = 2
local exhausted_storagevalue = 1259 

if mag &gt;= 0 then 
 if(os.time() &gt; getPlayerStorageValue(cid, exhausted_storagevalue)) then
  doPlayerSay(cid,&quot;Ahhh.. HP.&quot;,16) 
  doPlayerAddHealth(cid, (lvl * 2)* 0.98) 
  setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds)
 else
  doPlayerSendCancel(cid, &quot;You are exhausted.&quot;)
 end
else
 doSendMagicEffect(frompos,2) 
 doPlayerSendCancel(cid,&quot;Masz zbyt maly mlvl aby uzyc tego potiona .&quot;) 
end
return 1 
end</pre></div></div></div>W xxx\data\actions\actions.xml dodajemy linijkę:<br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 4.5em"><pre>&lt;action itemid=&quot;ID PRZEDMIOTU&quot; script=&quot;hp.lua&quot;/&gt;</pre></div></div></div>]]></description>
<pubDate>Niedziela 17 KwiecieĹ</pubDate>
<comments>Niedziela 17 KwiecieĹ</comments>
</item>
<item>
<title></title>
<link>http://www.otsfans.pun.pl/viewtopic.php?pid=21#p21</link>
<guid isPermaLink="false">21@http://www.otsfans.pun.pl</guid>
<description><![CDATA[<p class="center"><strong>Autorem jest Polo90<br /><a href="http://forum.otsoft.pl/showthread.php?t=3009/" target="_blank" rel="nofollow">Oryginalny Temat</a></strong><br />A więc do dzieła.<br /><br />Tworzymy plik o nazwie podłogaexp.lua w data/actions/scripts<br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 18em"><pre>-- By polo90
function onWalk(cid, item, itemuid, itemaid, posx, posy, posz)
topos = getPlayerPosition(cid)

if item==422 then -- id podłogi
doPlayerAddExp(cid,1000) -- ile expu dodaje
doSendMagicEffect(topos,1)
doPlayerSay(cid,&quot;Doładowano ci expa!&quot;,16) -- tekst jaki pokaze się
end
end</pre></div></div></div>A do data/actions/actions.xml dopisujemy:<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 4.5em"><pre>&lt;action itemid=&quot;id podłogi&quot; script=&quot;podlogaexp.lua&quot;/&gt;</pre></div></div></div><span style="font-size: 16px"><strong>Uwaga Jeśli twój OTS nie ma funkcji onWalk to ten skrypt nie zadziała!</strong></span>]]></description>
<pubDate>Niedziela 17 KwiecieĹ</pubDate>
<comments>Niedziela 17 KwiecieĹ</comments>
</item>
<item>
<title></title>
<link>http://www.otsfans.pun.pl/viewtopic.php?pid=20#p20</link>
<guid isPermaLink="false">20@http://www.otsfans.pun.pl</guid>
<description><![CDATA[Widzialem Ten Skrypt Na Forum Tibia.org i otfans.pl ale tu go jeszcze nie ma więc dam,<br /><strong>Prawdziwy Autor Nie Znany</strong><br />W data\actions\scripts i robimy tam train.lua<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 31.5em"><pre>function onUse(cid, item, frompos, item2, topos)
 
if item.uid == 8000 then
kasapos = {[color=red]x=125, y=99, z=7[/color],[color=#003366]stackpos=255[/color]}
getkasa = getThingfromPos(kasapos)
topos = {x=[color=#00FF00]125, y=99, z=8[/color]}
 
if getkasa.itemid == 2152 and getkasa.type == 5 then
doRemoveItem(getkasa.uid,5)
doTeleportThing(cid,topos)
 
else
doPlayerSendTextMessage(cid,22,&quot;Poloz 5 platynek kolo dzwigni.&quot;)
end
 
 
return 1
end
end</pre></div></div></div><strong>Trzeba Zrobic Dziwgnie (id dzwigni 1945) o uniqueid 8000</strong><br /><br /><br /><span style="color: red">To Sa Współrzędne Gdzie Ma Gracz Polozyc Kase</span><br /><br /><span style="color: #000080">TEGO NIE RUSZAJCIE !</span><br /><br /><span style="color: #00FF00">To Sa Wspozedne Gdzie Ma Teleportowac Gracza</span><br /><br />Teraz W data\actions\actions.xml<br />Dajemy Na Samym Koncu<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 4.5em"><pre>&lt;action uniqueid=&quot;8000&quot; script=&quot;train.lua&quot; /&gt;</pre></div></div></div>]]></description>
<pubDate>Niedziela 17 KwiecieĹ</pubDate>
<comments>Niedziela 17 KwiecieĹ</comments>
</item>
<item>
<title>Manarune - 100% edycji w configu.</title>
<link>http://www.otsfans.pun.pl/viewtopic.php?pid=19#p19</link>
<guid isPermaLink="false">19@http://www.otsfans.pun.pl</guid>
<description><![CDATA[<p class="center"><strong>Autorem Jest:<br /><span class="bbu">kumpelek93<br />Miziak<br />Zellus</span><br /><a href="http://forum.otsoft.pl/showthread.php?t=29169<br />/" target="_blank" rel="nofollow">Oryginalny Temat</a></strong><br /><br />Witam,<br />Manarunka jest na bazie tej od Miziaka. <br />Dziękuję Zellusowi za zrobienie stage'ów.<br />Rozbudowana została konfiguracja, można tam ustawić praktycznie wszystko, bez najmniejszej znajomości lua.<br />Oto ona<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 35em"><pre>-- Manarune by Miziak, stages by Zellus, edit by kumpelek93 --


function onUse(cid, item, frompos, item2, topos) 
local config = { -- KONFIGURACJA 
    runeid = 2294, --id runy jakiej będziesz używać
    turn_off = false, -- wyłączanie/włączanie manaruny(true - wyłączona/false - włączona)
    turn_off_msg = &quot;Przepraszamy, manarunka chwilowo niedostepna.&quot;, -- tekst jaki się pokazuje gdy turn_off = true 
    broadcast_gained_mana = false, -- czy uzyskana ilość many ma się pokazywać nad postacią? (true/false)
    text_colour = 35, -- kolor textu w jakim pokaże nam się otrzymana mana (gdy broadcast_gained_mana = true)
    mini_info = ture, -- czy uzyskana ilość many ma się pokazywać białym kolorem na dole ekranu? (true/false)
    effect_enable = true, -- czy ma być widoczny magiczny efekt przy użyciu manaruny? 
    effect = 12, -- efekt magiczny jaki manarunka daje przy użyciu
    broadcast_text = true, -- Czy postać ma wypowiadać tekst? Można go edytować poniżej(true/false) 
    text1 = &quot;Wymyslony tekst1&quot;, -- pierwszy przedział levelowy
    text2 = &quot;Wymyslony tekst2&quot;, -- drugi przedział levelowy
    text3 = &quot;Wymyslony tekst3&quot;, -- trzeci przedział levelowy
    text4 = &quot;Wymyslony tekst4&quot;, -- czwarty przedział levelowy
    text5 = &quot;Wymyslony tekst5&quot;, -- piąty przedział levelowy
    text6 = &quot;Wymyslony tekst6&quot;, -- szósty przedział levelowy
    text_effect = 16, -- Kolor wypowiadanego tekstu przy użyciu manaruny. (1-żółty, 16-czerwony)
    konczy_sie = true, -- czy manaruna się kończy (true/false)
    end_effect_enable = true, -- czy ma być widoczny efekt końcowego użycia manaruny? 
    end_effect = 22, -- efekt magiczny jaki manarunka daje przy ostatnim użyciu(gdy end_effect_enable = true)
    error_info_1 = &quot;Mozesz uzywac tej runy tylko na postaciach&quot;, -- tekst jaki wyświetla się po próbie użycia runki w zły sposób
    exh =  
    { 
        exh_enable = true, -- czy jest exhausted (true/false) 
        co_ile = 0.4, -- ile trwa 
        stroge = 12345, -- liczba go przechowująca 
        exh_info = &quot;Jestes zmeczony&quot;, -- tekst jaki wyswietla sie gdy mamy exhausted
    } 
}
 
    
local stages = { 
    stage1 = { 
        manamax=120, 
        manamin=50 
    }, 
    stage2 = { 
        manamax=240, 
        manamin=120 
    }, 
    stage3 = { 
        manamax=340, 
        manamin=240 
    }, 
    stage4 = { 
        manamax=440, 
        manamin=340 
    }, 
    stage5 = { 
        manamax=550, 
        manamin=440 
    }, 
    stage6 = { 
        manamax=800, 
        manamin=550 
    }, 
} 

    
local level = getPlayerLevel(cid) 

if level &lt; 50 then -- Jeśli level gracza jest mniejszy niż 50 
    stage = 'stage1' 
    text = config.text1
elseif level &lt; 100 then -- Ponadto jeśli level gracza jest mniejszy niż 100 (i automatycznie większy niż  50) 
    stage = 'stage2'
    text = config.text2
elseif level &lt; 150 then -- Ponadto jeśli level gracza jest mniejszy niż 150 (i automatycznie większy niż  100)  
    stage = 'stage3'
    text = config.text3 
elseif level &lt; 200 then -- Ponadto jeśli level gracza jest mniejszy niż 200 (i automatycznie większy niż  150)   
    stage = 'stage4'
    text = config.text4 
elseif level &lt; 250 then -- Ponadto jeśli level gracza jest mniejszy niż 250 (i automatycznie większy niż  200) 
    stage = 'stage5'
text = config.text5 
else                    -- W każdym innym przypadku (tj. jeśli level gracza jest większy niż 250)  
    stage = 'stage6'
    text = config.text6 
end 
local manaplus = math.random(stages[stage].manamin, stages[stage].manamax) 

if(item.itemid == config.runeid)then 
    if(os.time() &gt; getPlayerStorageValue(cid, config.exh.stroge)) then 
        if(item2.itemid == 1 and item2.uid ~= 0)then 
           if(config.turn_off) then
             doPlayerSendCancel(cid,config.turn_off_msg)

    else     
            doPlayerAddMana(item2.uid, manaplus)
            
            
            if(config.broadcast_text) then
            doPlayerSay(cid,''..text..'',config.text_effect)
            end
            
            if(config.mini_info) then
            doPlayerSendCancel(cid,'Zregenerowales '..manaplus..' many.')
            end
           
            if(config.effect_enable) then
            doSendMagicEffect(topos,config.effect)
            end

            if(config.broadcast_gained_mana)then 
                doSendAnimatedText(topos,''.. manaplus ..'',config.text_colour)
            end
            if(config.exh.exh_enable)then 
                setPlayerStorageValue(cid, config.exh.stroge, os.time() + config.exh.co_ile) 
            end 
            if(config.konczy_sie)then 
                if(item.type &gt; 1)then  
                    doChangeTypeItem(item.uid,item.type-1)  
                else 
                   if(config.end_effect_enable)then
                    doSendMagicEffect(topos,config.end_effect) 
                      end
                    doRemoveItem(item.uid,1)  
                end
              end  
            end 
        else 
            doPlayerSendCancel(cid,config.error_info_1) 
             
        end 
    else 
        doPlayerSendCancel(cid,config.exh.exh_info) 
    end 
end 
return 1 
end</pre></div></div></div>Manaruna została zrobiona z myślą o osobach, które po raz pierwszy mają styczność z lua. Bardzo łatwo, intuicyjnie wręcz można dorobić kolejne przedziały levelowe (stages).<br />Jeśli ktoś ma jakieś sugestie, co można dodać to śmiało pisać. <br />Jest to moje pierwsze coś, co zrobiłem w lua, więc proszę o łagodne oceny.]]></description>
<pubDate>Niedziela 17 KwiecieĹ</pubDate>
<comments>Niedziela 17 KwiecieĹ</comments>
</item>
<item>
<title></title>
<link>http://www.otsfans.pun.pl/viewtopic.php?pid=18#p18</link>
<guid isPermaLink="false">18@http://www.otsfans.pun.pl</guid>
<description><![CDATA[<p class="center"><strong>Autorem Jest Henorek<br /><a href="http://forum.otsoft.pl/showthread.php?t=3902/" target="_blank" rel="nofollow">Oryginalny Temat</a></strong><br />Skrypt który poprostu poprawia humorek, mianowicie często nudzi wam się na ots-ie i wciskacie /a 2, /a 2 i tak bez przerwy. A po co właściwie wciskać to /a 2 ?? jak można sobię pojeździć na miotle? tak jak czarownice itd. ? Dzisiaj rozwiążę ten problem. Dam wam skrypt dzięki któremu miotła na waszym ots-ie będzie działać! co najlepsze! nie będzie ona tylko dla GM-ów, będzie ona dla wszystkich którzy znajdą miotłę na ots-ie. Jednak jeśli ktoś chce chętnie mu zrobię miotłe tylko dla GM, ale narazie pozostańmy przy tej.<br /><br />ots/data/action.scripts tworzymy miotlaziuu.lua<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 35em"><pre>function onUse(cid, item, frompos, item2, topos) 



npos = {x=topos.x, y=topos.y, z=topos.z} 



if topos.x &lt; 10000 then 

doSendMagicEffect(topos,13) 

doPlayerSay(cid,&quot;Ziuuuuuu!!!&quot;,16) 

doTeleportThing(cid,npos) 

else 

doPlayerSendCancel(cid, &quot;Nie telepniesz sie do plecaka &quot;) 

end 



return 1 

end</pre></div></div></div>Do actions.xml<br /><br /><strong>&lt;action itemid=&quot;2324&quot; script=&quot;miotlaziuu.lua&quot; allowfaruse=&quot;1&quot; /&gt;</strong><br /><br />Teraz miotła będzie działać tak że nie będzie można przelatywać przez mur. <br />Jednak jeśli chcesz przelatywać przez mur usuń &quot; <strong>allowfaruse=&quot;1&quot;</strong>&quot;, jednak najlepiej zostawić to tak jak jest.]]></description>
<pubDate>Niedziela 17 KwiecieĹ</pubDate>
<comments>Niedziela 17 KwiecieĹ</comments>
</item>
<item>
<title>Hydra Egg</title>
<link>http://www.otsfans.pun.pl/viewtopic.php?pid=17#p17</link>
<guid isPermaLink="false">17@http://www.otsfans.pun.pl</guid>
<description><![CDATA[<p class="center"><strong>Autorem Jest Serafin<br /><a href="http://forum.otsoft.pl/showthread.php?t=15195/" target="_blank" rel="nofollow">Oryginalny Temat</a></strong><br /><strong>Bylo Hydra Egg na 7.92 to ja dam na 7.6</strong><br />W data/actions/actions.xml dodaj:<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 4.5em"><pre>&lt;action itemid=&quot;4850&quot; script=&quot;hydra.lua&quot; /&gt;</pre></div></div></div>W data/scripts/hydra.lua dodaj:<br /><br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 35em"><pre>-- Create Hydra by Czepek --
function onUse(cid, item, frompos, item2, topos)

pos = getPlayerPosition(cid)

if getTilePzInfo(topos) == 0 then
if getTilePzInfo(pos) == 0 then

if item.itemid == 4850 then
doSummonCreature(&quot;Hydra&quot;, pos)
doSendMagicEffect(topos,12)
doPlayerSay(cid,&quot;Amgad&quot;,1)
doRemoveItem(item.uid,item.type)

else

doPlayerSendCancel(cid,&quot;You cannot use that.&quot;)
end
else
doPlayerSendCancel(cid,&quot;You Cannot use this Egg while you are in a Protect Zone.&quot;)
end
else
doPlayerSendCancel(cid,&quot;You cannot use this Egg on a protect zone.&quot;)
end

return 1

end</pre></div></div></div>Z tego co widzialem kody nie różnią sie mocno ale jednak : o Moze komus sie przyda na Arene<br />PvM.]]></description>
<pubDate>Niedziela 17 KwiecieĹ</pubDate>
<comments>Niedziela 17 KwiecieĹ</comments>
</item>
<item>
<title></title>
<link>http://www.otsfans.pun.pl/viewtopic.php?pid=16#p16</link>
<guid isPermaLink="false">16@http://www.otsfans.pun.pl</guid>
<description><![CDATA[<p class="center"><strong>Autorem Jest Łabik<br /><a href="http://forum.otsoft.pl/showthread.php?t=34185/" target="_blank" rel="nofollow">Oryginalny Temat</a></strong><br />Autor: Łabik <br />Opis: Po użyciu fontanny dodaje nam punkty HP oraz MP, posiada ona również exhausted . Ilość dodawanego HP i MP jest zmienna wraz z wzrostem lvla lub mlvla.<br />Testowane na: YurOTS 0.9.4f<br /><br />W xxx\data\actions\scripts tworzymy nowy plik fontanna.lua i wklejamy do niego:<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 27em"><pre>function onUse(cid, item, frompos, item2, topos) 
mlvl = getPlayerMagLevel(cid) 
lvl = getPlayerLevel(cid)  
local exhausted_seconds = 13 
local exhausted_storagevalue = 1260  

if(os.time() &gt; getPlayerStorageValue(cid, exhausted_storagevalue)) then 
 doPlayerSay(cid,&quot;Nie ma to jak lyk swiezej wody!&quot;,16)  
 doPlayerAddHealth(cid, (lvl * 1.39)* 4.74)  
 doPlayerAddMana(cid, (mlvl * 1.39)* 6.74)  
 setPlayerStorageValue(cid, exhausted_storagevalue, os.time() + exhausted_seconds) 
else 
 doPlayerSendCancel(cid,&quot;Nie mozesz pic tak szybko!&quot;) 
end 
return 1  
end</pre></div></div></div>W xxx\data\actions\actions.xml dodajemy linijki:<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 9em"><pre>&lt;action itemid=&quot;1374&quot; script=&quot;fontanna.lua&quot; /&gt; 
&lt;action itemid=&quot;1375&quot; script=&quot;fontanna.lua&quot; /&gt; 
&lt;action itemid=&quot;1376&quot; script=&quot;fontanna.lua&quot; /&gt; 
&lt;action itemid=&quot;1377&quot; script=&quot;fontanna.lua&quot; /&gt;</pre></div></div></div>]]></description>
<pubDate>Niedziela 17 KwiecieĹ</pubDate>
<comments>Niedziela 17 KwiecieĹ</comments>
</item>
</channel>
</rss>
