Reklama
Pokazuje wyniki od 1 do 2 z 2

Temat: NPC Reborn Tibia 8.1

  1. #1
    cyborg19

    Domyślny NPC Reborn Tibia 8.1

    Npc Reborn sama nazwa mówi za siebie, wiec nie ma co tłumaczyć

    Zaczynamy!!


    Robimy Npc data/npc/... o nazwie "Reborn" i wklejamy tam to:

    Kod:
    <?xml version="1.0"?>
    
    <npc name="Reborn" script="data/npc/scripts/reborn.lua" access="3" lookdir="2" autowalk="25">
    	<mana now="800" max="800"/>
    	<health now="200" max="200"/>
    <look type="266" head="114" body="119" legs="132" feet="114" addons="3" />
    </npc>

    Teraz Wchodzimy w data/npc/scripts i tworzymy plik o nazwie reborn

    Wklejamy do niego to:
    Kod:
    local focus = 0
    local talk_start = 0
    local target = 0
    local days = 0
    
    function onThingMove(creature, thing, oldpos, oldstackpos)
    
    end
    
    
    function onCreatureAppear(creature)
    
    end
    
    
    function onCreatureDisappear(cid, pos)
      	if focus == cid then
              selfSay('Nara Frajerze')
              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) < 4 then
     		selfSay('Witam ' .. creatureGetName(cid) .. '! Witam U Mnie Mozesz Zdobyc Reborna [reborn]')
     		focus = cid
     		talk_start = os.clock()
    
    	elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
      		selfSay('Przepraszam, ' .. creatureGetName(cid) .. '! poczekaj minutke')
    
      	elseif focus == cid then
    		talk_start = os.clock()
    
    		if msgcontains(msg, 'reborn') or msgcontains(msg, 'promote') then
     			if getPlayerVocation(cid) > 13 then
     				selfSay('Przepraszam ale ty juz masz reborna')
     				talk_state = 0
     			elseif getPlayerLevel(cid) < 500000 then
    				selfSay('Musisz Miec 500klvl zeby zrobic reborna')
    				talk_state = 0
    			elseif not isPremium(cid) then
    				selfSay('Chcesz Reborna?')
    				talk_state = 0
    			else
    				selfSay('Chcesz Reborna?')
    				talk_state = 1
    			end
    
    		elseif talk_state == 1 then
    			if msgcontains(msg, 'yes') then
    				if pay(cid,20000) then
    					doPlayerSetVocation(cid, getPlayerVocation(cid)+4)
    					selfSay('Otrzymales Reborna')
    				else
    					selfSay(Nie Posiadasz Kasy')
    				end
     			end
    			talk_state = 0
    
    		elseif talk_state == 2 then
    			if msgcontains(msg, 'yes') then
    				if pay(cid,7000) then
    					selfSay('/premium '.. creatureGetName(cid) ..', 7')
    					selfSay('You have 7 days of premium more!')
    				else
    					selfSay('Sorry, you do not have enough money.')
    				end
    			end
    			talk_state = 0
    
      		elseif msgcontains(msg, 'bye')  and getDistanceToCreature(cid) < 4 then
      			selfSay('Good bye, ' .. creatureGetName(cid) .. '!')
      			focus = 0
      			talk_start = 0
      		end
      	end
    end
    
    
    function onCreatureChangeOutfit(creature)
    
    end
    
    
    function onThink()
    	doNpcSetCreatureFocus(focus)
      	if (os.clock() - talk_start) > 30 then
      		if focus > 0 then
      			selfSay('Nastepny Prosze')
      		end
      			focus = 0
      	end
     	if focus ~= 0 then
     		if getDistanceToCreature(focus) > 5 then
     			selfSay('Good bye then.')
     			focus = 0
     		end
     	end
    end
    Żeby Reborn Zadziałał Trzeba wejśc w data/vocations
    i Na Samym Dole Wklejamy Tam To:


    Kod:
    <vocation id="12" name="Reborn 1 Knight" description="Reborn 1 Knight" gaincap="25" gainhp="150" gainmana="50" gainhpticks="2" gainhpamount="10" gainmanaticks="4" gainmanaamount="100" gainsoulticks="15" gainsoulamount="1" manamultiplier="3.0" attackspeed="250" prevoc="4" basespeed="220">
    	<diepercent experience="17" magic="17" skill="17" equipment="7" container="100"/>
    	<formula damage="5.2" defense="5.1" armor="5.1"/>
    	<skill id="0" multiplier="1.1"/>
    	<skill id="1" multiplier="1.1"/>
    	<skill id="2" multiplier="1.1"/>
    	<skill id="3" multiplier="1.1"/>
    	<skill id="4" multiplier="1.4"/>
    	<skill id="5" multiplier="1.1"/>
    	<skill id="6" multiplier="1.1"/>
    </vocation>
    <vocation id="10" name="Reborn 1 Druid" description="a Reborn 1 Druid" gaincap="10" gainhp="30" gainmana="90" gainhpticks="60000000" gainhpamount="1000000" gainmanaticks="4000000" gainmanaamount="5000000" gainsoulticks="120" gainsoulamount="1" maxsoul="100" manamultiplier="1.1" attackspeed="600" prevoc="2" basespeed="220">
    	<diepercent experience="7" magic="7" skill="20" equipment="7" container="100"/>
    	<formula damage="5.2" defense="5.1" armor="6.1"/>
    	<skill id="0" multiplier="2.5"/>
    	<skill id="1" multiplier="2.8"/>
    	<skill id="2" multiplier="2.8"/>
    	<skill id="3" multiplier="1.8"/>
    	<skill id="4" multiplier="2.8"/>
    	<skill id="5" multiplier="2.5"/>
    	<skill id="6" multiplier="2.1"/>
    </vocation>
    <vocation id="11" name="Reborn 1 Sorcerer" description="a Reborn 1 Sorcerer" gaincap="10" gainhp="30" gainmana="90" gainhpticks="60000000" gainhpamount="1000000" gainmanaticks="4000000" gainmanaamount="5000000" gainsoulticks="120" gainsoulamount="1" maxsoul="100" manamultiplier="1.1" attackspeed="600" prevoc="2" basespeed="220">
    	<diepercent experience="7" magic="7" skill="20" equipment="7" container="100"/>
    	<formula damage="5.2" defense="5.1" armor="6.1"/>
    	<skill id="0" multiplier="2.5"/>
    	<skill id="1" multiplier="2.8"/>
    	<skill id="2" multiplier="2.8"/>
    	<skill id="3" multiplier="1.8"/>
    	<skill id="4" multiplier="2.8"/>
    	<skill id="5" multiplier="2.5"/>
    	<skill id="6" multiplier="2.1"/>
    </vocation>
    <vocation id="14" name="Reborn 1 Pall" description="a Reborn 1 Pall" gaincap="10" gainhp="30" gainmana="90" gainhpticks="60000000" gainhpamount="1000000" gainmanaticks="4000000" gainmanaamount="5000000" gainsoulticks="120" gainsoulamount="1" maxsoul="100" manamultiplier="1.1" attackspeed="600" prevoc="2" basespeed="220">
    	<diepercent experience="7" magic="7" skill="20" equipment="7" container="100"/>
    	<formula damage="5.2" defense="5.1" armor="6.1"/>
    	<skill id="0" multiplier="2.5"/>
    	<skill id="1" multiplier="2.8"/>
    	<skill id="2" multiplier="2.8"/>
    	<skill id="3" multiplier="1.8"/>
    	<skill id="4" multiplier="2.8"/>
    	<skill id="5" multiplier="2.5"/>
    	<skill id="6" multiplier="2.1"/>
    </vocation>
    Skrypt By Me... Cyborg19
    Testowany na Evo by Kapic
    Skrypt jest Przystosowany pod dużego expa!!
    Ostatnio zmieniony przez cyborg19 : 26-09-2011, 19:15

  2. #2
    krystian018

    Domyślny Reborn 8.1

    Dziala ten Reborn ? prosilbym o odp ;)
    pozdrawiam jestem nowy :)

  3. Reklama
Reklama

Informacje o temacie

Użytkownicy przeglądający temat

Aktualnie 1 użytkowników przegląda ten temat. (0 użytkowników i 1 gości)

Podobne tematy

  1. Heroes: reborn
    Przez moth w dziale Filmy, seriale i telewizja
    Odpowiedzi: 4
    Ostatni post: 07-02-2015, 13:43
  2. Dragon Ball Reborn (OTS) - start 30 czerwca
    Przez DjSeban w dziale Tematy serwerów
    Odpowiedzi: 13
    Ostatni post: 07-02-2015, 10:43
  3. Final Fantasy XIV: A Realm Reborn
    Przez Hail Galana w dziale Inne gry
    Odpowiedzi: 21
    Ostatni post: 31-01-2015, 21:34
  4. [7.6] Akademicki OTS - reborn!
    Przez Maggio w dziale Tematy serwerów
    Odpowiedzi: 33
    Ostatni post: 18-07-2014, 18:35
  5. Odpowiedzi: 2
    Ostatni post: 29-03-2014, 09:49

Zakładki

Zakładki

Zasady postowania

  • Nie możesz pisać nowych tematów
  • Nie możesz pisać postów
  • Nie możesz używać załączników
  • Nie możesz edytować swoich postów
  •