<?xml version="1.0" encoding="iso-8859-2"?>
<rss version="2.0">
<channel>
<title>Skarbnica OTS</title>
<link>http://www.skrypty28.pun.pl</link>
<description> Skarbnica OTS</description>
<language>pl</language>
<docs>http://backend.userland.com/rss</docs>
<item>
<title></title>
<link>http://www.skrypty28.pun.pl/viewtopic.php?pid=23#p23</link>
<guid isPermaLink="false">23@http://www.skrypty28.pun.pl</guid>
<description><![CDATA[pucuj torpede koleś]]></description>
<pubDate>Niedziela 4 Maj</pubDate>
<comments>Niedziela 4 Maj</comments>
</item>
<item>
<title>[7.x-8.x]Spells - Tylko tutaj</title>
<link>http://www.skrypty28.pun.pl/viewtopic.php?pid=22#p22</link>
<guid isPermaLink="false">22@http://www.skrypty28.pun.pl</guid>
<description><![CDATA[Tutaj Dawajcie Swoje Czary Wraz z Screenami]]></description>
<pubDate>Czwartek 1 Maj</pubDate>
<comments>Czwartek 1 Maj</comments>
</item>
<item>
<title>[7.x-8.x]Monstery-Tylko Tutaj</title>
<link>http://www.skrypty28.pun.pl/viewtopic.php?pid=21#p21</link>
<guid isPermaLink="false">21@http://www.skrypty28.pun.pl</guid>
<description><![CDATA[Tylko tutaj Dawajcie swoje monstery wraz Z Print Screenem :D]]></description>
<pubDate>Czwartek 1 Maj</pubDate>
<comments>Czwartek 1 Maj</comments>
</item>
<item>
<title></title>
<link>http://www.skrypty28.pun.pl/viewtopic.php?pid=20#p20</link>
<guid isPermaLink="false">20@http://www.skrypty28.pun.pl</guid>
<description><![CDATA[Witam mam dla was do zaoferowania npc co przenosi na rozne wyspy powiem wam jak to robić i sie nauczycie<br />UWAGA jak sie niema pacca npc nie teleportuje ;/<br /><br />wchodzmy w Npc i tworzymy nowy plik XML o nazwie Nimral a wnim w klejamy:<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;Captain Nimral&quot; script=&quot;data/npc/scripts/Teleport.lua&quot; autowalk=&quot;25&quot;&gt;
	&lt;health now=&quot;40&quot; max=&quot;40&quot;/&gt;
	&lt;look type=&quot;133&quot; head=&quot;114&quot; body=&quot;119&quot; legs=&quot;132&quot; feet=&quot;114&quot;/&gt;
&lt;/npc&gt;</pre></div></div></div>Dalej w chodzmy w npc /script tworzymi plik lua Teleport (lub teleportacja jak tam chcecie)<br /><br />wklejamy to :<br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 35em"><pre>local focus = 0
local talk_start = 0
local target = 0
local following = false
local 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 (msgcontains(msg, 'hi') and (focus == 0)) and getDistanceToCreature(cid) &lt; 4 then
		if isPremium(cid) then
			selfSay('Hello ' .. getCreatureName(cid) .. '!I can take you to Folda, Vega, or Senya.(Cost 100gp everywhere)')
			focus = cid
			talk_start = os.clock()
		else
			selfSay('Sorry, only premium players can fly on Carpet.')
			focus = 0
			talk_start = 0
		end

  	elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) &lt; 4 then
  		selfSay('Sorry, ' .. getCreatureName(cid) .. '! I talk to you in a minute.')

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

		if msgcontains(msg, 'folda') then
			if pay(cid,50) then
			    selfSay('Let\'s go!')
				travel(cid,388, 400, 7 )
				focus = 0
				talk_start = 0
			else
				selfSay('Sorry, you don\'t have enough money.')
			end

		elseif msgcontains(msg, 'vega') then
			if pay(cid,50) then
			    selfSay('Let\'s go!')
				travel(cid, 369, 509, 7)
				focus = 0
				talk_start = 0
			else
				selfSay('Sorry, you don\'t have enough money.')
			end

		elseif msgcontains(msg, 'senya') then
			if pay(cid,50) then
			    selfSay('Let\'s go!')
				travel(cid, 468, 486, 7)
				focus = 0
				talk_start = 0
			else
				selfSay('Sorry, you don\'t have enough money.')
			end

		elseif msgcontains(msg, 'tibia') then
			if pay(cid,0) then
			    selfSay('Let\'s go!')
				travel(cid,578, 494, 7 )
				focus = 0
				talk_start = 0
			else
				selfSay('Sorry, you don\'t have enough money.')
			end				
	
		elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) &lt; 4 then
			selfSay('Good bye, ' .. getCreatureName(cid) .. '!')
			focus = 0
			talk_start = 0
		end
	end
end


function onCreatureChangeOutfit(creature)

end


