Skocz do zawartości

Jak zmienić MAX REBORN?


Nygulka

Rekomendowane odpowiedzi

Tak jak w temacie,

reborn.lua

Cytat

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('?????.')
          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('Witaj! Wpisz {Reborn}.')
            focus = cid
            talk_start = os.clock()
        

      elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
          selfSay('Przepraszam, ' .. getCreatureName(cid) .. '! Czesc!.')

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

if msgcontains(msg, 'reborn') and getPlayerStorageValue(cid,30023) == 1 then
                selfSay('Jestes juz po rebie!')
            focus = 0
            talk_start = 0

            elseif msgcontains(msg, 'reborn') and getPlayerLevel(cid) < 300 and getPlayerStorageValue(cid,30023) ~= -1 then
                    selfSay('Musisz miec wiekszy level niz 300!')


            elseif msgcontains(msg, 'reborn') then
                    selfSay('Are you sure?')
                                 talk_state = 2

                       elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 300 and getPlayerVocation(cid) == 6 then
setPlayerStorageValue(cid,30023,1)
            doReborn(cid, 1, 42, 82)
talk_state = 0

    elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 300 and getPlayerVocation(cid) == 50 then
setPlayerStorageValue(cid,30023,1)
            doReborn(cid, 1, 42, 87)    
talk_state = 0

    elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 300 and getPlayerVocation(cid) == 51 then
setPlayerStorageValue(cid,30023,1)
            doReborn(cid, 1, 42, 92)    
talk_state = 0

    elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 300 and getPlayerVocation(cid) == 52 then
setPlayerStorageValue(cid,30023,1)
            doReborn(cid, 1, 42, 97)    
talk_state = 0

    elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 300 and getPlayerVocation(cid) == 53 then
setPlayerStorageValue(cid,30023,1)
            doReborn(cid, 1, 42, 112)    
talk_state = 0

    elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 300 and getPlayerVocation(cid) == 54 then
setPlayerStorageValue(cid,30023,1)
            doReborn(cid, 1, 42, 102)    

    elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 300 and getPlayerVocation(cid) == 55 then
setPlayerStorageValue(cid,30023,1)
            doReborn(cid, 1, 42, 107)    

    elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 300 and getPlayerVocation(cid) == 56 then
setPlayerStorageValue(cid,30023,1)
            doReborn(cid, 1, 42, 117)    

    elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 300 and getPlayerVocation(cid) == 63 then
setPlayerStorageValue(cid,30023,1)
            doReborn(cid, 1, 42, 122)    

    elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 300 and getPlayerVocation(cid) == 74 then
setPlayerStorageValue(cid,30023,1)
            doReborn(cid, 1, 42, 127)    

    elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 300 and getPlayerVocation(cid) == 81 then
setPlayerStorageValue(cid,30023,1)
            doReborn(cid, 1, 42, 132)    

    elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 300 and getPlayerVocation(cid) == 143 then
setPlayerStorageValue(cid,30023,1)
            doReborn(cid, 1, 42, 144)    

    elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 300 and getPlayerVocation(cid) == 155 then
setPlayerStorageValue(cid,30023,1)
            doReborn(cid, 1, 42, 156)

    elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 300 and getPlayerVocation(cid) == 171 then
setPlayerStorageValue(cid,30023,1)
            doReborn(cid, 1, 42, 172)

elseif msgcontains(msg, 'yes') and talk_state == 2 then
selfSay('Przepraszam, ' .. getCreatureName(cid) .. '! Musisz byc w 4 formie!.')


        elseif msgcontains(msg, 'bye') and getDistanceToCreature(cid) < 4 then
            selfSay('Do Widzenia!')
            focus = 0
            talk_start = 0
        end
    end
end

function onThink()
    doNpcSetCreatureFocus(focus)
      if (os.clock() - talk_start) > 45 then
          if focus > 0 then
              selfSay('Nastepny prosze (:')
          end
              focus = 0
      end
     if focus ~= 0 then
         if getDistanceToCreature(focus) > 5 then
             selfSay('Zatem Do Wiedzenia (:')
             focus = 0
         end
     end
end
 

 

Odnośnik do komentarza
1 minutę temu, rafaeru napisał:

pod


elseif msgcontains(msg, 'reborn') and getPlayerLevel(cid) < 300 and getPlayerStorageValue(cid,30023) ~= -1 then
                    selfSay('Musisz miec wiekszy level niz 300!')
                                                              

dodac elseif sprawdzajacy twoj lvl i zeby byl nie wiekszy niz max reborn

gdzie mam to wklepac sorry mam downa :D

10 minut temu, rafaeru napisał:

pod


elseif msgcontains(msg, 'reborn') and getPlayerLevel(cid) < 300 and getPlayerStorageValue(cid,30023) ~= -1 then
                    selfSay('Musisz miec wiekszy level niz 300!')
                                                              

dodac elseif sprawdzajacy twoj lvl i zeby byl nie wiekszy niz max reborn

to znaczy mozna tak zrobic ze jak ktos ma lvl np, 5k to nie moze przekroczyc liczby 5 tys

Odnośnik do komentarza

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

  • Ostatnio przeglądający forum Jak zmienić MAX REBORN?   0 użytkowników
    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...