-PHP & JS Poszukuje

Status
Zamknięty.

kubix1510

User
Zarejestrowany
Dołączył
Kwiecień 23, 2015
Posty
13
Liczba reakcji
0
Witam poszukuje skryptu na Reborn Level, ?eby pokazywa?o w highscores na jakim lvl zrobi?a dana posta? reborna.
Za pomoc Rep.
 
Odp: Poszukuje

wrzu? na forum pliki lua od reborna, kto Ci zgadnie jak masz napisany skrypcik?
 
Odp: Poszukuje

To jest m?j skrypt od Reborna.

Kod:
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('Hello. If you ready I can "Reborn" you.')
			focus = cid
			talk_start = os.clock()
		

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

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

if msgcontains(msg, 'reborn') and getPlayerStorageValue(cid,30023) == 4 then
				selfSay('Sorry, but you are after reborn.')
			focus = 0
			talk_start = 0

			elseif msgcontains(msg, 'reborn') and getPlayerLevel(cid) < 250 and getPlayerStorageValue(cid,30023) ~= 4 then
					selfSay('Hehe, I say If you READY. You do not have 250 lvl.')


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

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 216 then
doReborn(cid,1,332,217)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 265 then
doReborn(cid,1,217,266)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 278 then
doReborn(cid,1,242,279)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 235 then
doReborn(cid,1,309,236)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 248 then
doReborn(cid,1,286,249)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 6 then
doReborn(cid,1,165,7)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 19 then
doReborn(cid,1,7,20)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 32 then
doReborn(cid,1,58,33)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 45 then
doReborn(cid,1,366,46)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 58 then
doReborn(cid,1,370,59)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 71 then
doReborn(cid,1,94,72)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 84 then
doReborn(cid,1,121,85)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 97 then
doReborn(cid,1,115,98)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 110 then
doReborn(cid,1,193,111)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 123 then
doReborn(cid,1,20,124)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 136 then
doReborn(cid,1,215,137)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 149 then
doReborn(cid,1,133,150)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 162 then
doReborn(cid,1,179,163)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 175 then
doReborn(cid,1,99,176)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 188 then
doReborn(cid,1,40,189)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 203 then
doReborn(cid,1,282,204)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 then
selfSay('Sorry, ' .. getCreatureName(cid) .. '! You must revert or transform.')


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

function onThink()
	doNpcSetCreatureFocus(focus)
  	if (os.clock() - talk_start) > 45 then
  		if focus > 0 then
  			selfSay('Next Please...')
  		end
  			focus = 0
  	end
 	if focus ~= 0 then
 		if getDistanceToCreature(focus) > 5 then
 			selfSay('Good bye then.')
 			focus = 0
 		end
 	end
end
 
Status
Zamknięty.
Back
Do góry