Married system 7.6

Status
Zamknięty.

enom

Active User
Zarejestrowany
Dołączył
Maj 13, 2009
Posty
112
Liczba reakcji
1
Witam!
Poszukuj? Married system 7.6 albo kogo? kto by go napisa?.
Gadu - Gadu 995374 cz?sto nie widoczny.
 
Odp: Married system 7.6

na 7.6 chyba nie dzia?a....
 
Odp: Married system 7.6

@up nie dzia?a ?
Oczywi?cie ?e jest a co do tematu to Married System jest w Power OTS
O ile si? nie myl? ten OTS jest na otibia.net
 
Odp: Married system 7.6

A masz mo?e link do tego OTS ? Bardzo bym prosi?
Dam reputa +
 
Odp: Married system 7.6

Married system ?lub?w ?

W npc utw?rz plik Ksiadz.xml a w nim:

PHP:
<?xml version="1.0"?>
<npc name="Ksiadz" script="data/npc/scripts/ksia.lua" access="3">
	<look type="57" head="20" body="30" legs="40" feet="50"/>
</npc>

P?zniej w folderze NPC scripts a tam tworzysz plik ksia.lua a w nim:

PHP:
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('Dowidzenia.')
          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*)')
or string.find(msg, '(%a*)siema(%a*)')
or string.find(msg, '(%a*)czesc(%a*)')
or string.find(msg, '(%a*)cze(%a*)')
or string.find(msg, '(%a*)yo(%a*)')
or string.find(msg, '(%a*)elo(%a*)'))
and (focus == 0)) and getDistanceToCreature(cid) < 4 then

rsay = math.random(1,4)
if rsay == 1 then says = 'Witajcie kochane dzieci.'
elseif rsay == 2 then says = 'Witajcie kochane dzieci.'
elseif rsay == 3 then says = 'Witajcie kochane dzieci.'
elseif rsay == 4 then says = 'Witajcie kochane dzieci.'
end

  		selfSay('Witaj ' .. creatureGetName(cid) .. '. Niech bedzie pochwalony. Jestem ksiedzem i udzielam slub?w. Chcesz sie dowidziec cos o tym napisz "info".')
  		focus = cid
  		talk_start = os.clock()

	elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
  		selfSay('Poczekaj ' .. creatureGetName(cid) .. '. Cierpliwosci moje Drogie dzieci .')  	elseif focus == cid then
		talk_start = os.clock()		

		if msgcontains(msg, 'slub') then
  			selfSay('Czy Ty, ' .. creatureGetName(cid) .. ' bierzesz sobie tego oto gracza za zone/meza i slubujesz jej/jemu tibijska milosc, wiernosc i uczciwosc malzenska, oraz ze  nie opuscisz jej/jego az do rozwiazania CafeOTS?. ')

		elseif msgcontains(msg, 'tak') then
  			selfSay('Oglaszam Was wiec tibijskim malzenstwem - jestescie juz mezem/zona.Pan mlody moze teraz pocalowac panne mloda.')


		elseif msgcontains(msg, 'info') then
  			selfSay('Aby rozpoczac slub napisz "slub". Zeby slub byl powazny kazdy z Was musi powiedziec "tak" tak wiec jak on/ona skonczy mowic zegna sie z ksiedzem "bye" i druga osoba przystepuje do slubu "hi". Najlepiej jak by zaczela mowic ona.')
















  		elseif string.find(msg, '(%a*)bye(%a*)')  and getDistanceToCreature(cid) < 4 then
  			selfSay('Szczesc boze mlodej parze. ' .. creatureGetName(cid) .. '!')
  			focus = 0
  			talk_start = 0
  		end
  	end
end


function onCreatureChangeOutfit(creature)

end



function onThink()
if (os.clock() - talk_start) > 30 then
if focus > 0 then
selfSay('Prosze nastepnych do slubu.')
end
focus = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 5 then
selfSay('B?g z Wami..')
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 >= 5 then
nx = cx
ny = cy
end
moveToPosition(nx, ny, cz)
--summons = 30
--summons2 = 30
end
end
 
Status
Zamknięty.
Back
Do góry