function onThink()
	if focus &gt; 0 then 
		x, y, z = creatureGetPosition(focus)
		myx, myy, myz = selfGetPosition()
		
		if ((myy-y==0) and (myx-x&lt;=0 and myx-x&gt;=-4)) then
			selfTurn(1)
		end 
		if ((myy-y==0) and (myx-x&gt;=0 and myx-x&lt;=4)) then
			selfTurn(3)
		end
		if ((myx-x==0) and (myy-y&lt;=0 and myy-y&gt;=-4)) then
			selfTurn(2)
		end
		if ((myx-x==0) and (myy-y&gt;=0 and myy-y&lt;=4)) then
			selfTurn(0)
		end
		if ((myy-y==-2) and (myx-x&gt;=-1 and myx-x&lt;=1)) then
			selfTurn(2)
		end
		if ((myy-y==2) and (myx-x&gt;=-1 and myx-x&lt;=1)) then
			selfTurn(0)
		end
		if ((myx-x==2) and (myy-y&gt;=-1 and myy-y&lt;=1)) then
			selfTurn(3)
		end
		if ((myx-x==-2) and (myy-y&gt;=-1 and myy-y&lt;=1)) then
			selfTurn(1)
		end
		if ((myy-y==-3) and (myx-x&gt;=-2 and myx-x&lt;=2)) then
			selfTurn(2)
		end
		if ((myy-y==3) and (myx-x&gt;=-2 and myx-x&lt;=2)) then
			selfTurn(0)
		end
		if ((myx-x==3) and (myy-y&gt;=-2 and myy-y&lt;=2)) then
			selfTurn(3)
		end
		if ((myx-x==-3) and (myy-y&gt;=-2 and myy-y&lt;=2)) then
			selfTurn(1)
		end
		if ((myy-y==-4) and (myx-x&gt;=-3 and myx-x&lt;=3)) then
			selfTurn(2)
		end
		if ((myy-y==4) and (myx-x&gt;=-3 and myx-x&lt;=3)) then
			selfTurn(0)
		end
		if ((myx-x==4) and (myy-y&gt;=-3 and myy-y&lt;=3)) then
			selfTurn(3)
		end
		if ((myx-x==-4) and (myy-y&gt;=-3 and myy-y&lt;=3)) then
			selfTurn(1)
		end
	end

  	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
