Galera preciso de um script que faça com que o player tenha um level maximo para rebornar no wodbo 8.0, tipo o cara passa level 1k ele ja nao pode mais rebornar por ser acima de level 1000 teria algum script para me ajudar nesse problema? Obrigado , Boa noite
[SCRIPT WODBO] para por level máximo para reborn 8.0

O reborn é como? Quest/npc? Me passa o script dele.
é uma quest, tipo eles fazem chega no npc reborn, tem que ter acima de lvl 250 pra rebornar, ai eles rebornan e voltam level 0, e ficam mais fortes, ai queria por um level maximo porque tem o lvel minimo (250)) queria maximo de (1000)O reborn é como? Quest/npc? Me passa o script dele.
Me passa o script desse NPC, fica em data/npc/scripts
Cara eu nao sei dar aquele bagulho que "diminui" o script desculpa a você e aos ADMS da pag.Me passa o script desse NPC, fica em data/npc/scripts
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, 'swamper city') then
if pay(cid,100) then
travel(cid, 266, 106, 12)
selfSay('Let\'s go!')
focus = 0
talk_start = 0
else
selfSay('Sorry, you don\'t have enough money.')
end
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) == 20 then
doReborn(cid,201,137)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 25 or getPlayerVocation(cid) == 26 or getPlayerVocation(cid) == 37) then
doReborn(cid,214,152)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) >= 103 and getPlayerVocation(cid) <= 104 then
doReborn(cid,286,60)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 58 then
doReborn(cid,247,34)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 71 then
doReborn(cid,258,15)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 75 then
doReborn(cid,263,15)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 274 then
doReborn(cid,275,118)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 76 or getPlayerVocation(cid) == 77) then
doReborn(cid,227,144)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 388 or getPlayerVocation(cid) == 390) then
doReborn(cid,391,422)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) >= 80 and getPlayerVocation(cid) <= 86 then
selfSay('You cannot reborn in fusion.')
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 78 or getPlayerVocation(cid) == 79) then
doReborn(cid,232,150)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 280 then
doReborn(cid,281,190)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 112 then
doReborn(cid,298,221)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 50 then
doReborn(cid,253,101)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 29 or getPlayerVocation(cid) == 30) then
doReborn(cid,208,148)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 44 then
doReborn(cid,237,173)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 29 or getPlayerVocation(cid) == 30) then
doReborn(cid,208,148)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 292 then
doReborn(cid,293,281)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 34 or getPlayerVocation(cid) == 35 or getPlayerVocation(cid) == 36) then
doReborn(cid,221,162)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 96 then
doReborn(cid,242,178)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 12 or getPlayerVocation(cid) <= 62 and getPlayerVocation(cid) >= 65) then
doReborn(cid,268,184)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 307 then
doReborn(cid,308,102)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 318 then
doReborn(cid,319,326)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 327 then
doReborn(cid,328,328)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 337 then
doReborn(cid,338,334)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 347 then
doReborn(cid,348,327)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 402 then
doReborn(cid,403,198)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 413 then
doReborn(cid,414,489)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 424 then
doReborn(cid,425,452)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 435 then
doReborn(cid,436,468)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 446 then
doReborn(cid,447,437)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 524 then
doReborn(cid,525,462)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 505 then
doReborn(cid,506,238)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 599 then
doReborn(cid,600,557)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 587 then
doReborn(cid,588,551)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 575 then
doReborn(cid,576,531)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 562 then
doReborn(cid,563,524)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 550 then
doReborn(cid,551,514)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 537 then
doReborn(cid,538,500)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 413 then
doReborn(cid,414,494)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 435 then
doReborn(cid,436,474)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 424 then
doReborn(cid,425,455)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 446 then
doReborn(cid,447,445)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 402 then
doReborn(cid,403,435)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 457 then
doReborn(cid,458,426)
setPlayerStorageValue(cid,30023,4)
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
Adicionei spoilers pra você amigão, troque o código por esse e reinicie o servidor:
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
if getPlayerLevel(cid) >= 1000 then
selfSay('You cannot reborn, levels 1000 more not is possible.')
return false
end
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, 'swamper city') then
if pay(cid,100) then
travel(cid, 266, 106, 12)
selfSay('Let\'s go!')
focus = 0
talk_start = 0
else
selfSay('Sorry, you don\'t have enough money.')
end
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) == 20 then
doReborn(cid,201,137)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 25 or getPlayerVocation(cid) == 26 or getPlayerVocation(cid) == 37) then
doReborn(cid,214,152)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) >= 103 and getPlayerVocation(cid) <= 104 then
doReborn(cid,286,60)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 58 then
doReborn(cid,247,34)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 71 then
doReborn(cid,258,15)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 75 then
doReborn(cid,263,15)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 274 then
doReborn(cid,275,118)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 76 or getPlayerVocation(cid) == 77) then
doReborn(cid,227,144)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 388 or getPlayerVocation(cid) == 390) then
doReborn(cid,391,422)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) >= 80 and getPlayerVocation(cid) <= 86 then
selfSay('You cannot reborn in fusion.')
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 78 or getPlayerVocation(cid) == 79) then
doReborn(cid,232,150)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 280 then
doReborn(cid,281,190)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 112 then
doReborn(cid,298,221)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 50 then
doReborn(cid,253,101)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 29 or getPlayerVocation(cid) == 30) then
doReborn(cid,208,148)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 44 then
doReborn(cid,237,173)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 29 or getPlayerVocation(cid) == 30) then
doReborn(cid,208,148)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 292 then
doReborn(cid,293,281)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 34 or getPlayerVocation(cid) == 35 or getPlayerVocation(cid) == 36) then
doReborn(cid,221,162)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 96 then
doReborn(cid,242,178)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 12 or getPlayerVocation(cid) <= 62 and getPlayerVocation(cid) >= 65) then
doReborn(cid,268,184)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 307 then
doReborn(cid,308,102)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 318 then
doReborn(cid,319,326)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 327 then
doReborn(cid,328,328)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 337 then
doReborn(cid,338,334)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 347 then
doReborn(cid,348,327)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 402 then
doReborn(cid,403,198)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 413 then
doReborn(cid,414,489)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 424 then
doReborn(cid,425,452)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 435 then
doReborn(cid,436,468)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 446 then
doReborn(cid,447,437)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 524 then
doReborn(cid,525,462)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 505 then
doReborn(cid,506,238)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 599 then
doReborn(cid,600,557)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 587 then
doReborn(cid,588,551)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 575 then
doReborn(cid,576,531)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 562 then
doReborn(cid,563,524)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 550 then
doReborn(cid,551,514)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 537 then
doReborn(cid,538,500)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 413 then
doReborn(cid,414,494)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 435 then
doReborn(cid,436,474)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 424 then
doReborn(cid,425,455)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 446 then
doReborn(cid,447,445)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 402 then
doReborn(cid,403,435)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 457 then
doReborn(cid,458,426)
setPlayerStorageValue(cid,30023,4)
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
Eu não sei nem como agradecer REP+ MUITO OBRIGADO CARAAdicionei spoilers pra você amigão, troque o código por esse e reinicie o servidor:
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
if getPlayerLevel(cid) >= 1000 then
selfSay('You cannot reborn, levels 1000 more not is possible.')
return false
end
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, 'swamper city') then
if pay(cid,100) then
travel(cid, 266, 106, 12)
selfSay('Let\'s go!')
focus = 0
talk_start = 0
else
selfSay('Sorry, you don\'t have enough money.')
end
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) == 20 then
doReborn(cid,201,137)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 25 or getPlayerVocation(cid) == 26 or getPlayerVocation(cid) == 37) then
doReborn(cid,214,152)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) >= 103 and getPlayerVocation(cid) <= 104 then
doReborn(cid,286,60)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 58 then
doReborn(cid,247,34)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 71 then
doReborn(cid,258,15)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 75 then
doReborn(cid,263,15)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 274 then
doReborn(cid,275,118)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 76 or getPlayerVocation(cid) == 77) then
doReborn(cid,227,144)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 388 or getPlayerVocation(cid) == 390) then
doReborn(cid,391,422)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) >= 80 and getPlayerVocation(cid) <= 86 then
selfSay('You cannot reborn in fusion.')
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 78 or getPlayerVocation(cid) == 79) then
doReborn(cid,232,150)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 280 then
doReborn(cid,281,190)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 112 then
doReborn(cid,298,221)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 50 then
doReborn(cid,253,101)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 29 or getPlayerVocation(cid) == 30) then
doReborn(cid,208,148)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 44 then
doReborn(cid,237,173)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 29 or getPlayerVocation(cid) == 30) then
doReborn(cid,208,148)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 292 then
doReborn(cid,293,281)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 34 or getPlayerVocation(cid) == 35 or getPlayerVocation(cid) == 36) then
doReborn(cid,221,162)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 96 then
doReborn(cid,242,178)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and (getPlayerVocation(cid) == 12 or getPlayerVocation(cid) <= 62 and getPlayerVocation(cid) >= 65) then
doReborn(cid,268,184)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 307 then
doReborn(cid,308,102)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 318 then
doReborn(cid,319,326)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 327 then
doReborn(cid,328,328)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 337 then
doReborn(cid,338,334)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 347 then
doReborn(cid,348,327)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 402 then
doReborn(cid,403,198)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 413 then
doReborn(cid,414,489)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 424 then
doReborn(cid,425,452)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 435 then
doReborn(cid,436,468)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 446 then
doReborn(cid,447,437)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 524 then
doReborn(cid,525,462)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 505 then
doReborn(cid,506,238)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 599 then
doReborn(cid,600,557)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 587 then
doReborn(cid,588,551)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 575 then
doReborn(cid,576,531)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 562 then
doReborn(cid,563,524)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 550 then
doReborn(cid,551,514)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 537 then
doReborn(cid,538,500)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 413 then
doReborn(cid,414,494)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 435 then
doReborn(cid,436,474)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 424 then
doReborn(cid,425,455)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 446 then
doReborn(cid,447,445)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 402 then
doReborn(cid,403,435)
setPlayerStorageValue(cid,30023,4)
talk_state = 0
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerVocation(cid) == 457 then
doReborn(cid,458,426)
setPlayerStorageValue(cid,30023,4)
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
Tópico movido para a seção de dúvidas e pedidos resolvidos.