end</pre></div></div></div>Tak gdzie są miasto np <div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 15em"><pre>	if msgcontains(msg, 'folda') then
			if pay(cid,50) then
			    selfSay('Let\'s go!')
				travel(cid,388, 400, 7 )
				focus = 0
				talk_start = 0
			else
				selfSay('Sorry, you don\'t have enough money.</pre></div></div></div>To Trzeba zmienić Gdzie cie teleportuje I Co trzeba Powiedzieć żeby nas teleportowało I za ile pieniedzy]]></description>
<pubDate>Czwartek 1 Maj</pubDate>
<comments>Czwartek 1 Maj</comments>
</item>
<item>
<title>Urozmaicenia I Dodatki Do twojej mapy</title>
<link>http://www.skrypty28.pun.pl/viewtopic.php?pid=19#p19</link>
<guid isPermaLink="false">19@http://www.skrypty28.pun.pl</guid>
<description><![CDATA[witam serdecznie.<br /><br />Na stronie <a href="http://www.otfans.net" target="_blank" rel="nofollow">www.otfans.net</a> znalazłem ciekawy temat, w którym użytkownicy dają swoje propozycje dotyczące urozmaicenia mapy.<br /><br />Bar nad bagnami<br /><img class="postimg" src="http://img.photobucket.com/albums/v228/Randall123/mapideas4.jpg" alt="http://img.photobucket.com/albums/v228/Randall123/mapideas4.jpg" /><br /><br />Farma<br /><img class="postimg" src="http://img.photobucket.com/albums/v228/Randall123/mapideas5.jpg" alt="http://img.photobucket.com/albums/v228/Randall123/mapideas5.jpg" /><br />Wilk trafiony strzałą przez myśliwego<br /><img class="postimg" src="http://img501.imageshack.us/img501/1753/cleverrq1.gif" alt="http://img501.imageshack.us/img501/1753/cleverrq1.gif" /><br />Ukryty dom pośród gór<br /><img class="postimg" src="http://img403.imageshack.us/img403/9136/rookpic3jc1.jpg" alt="http://img403.imageshack.us/img403/9136/rookpic3jc1.jpg" /><br />Temple W Górach<br /><img class="postimg" src="http://img522.imageshack.us/img522/2940/rookpic4uf9.jpg" alt="http://img522.imageshack.us/img522/2940/rookpic4uf9.jpg" /><br />Korzenie opuszczone po skale<br /><img class="postimg" src="http://img253.imageshack.us/img253/9674/rootsfu1.png" alt="http://img253.imageshack.us/img253/9674/rootsfu1.png" /><br />Inna świątynia W górach<br /><img class="postimg" src="http://i167.photobucket.com/albums/u158/Feriach/maps/UO0002-2.jpg" alt="http://i167.photobucket.com/albums/u158/Feriach/maps/UO0002-2.jpg" /><br /><br />Domki<br /><img class="postimg" src="http://img413.imageshack.us/img413/6493/entry1jw1.jpg" alt="http://img413.imageshack.us/img413/6493/entry1jw1.jpg" /><br />Piekło :P<br /><img class="postimg" src="http://img329.imageshack.us/img329/2415/pitsrr3.png" alt="http://img329.imageshack.us/img329/2415/pitsrr3.png" /><br />Dużo Wodospadów <br /><img class="postimg" src="http://img221.imageshack.us/img221/5165/asdvs1.jpg" alt="http://img221.imageshack.us/img221/5165/asdvs1.jpg" /><br />opuszczona świątynia na Bagnach<br /><img class="postimg" src="http://img174.imageshack.us/img174/811/motwyo7.png" alt="http://img174.imageshack.us/img174/811/motwyo7.png" />]]></description>
<pubDate>Czwartek 1 Maj</pubDate>
<comments>Czwartek 1 Maj</comments>
</item>
<item>
<title>[7.92]GM Island :)</title>
<link>http://www.skrypty28.pun.pl/viewtopic.php?pid=10#p10</link>
<guid isPermaLink="false">10@http://www.skrypty28.pun.pl</guid>
<description><![CDATA[Zawsze chcialem zeby na GM Island w moim ots nie dalo sie dostac jezeli jest sie graczem ani zeby nie trzeba bylo sie teleportowac za pomoca funckji /a . No wiec napisalem do tego skrypt. Dziala on tak ze sprawdza access gracza (czy ma ustawiony na 5), i jezeli sie zgadza to wysyla go na wyznaczone miejsce. Komenda brzmi: /island&quot;nick gracza . Zrobilem aby mozna bylo takze wysylac graczy ktorzy na to zasluzą lub cos :P<br />oto kod:<br /><br /><span style="font-size: 16px">1.</span>W <span style="color: blue">talkactions/scripts</span> tworzymy plik o nazwie <strong>island.lua</strong><br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 24em"><pre>function onSay(cid, words, param)
local gracz = getPlayerByName(param)
local island = {x=1016, y=1293, z=7}

if getPlayerAccess(cid) &gt;= 5 then
if isPlayer(gracz) &gt; 0 then
if words == &quot;/island&quot; then
doTeleportThing(gracz, island)
end
else
doPlayerSendCancel(cid,&quot;Player is not online.&quot;)
end
end
end</pre></div></div></div><span style="font-size: 16px">2.</span>W <strong>talkactions.xm</strong>l dodajemy linkjke:<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 4.5em"><pre>&lt;talkaction words=&quot;/island&quot; script=&quot;island.lua&quot; /&gt;</pre></div></div></div>]]></description>
<pubDate>Wtorek 4 Marzec</pubDate>
<comments>Wtorek 4 Marzec</comments>
</item>
<item>
<title></title>
<link>http://www.skrypty28.pun.pl/viewtopic.php?pid=9#p9</link>
<guid isPermaLink="false">9@http://www.skrypty28.pun.pl</guid>
<description><![CDATA[Działa to na takie zasadzie-Wasp(tzw.&quot;porządkowy&quot;), który po usłyszeniu przekleństwa pozostawia gracza z ilością życia równą 1. Gdy graczowi pozostanie 1hp, a nadal będzie używał nieprzyzwoitych słów-zostanie zabity :).<br /><br /><span style="font-size: 16px">1.</span>Tworzymy plik <strong>Wasp Security.xml</strong> w folderze <span style="color: blue">data/npc</span> i wklejamy to:<br /><br />&lt;?xml version=&quot;1.0&quot;?&gt;<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 10.5em"><pre>&lt;npc name=&quot;Wasp Security&quot; script=&quot;data/npc/scripts/wasphp.lua&quot; access=&quot;3&quot; lookdir=&quot;2&quot;&gt;
&lt;mana now=&quot;800&quot; max=&quot;800&quot;/&gt;
&lt;health now=&quot;200&quot; max=&quot;200&quot;/&gt;
&lt;look type=&quot;44&quot; head=&quot;20&quot; body=&quot;30&quot; legs=&quot;40&quot; feet=&quot;50&quot; corpse=&quot;2131&quot;/&gt;
&lt;/npc&gt;</pre></div></div></div><span style="font-size: 16px">2.</span>Nastepnie tworzymy plik <strong>wasphp.lua</strong> w <span style="color: blue">data/npc/scripts</span> i wklejamy to:<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 35em"><pre>-----NPC by Max Dragon-----

local focus = 0
local talk_start = 0
local target = 0
local following = false
local attacking = false

function onThingMove(creature, thing, oldpos, oldstackpos)

end


function onCreatureAppear(creature)

end


function onCreatureDisappear(cid, pos)

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*)kurw(%a*)')) 
	or (string.find(msg, '(%a*)dziwk(%a*)'))
 	or (string.find(msg, '(%a*)suk(%a*)')) 
	or (string.find(msg, '(%a*)debil(%a*)')) 
	or (string.find(msg, '(%a*)h**(%a*)')) 
	or (string.find(msg, '(%a*)spierd(%a*)')) 
	or (string.find(msg, '(%a*)jeb(%a*)')) 
	or (string.find(msg, '(%a*)pierdol(%a*)')) 
	or (string.find(msg, '(%a*)qrw(%a*)')) 
	or (string.find(msg, '(%a*)pizd(%a*)')) 
	or (string.find(msg, '(%a*)fuck(%a*)')) 
	or (string.find(msg, '(%a*)bitch(%a*)')) 
	or (string.find(msg, '(%a*)qurw(%a*)')) 
	and (focus == 0)) and getDistanceToCreature(cid) &lt; 8 then
  		selfSay('' .. creatureGetName(cid) ..' nie przeklinaj wiecej...!!')

hp = getPlayerHealth(cid)-1

mana = getPlayerMana(cid)



		doPlayerAddMana(cid,-mana)
		doPlayerAddHealth(cid,-hp)

	end

	if ((string.find(msg, '(%a*)kurw(%a*)')) 
	or (string.find(msg, '(%a*)dziwk(%a*)'))
 	or (string.find(msg, '(%a*)suk(%a*)')) 
	or (string.find(msg, '(%a*)debil(%a*)'))
	or (string.find(msg, '(%a*)h**(%a*)'))  
	or (string.find(msg, '(%a*)spierd(%a*)')) 
	or (string.find(msg, '(%a*)jeb(%a*)')) 
	or (string.find(msg, '(%a*)pierdol(%a*)')) 
	or (string.find(msg, '(%a*)qrw(%a*)')) 
	or (string.find(msg, '(%a*)pizd(%a*)')) 
	or (string.find(msg, '(%a*)fuck(%a*)')) 
	or (string.find(msg, '(%a*)bitch(%a*)')) 
	or (string.find(msg, '(%a*)qurw(%a*)')) 
	and (focus == 0)) and mana == 0 and hp &lt;= 1 and getDistanceToCreature(cid) &lt; 8 then
  		selfSay('' .. creatureGetName(cid) ..' nie przeklinaj wiecej...!!')

		
		doPlayerAddHealth(cid,-(hp+1))
		

		
  		focus = cid
  		talk_start = os.clock()
	end
end

function onCreatureChangeOutfit(creature)

end


function onThink()

	doNpcSetCreatureFocus(focus)
  	if (os.clock() - talk_start) &gt; 0 then

  	focus = 0
  	end

	if focus == 0 then
		randsay = math.random(1,60)
	
	if randsay == 1 then
			selfSay('Nie przeklinaj...')
	end
	if randsay == 2 then
		selfSay('Nie uzywaj wulgaryzmow...')
	end
	end
end</pre></div></div></div>Mam nadzieję że NPC komuś się przyda ;]<br />Pozdrawiam.]]></description>
<pubDate>PoniedziaĹek 3 Marzec</pubDate>
<comments>PoniedziaĹek 3 Marzec</comments>
</item>
<item>
<title></title>
<link>http://www.skrypty28.pun.pl/viewtopic.php?pid=8#p8</link>
<guid isPermaLink="false">8@http://www.skrypty28.pun.pl</guid>
<description><![CDATA[Witam.<br /><br />Kiedyś gdy zaczynałem bawić się (bo nic innego nie umiałem) ots'ami w mej głowie pojawił się pomysł zrobienia skryptu na krzesło elektryczne...<br />Ostatnio postanowiłem zrobić ots (tym razem rpg), niestety projekt ten raczej nie wypali... Jednak zrobiłem kilka skryptów i postanowiłem dodać najciekawszy z nich - krzesło elektryczne.<br /><br />Na początek będzie potrzebna nam taka sala:<br /><br /><img class="postimg" src="http://img247.imageshack.us/img247/1716/zaklllx8.png" alt="http://img247.imageshack.us/img247/1716/zaklllx8.png" /><br /><br /><br />Następnie tworzymy w ots\data\actions\scripts plik krzeslo.lua i wklejamy do niego następujący tekst:<br /><br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 35em"><pre>-- Krzeslo elektryczne zrobione przez Smoczek Leon --
-- Electric chair by Smoczek Leon --


function onUse(cid, item, frompos, item2, topos)

    if item.uid == 7666 and item.itemid == 1945 then
        player1pos = {x=330, y=355, z=12, stackpos=253}  -- pozycja krzesla
        player1 = getThingfromPos(player1pos)

        if player1.itemid &gt; 0 then
            player1heal = getPlayerHealth(player1.uid)
            player1mana = getPlayerMana(player1.uid)
            smierc = (player1mana) + (player1heal)
            skazany = getPlayerName(player1.uid)

            doPlayerAddHealth(player1.uid,-smierc)
            doSendMagicEffect(player1pos,11)
            doTransformItem(item.uid,item.itemid+1)
        else
            doPlayerSendCancel(cid,&quot;Nie ma kogo zabic :(&quot;)

        end


elseif item.uid == 7666 and item.itemid == 1946 then
    cialopos = {x=330, y=355, z=12, stackpos=2}  -- pozycja krzesla - nie zmieniaj czerwonego!
    cialo = getThingfromPos(cialopos)
    cialo2pos = {x=330, y=355, z=12, stackpos=1}  -- pozycja krzesla - nie zmieniaj czerwonego!
    cialo2 = getThingfromPos(cialo2pos)
    newpos = {x=332, y=355, z=12}  -- pozycja ciala po przeniesieniu
        doRemoveItem(cialo2.uid,1)
        doTeleportThing(cialo.uid,newpos) 
doTransformItem(item.uid,item.itemid-1)

    else
        return 0
       end

    return 1

end</pre></div></div></div>i dodajemy linijkę w actions.xml :<br /><br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 4.5em"><pre>&lt;action uniqueid=&quot;7666&quot; script=&quot;krzeslo.lua&quot; /&gt;</pre></div></div></div>A teraz skrypt wysyłający osoba na krzesło.<br />ots\data\talkactions\scripts execution.lua <br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 33em"><pre>-- Krzeslo elektryczne zrobione przez Smoczek Leon --
-- Electric chair by Smoczek Leon --


function onSay(cid, words, param)
skazany = getPlayerByName(param)
krzeslo = {x=330, y=355, z=12}

if getPlayerAccess(cid) &gt;= 1 then
if isPlayer(skazany) == 1 then
if words == &quot;execution&quot; then
doTeleportThing(skazany, krzeslo)
mayNotLogout(skazany, 10)
doPlayerSay(cid, &quot;Player &quot;..param..&quot; condemn to electric chair&quot;, 9)
end
else
doPlayerSendCancel(cid,&quot;Player is not online.&quot;)
end
end
end</pre></div></div></div>UWAGA!!! opcja mayNotLogout która nie pozwala się wylogować skazanemu jest tylko na devlandzie! Jeśli używasz innego silnika wklej ten skrypt:<br /><br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 35em"><pre>-- Krzeslo elektryczne zrobione przez Smoczek Leon --
-- Electric chair by Smoczek Leon --


local condition = createConditionObject(COMBAT_ENERGYDAMAGE)
addDamageCondition(condition, 20000, 3000, -0)

function onSay(cid, words, param)
skazany = getPlayerByName(param)
krzeslo = {x=330, y=355, z=12}

if getPlayerAccess(cid) &gt;= 1 then
if isPlayer(skazany) == 1 then
if words == &quot;execution&quot; then
doTeleportThing(skazany, krzeslo)
doTargetCombatCondition(0, skazany, condition, CONST_ME_NONE)
doPlayerSay(cid, &quot;Player &quot;..param..&quot; condemn to electric chair&quot;, 9)
end
else
doPlayerSendCancel(cid,&quot;Player is not online.&quot;)
end
end
end</pre></div></div></div>W&nbsp; talkactions.xml dodajemy linijke :<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 4.5em"><pre>&lt;talkaction words=&quot;execution&quot; script=&quot;execution.lua&quot; /&gt;</pre></div></div></div>I&nbsp; będzie działało to tak:<br /><br />GM/God/Tutor zauważył osobę która używa np mc albo tibie auto. Wpisuje execution &quot;nick_gracza i osoba ta jest teleportowana na krzesło. Następnie gm może dać wiadomość że zaraz odbędzie się egzekucja tego i tego zioma. Następnie ciągnie za czerwoną gałeczkę (Dog in the Fod:P). Skazany zostaje porażony prądem i umiera. Drugie pociągnięcie usunie krew z pod krzesła i przeteleportuje ciało na wybrane współrzędne]]></description>
<pubDate>PoniedziaĹek 3 Marzec</pubDate>
<comments>PoniedziaĹek 3 Marzec</comments>
</item>
<item>
<title>[8.x] [Movements] underwater system</title>
<link>http://www.skrypty28.pun.pl/viewtopic.php?pid=7#p7</link>
<guid isPermaLink="false">7@http://www.skrypty28.pun.pl</guid>
<description><![CDATA[Witam.<br /><br />Po dłuższej przerwie daje wam dość często poszukiwany skrypt - Underwater System. Nie jest to kolejny system typu &quot;function onStepIn(cid, item, pos) doPlaterAddHealth(cid,-20)&quot;.<br /><br />Pozwala nam zejść pod wodę jeśli mamy na sobie hełm, w przeciwnym wypadku cofa nas. Jeżeli jednak ktoś uzna że hełm jest za ciężki i zdejmie go pod wodą nie może liczyć na to że nie straci hp. Skrypt sprawdza co jakiś czas czy player jest pod wodą i ma na sobie hełm. Jeśli hełmu brak, player ginie powolną śmiercią od utopienia.<br /><br />Opcje:<br />zpos to pozycja &quot;z&quot; podwodnego świata,<br />dir to kierunek w którym zostanie przepchnięty gracz jeśli nie ma hełmu,<br />damage to obrażenia od topnienia się,<br />turn to czas w jakim obrażenia są zadawane,<br />underwaterground to id podwodnych podług (jeśli pod woda dodajesz jakieś inne podłoża dodaj tam ich id).<br /><br />A teraz obrazek który pokazuje jak ma wyglądać zejście i jego atrybuty: <br /><img class="postimg" src="http://img471.imageshack.us/img471/1654/underwatervb2.png" alt="http://img471.imageshack.us/img471/1654/underwatervb2.png" /><br /><br />ots/data/movements/script underwatersystem.lua <br /><br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 35em"><pre>-- Podwodny system zrobiony przez Smoczek Leon --
-- Underwater System by Smoczek Leon --

-- options --
local zpos = 8
local dir = north
local damage = 20
local underwaterground = {5405, 5406, 5407, 5408, 5409, 5410, 5743, 5744}
local turn = 5
-- options --

function drownTurn(u)
local player = getPlayerByName(u.name)
local playerpos = getPlayerPosition(player)
local ground = getThingfromPos({x=playerpos.x, y=playerpos.y, z=playerpos.z, stackpos = 0})
if isInArray(underwaterground, ground.itemid)== TRUE then
doSendMagicEffect(playerpos,CONST_ME_BUBBLES)
addEvent(drownTurn, turn*1000, u)
   if getPlayerSlotItem(player,1).itemid ~= 5461 then 
   doPlayerAddHealth(player,-damage)
   doSendAnimatedText(playerpos,damage,TEXTCOLOR_LIGHTBLUE)
   else
   end
else
end
end

function onStepIn(cid, item, pos)
if getPlayerSlotItem(cid,1).itemid == 5461 then 
underpos = {x=pos.x, y=pos.y, z=zpos} 
doTeleportThing(cid,underpos)
u = {name = getPlayerName(cid)}
addEvent(drownTurn, turn*1000, u)
else 
doMoveCreature(cid,dir)
end
end</pre></div></div></div>ots/data/movements Movements.xml<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 4.5em"><pre>&lt;movevent event=&quot;StepIn&quot; actionid=&quot;4554&quot; script=&quot;underwatersystem.lua&quot; /&gt;</pre></div></div></div>]]></description>
<pubDate>PoniedziaĹek 3 Marzec</pubDate>
<comments>PoniedziaĹek 3 Marzec</comments>
</item>
<item>
<title>[8.0]Balista ;]</title>
<link>http://www.skrypty28.pun.pl/viewtopic.php?pid=5#p5</link>
<guid isPermaLink="false">5@http://www.skrypty28.pun.pl</guid>
<description><![CDATA[1. Wchodzimy <span style="color: blue">data/actions.xml</span> i wklejamy tam to:<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 9em"><pre>&lt;action itemid=&quot;5692&quot; script=&quot;ballista.lua&quot;/&gt;
&lt;action itemid=&quot;5695&quot; script=&quot;ballista.lua&quot;/&gt;
&lt;action itemid=&quot;5698&quot; script=&quot;ballista.lua&quot;/&gt;
&lt;action itemid=&quot;5701&quot; script=&quot;ballista.lua&quot;/&gt;</pre></div></div></div>2. Następne wchodzimy w <span style="color: blue">data/actions/scripts/ballista.lua</span><br />i wklejamy to:<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 28.5em"><pre>function onUse(cid, item, frompos, item2, topos)
if item.itemid == 5692 then
pozx = 0
pozy = -6
elseif item.itemid == 5695 then
pozx = 0
pozy = 6
elseif item.itemid == 5698 then
pozx = -8
pozy = 1
elseif item.itemid == 5701 then
pozx = 8
pozy = -1
end
doSendDistanceShoot(frompos, {x = frompos.x + pozx, y = frompos.y + pozy, z = frompos.z}, 1)
return TRUE
end</pre></div></div></div>To tyle ;].Po użyciu przedmiotów o ID<br />5692,5695,5698,5671 będzie się pojawiał realistyczny strzał w kierunku w którym skierowana jest balista ;].]]></description>
<pubDate>PoniedziaĹek 3 Marzec</pubDate>
<comments>PoniedziaĹek 3 Marzec</comments>
</item>
<item>
<title>Sprite Wand</title>
<link>http://www.skrypty28.pun.pl/viewtopic.php?pid=4#p4</link>
<guid isPermaLink="false">4@http://www.skrypty28.pun.pl</guid>
<description><![CDATA[Robimy w data/weapons/skrypty Plik lua o nazwie Spritewand i wklejamy to : <br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 15em"><pre>local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -80, 0, -125)

function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end</pre></div></div></div>potem w data/weapons/weapons.xml dodajemy taką linijke<br /><br /><br /><br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 4.5em"><pre>&lt;wand id=&quot;2453&quot; range=&quot;10&quot; lvl=&quot;100&quot; mana=&quot;0&quot; enabled=&quot;1&quot; exhaustion=&quot;0&quot; script=&quot;spritewand.lua&quot;&gt;&lt;vocation id=&quot;1&quot;/&gt;&lt;vocation id=&quot;2&quot;/&gt;&lt;vocation id=&quot;5&quot;/&gt;&lt;vocation id=&quot;6&quot;/&gt;&lt;/wand&gt;</pre></div></div></div>Jak by coś nie działało to zmiencie nazwet z arcane staff na Sprite wand w data/items/items.xml]]></description>
<pubDate>PoniedziaĹek 3 Marzec</pubDate>
<comments>PoniedziaĹek 3 Marzec</comments>
</item>
<item>
<title>[8.x] Ghazbaran</title>
<link>http://www.skrypty28.pun.pl/viewtopic.php?pid=3#p3</link>
<guid isPermaLink="false">3@http://www.skrypty28.pun.pl</guid>
<description><![CDATA[Dziś wam podam skrypta na bosa z real Tibi- Ghazbarana.<br /><br />W data/monster tworzymy plik o nazwie ghazbaran.xml, po czym edytujemy go i wklejamy to:<br /><br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 35em"><pre>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;monster name=&quot;Ghazbaran&quot; tp=&quot;1&quot; nameDescription=&quot;Ghazbaran&quot; race=&quot;blood&quot; experience=&quot;45000&quot; speed=&quot;410&quot; manacost=&quot;0&quot;&gt;
    &lt;health now=&quot;35000&quot; max=&quot;35000&quot;/&gt;
    &lt;look type=&quot;12&quot; head=&quot;20&quot; body=&quot;25&quot; legs=&quot;40&quot; feet=&quot;50&quot; corpse=&quot;5995&quot;/&gt;
    &lt;targetchange interval=&quot;60000&quot; chance=&quot;0&quot;/&gt;
    &lt;strategy attack=&quot;100&quot; defense=&quot;0&quot;/&gt;
    &lt;flags&gt;
      &lt;flag summonable=&quot;0&quot;/&gt;
      &lt;flag attackable=&quot;1&quot;/&gt;
      &lt;flag hostile=&quot;1&quot;/&gt;

      &lt;flag illusionable=&quot;0&quot;/&gt;
      &lt;flag convinceable=&quot;0&quot;/&gt;
      &lt;flag pushable=&quot;0&quot;/&gt;
      &lt;flag canpushitems=&quot;1&quot;/&gt;
      &lt;flag canpushcreatures=&quot;1&quot;/&gt;
      &lt;flag staticattack=&quot;80&quot;/&gt;
      &lt;flag targetdistance=&quot;1&quot;/&gt;
      &lt;flag runonhealth=&quot;0&quot;/&gt;
    &lt;/flags&gt;
  &lt;attacks&gt;
      &lt;attack name=&quot;melee&quot; interval=&quot;2000&quot; skill=&quot;120&quot; attack=&quot;130&quot;/&gt;
      &lt;attack name=&quot;manadrain&quot; interval=&quot;1000&quot; chance=&quot;17&quot; range=&quot;7&quot; min=&quot;-35&quot; max=&quot;-275&quot;/&gt;
      &lt;attack name=&quot;fire&quot; interval=&quot;3000&quot; chance=&quot;34&quot; range=&quot;7&quot; radius=&quot;7&quot; target=&quot;1&quot; min=&quot;-180&quot; max=&quot;-380&quot;&gt;
        &lt;attribute key=&quot;shootEffect&quot; value=&quot;fire&quot;/&gt;
        &lt;attribute key=&quot;areaEffect&quot; value=&quot;firearea&quot;/&gt;
      &lt;/attack&gt;
      &lt;attack name=&quot;fire&quot; interval=&quot;2000&quot; chance=&quot;34&quot; range=&quot;7&quot; radius=&quot;3&quot; target=&quot;1&quot; min=&quot;-120&quot; max=&quot;-230&quot;&gt;
        &lt;attribute key=&quot;shootEffect&quot; value=&quot;fire&quot;/&gt;
        &lt;attribute key=&quot;areaEffect&quot; value=&quot;firearea&quot;/&gt;
      &lt;/attack&gt;
  &lt;attack name=&quot;melee&quot; interval=&quot;3000&quot; chance=&quot;40&quot; range=&quot;7&quot; radius=&quot;1&quot; target=&quot;0&quot; min=&quot;-55&quot; max=&quot;-2005&quot;&gt;
    &lt;attribute key=&quot;areaEffect&quot; value=&quot;blackspark&quot;/&gt;
  &lt;/attack&gt;
      &lt;attack name=&quot;physical&quot; interval=&quot;1000&quot; chance=&quot;15&quot; range=&quot;7&quot; min=&quot;-140&quot; max=&quot;-220&quot;&gt;
        &lt;attribute key=&quot;shootEffect&quot; value=&quot;spear&quot;/&gt;
      &lt;/attack&gt;
  &lt;/attacks&gt;
 
    &lt;defenses armor=&quot;32&quot; defense=&quot;35&quot;&gt;
      &lt;defense name=&quot;healing&quot; interval=&quot;1000&quot; chance=&quot;25&quot; min=&quot;60&quot; max=&quot;100&quot;&gt;
        &lt;attribute key=&quot;areaEffect&quot; value=&quot;blueshimmer&quot;/&gt;
      &lt;/defense&gt;
      &lt;defense name=&quot;plinkvis&quot; interval=&quot;2000&quot; chance=&quot;30&quot; duration=&quot;5000&quot;&gt;
        &lt;attribute key=&quot;areaEffect&quot; value=&quot;blueshimmer&quot;/&gt;
      &lt;/defense&gt;
    &lt;/defenses&gt;
    &lt;immunities&gt;
      &lt;immunity physical=&quot;0&quot;/&gt;
      &lt;immunity energy=&quot;1&quot;/&gt;
      &lt;immunity fire=&quot;1&quot;/&gt;
      &lt;immunity poison=&quot;1&quot;/&gt;
      &lt;immunity lifedrain=&quot;1&quot;/&gt;
      &lt;immunity paralyze=&quot;1&quot;/&gt;
      &lt;immunity outfit=&quot;1&quot;/&gt;
      &lt;immunity drunk=&quot;1&quot;/&gt;
      &lt;immunity invisible=&quot;1&quot;/&gt;
    &lt;/immunities&gt;
    &lt;summons max=&quot;1&quot;&gt;
      &lt;summon name=&quot;deathslicer&quot; interval=&quot;1000&quot; chance=&quot;3000&quot;/&gt;
    &lt;/summons&gt;
    &lt;voices interval=&quot;5000&quot; chance=&quot;10&quot;&gt;
      &lt;voice sentence=&quot;I AM HERE TO CHELLANGE YOU ALL!&quot;/&gt;
      &lt;voice sentence=&quot;I AM GHAZBARAN OF THE TRINGLE....&quot;/&gt;
    &lt;/voices&gt;
  &lt;loot&gt;
  &lt;item id=&quot;2160&quot; chance=&quot;100000&quot; countmax=&quot;3&quot; /&gt;
  &lt;item id=&quot;2183&quot; chance=&quot;1538&quot; /&gt;
  &lt;item id=&quot;1987&quot; chance=&quot;100000&quot; &gt; -- bag
  &lt;inside&gt;
      &lt;item id=&quot;7431&quot; chance=&quot;3333&quot; /&gt;
      &lt;item id=&quot;7390&quot; chance=&quot;2800&quot; /&gt;
      &lt;item id=&quot;7438&quot; chance=&quot;3333&quot; /&gt; -- Golden Bow
      &lt;item id=&quot;7367&quot; chance=&quot;100000&quot; countmax=&quot;5&quot; /&gt;
      &lt;item id=&quot;2112&quot; chance=&quot;4000&quot; /&gt;
  &lt;/inside&gt;
  &lt;/item&gt;
  &lt;/loot&gt;
  &lt;/monster&gt;</pre></div></div></div>Później do monsters.xml edytując wklejamy tą Linijkę :<br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 4.5em"><pre>&lt;monster name=&quot;Ghazbaran&quot; file=&quot;Ghazbaran.xml&quot; /&gt;</pre></div></div></div>]]></description>
<pubDate>Niedziela 2 Marzec</pubDate>
<comments>Niedziela 2 Marzec</comments>
</item>
<item>
<title>[8.1]Manaruna + Npc</title>
<link>http://www.skrypty28.pun.pl/viewtopic.php?pid=2#p2</link>
<guid isPermaLink="false">2@http://www.skrypty28.pun.pl</guid>
<description><![CDATA[W data/actions/scripts/ tworzymy manarune.lua<br /><br />I Wklejamy To :<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)

local MagicLevelToUse = 2

local MaxManaToAdd = 200
local MinManaToAdd = 100

local mLvl = getPlayerMagLevel(cid)
local ManaToAdd = math.random(MinManaToAdd, MaxManaToAdd)

if item2.itemid == 1 and mLvl &gt;= MagicLevelToUse then
     if item.type &gt; 1 then
          doSendMagicEffect(frompos,1)
          doPlayerAddMana(cid,ManaToAdd)
          doPlayerSay(cid,&quot;Ahhh...&quot;,17)  --doCreatureSay()--
          doChangeTypeItem(item.uid,item.type-1)
     else
          doRemoveItem(item.uid,1)
     end
elseif item2.itemid &gt;= 2 then
       doPlayerSendCancel(cid,&quot;You can only use this rune on you/on other players.&quot;)
       doSendMAgicEffect(frompos,2)
elseif item2.itemid == 1 and mLvl &lt; MagicLevelToUse then
          doSendMagicEffect(frompos,2)
          doPlayerSendCancel(cid,&quot;You don't have enough magic level to use this rune.&quot;)
end
  return true
end</pre></div></div></div>2 - magic level do użycia runki<br />200 - max mana dodawana<br />100 - min mana dodawana<br />Ahhh... - text jaki wypowiada gracz<br /><br /><br /><br />Więcej - nie zmieniac! xD<br /><br />data/actions/actions.xml<br /><br />dodajemy linijkę:<br /><br /><br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 4.5em"><pre>&lt;action itemid=&quot;2270&quot; script=&quot;manarune.lua&quot;  /&gt;</pre></div></div></div>ID (wygląd) runy. Można zastosowac każde, dosłownie każde! Może to byc lód truskawkowy czy nawet miś z annihilatora (Spis ID mamy w pliku items.xml (data/items/))<br /><br /><br />No i jeszcze obiecany NPC.<br /><br />W data/npc/scripts/ znajdujemy runes.lua<br /><br />tam pod <br /><br /><br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 15em"><pre>elseif msgcontains(msg, 'explosion') then
            buy(cid,2313,5,90)

        elseif msgcontains(msg, 'sd') then
            buy(cid,2268,5,100)

        elseif msgcontains(msg, 'blank') then
            buy(cid,2260,1,5)</pre></div></div></div>doklejamy:<br /><br /><br /><br /><div class="codebox"><div class="incqbox"><h4>Kod:</h4><div class="scrollbox" style="height: 6em"><pre>elseif msgcontains(msg, 'manarune') then
            buy(cid,2270,5,55)</pre></div></div></div>Manarune - co trzeba powiedziec, zeby kupic runke<br />2270 - ID runki - jak zmienialiscie w actions, tu też musicie<br />5 - ilośc użyc w runce<br />55 - cena za jedno użycie (chyba - jeśli nie, to cena za tyle użyc, ile jest ustawione)]]></description>
<pubDate>Niedziela 2 Marzec</pubDate>
<comments>Niedziela 2 Marzec</comments>
</item>
</channel>
</rss>
