Ir para conteúdo

Featured Replies

Postado

Galera porque quando eu viro ultra god ele não registra o storage 32024 nos players sendo que seria um segundo reborn?

 

 

O Primeiro reborn registra o storage 30023

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('Olá! Se voce está pronto, diga "reborn".')
focus = cid
talk_start = os.clock()
elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
selfSay('Desculpe, ' .. getCreatureName(cid) .. '! Hey!.')
elseif focus == cid then
talk_start = os.clock()
if msgcontains(msg, 'reborn') and getPlayerStorageValue(cid,30023) == 4 then
selfSay('Desculpe, mas voce já é rebornado.')
focus = 0
talk_start = 0
elseif msgcontains(msg, 'reborn') and (getPlayerLevel(cid) < 200 and getPlayerStorageValue(cid,30023) ~= 4) or (getPlayerLevel(cid) > 1200 and getPlayerStorageValue(cid,30023) ~= 4) then
selfSay('Apenas level 200 até 1200 podem rebornar.')
focus = 0
talk_start = 0
elseif msgcontains(msg, 'reborn') then
selfSay('Realmente quer isto?')
talk_state = 2
--_GOKU_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 8 then
doReborn(cid,1,10,9)
talk_state = 0

--_VEGETA_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 23 then
doReborn(cid,1,25,24)
talk_state = 0

--_PICCOLO_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 36 then
doReborn(cid,1,42,37)
talk_state = 0

--_C17_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 49 then
doReborn(cid,1,50,50)
talk_state = 0

--_GOHAN_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 63 then
doReborn(cid,1,62,64)
talk_state = 0

--_TRUNKS_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 75 then
doReborn(cid,1,74,76)
talk_state = 0

--_CELL_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 87 then
doReborn(cid,1,81,88)
talk_state = 0

--_FREEZA_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 101 then
doReborn(cid,1,88,102)
talk_state = 0

--_MAJIN BOO_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 117 then
doReborn(cid,1,98,118)
talk_state = 0

--_BROLY_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 131 then
doReborn(cid,1,113,132)
talk_state = 0

--_C18_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 144 then
doReborn(cid,1,50,145)
talk_state = 0

--_UUB_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 156 then
doReborn(cid,1,128,157)
talk_state = 0

--_GOTEN_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 170 then
doReborn(cid,1,142,171)
talk_state = 0

--_CHIBI TRUNKS_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 184 then
doReborn(cid,1,151,185)
talk_state = 0

--_COOLER_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 197 then
doReborn(cid,1,153,198)
talk_state = 0

--_DENDE_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 210 then
doReborn(cid,1,169,211)
talk_state = 0

--_TSUFUL_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 222 then
doReborn(cid,1,180,223)
talk_state = 0

--_BARDOCK_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 235 then
doReborn(cid,1,194,236)
talk_state = 0

--_KURIRIN_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 248 then
doReborn(cid,1,205,249)
talk_state = 0

--_PAN_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 260 then
doReborn(cid,1,212,261)
talk_state = 0

--_KAIO_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 272 then
doReborn(cid,1,221,273)
talk_state = 0

--_VIDEL_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 284 then
doReborn(cid,1,227,285)
talk_state = 0

--_JANEMBA_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 296 then
doReborn(cid,1,234,297)
talk_state = 0

--_TENSHINHAN_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 308 then
doReborn(cid,1,246,309)
talk_state = 0

--_JENK_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 320 then
doReborn(cid,1,257,321)
talk_state = 0

--_RADITZ_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 332 then
doReborn(cid,1,265,333)
talk_state = 0

--_C16_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 344 then
doReborn(cid,1,277,345)
talk_state = 0

--_TURLES_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 356 then
doReborn(cid,1,285,357)
talk_state = 0

--_BULMA_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 368 then
doReborn(cid,1,296,369)
talk_state = 0

--_SHENRON_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 380 then
doReborn(cid,1,302,381)
talk_state = 0

--_VEGETTO_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 392 then
doReborn(cid,1,308,393)
talk_state = 0

--_TAPION_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 404 then
doReborn(cid,1,321,405)
talk_state = 0

--_KAME_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 417 then
doReborn(cid,1,335,418)
talk_state = 0

--_KING VEGETA_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 429 then
doReborn(cid,1,347,430)
talk_state = 0

--_KAGOME_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 441 then
doReborn(cid,1,357,442)
talk_state = 0

--_ZAIKO_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 453 then
doReborn(cid,1,368,454)
talk_state = 0

--_LORD CHILLED_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 465 then
doReborn(cid,1,375,466)
talk_state = 0

--_C8_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 482 then
doReborn(cid,1,517,483)
talk_state = 0

--_BILLS_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 841 then
doReborn(cid,1,501,842)
talk_state = 0

--_CHAMPA_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 862 then
doReborn(cid,1,633,863)
talk_state = 0

--_BOTAMO_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 200 and getPlayerLevel(cid) <= 1200 and getPlayerVocation(cid) == 883 then
doReborn(cid,1,641,884)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 then
selfSay('Desculpe, ' .. getCreatureName(cid) .. '! Voce deve estar na ultima transformação.')


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

function onThink()
doNpcSetCreatureFocus(focus)
if (os.clock() - talk_start) > 45 then
if focus > 0 then
selfSay('Próximo por favor...')
end
focus = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 5 then
selfSay('Adeus!')
focus = 0
end
end
end

 

 

Agora esse ultra god não registra.. poque?

 

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('Olá! Se voce está pronto, diga "ultra god".')
focus = cid
talk_start = os.clock()
elseif msgcontains(msg, 'hi') and (focus ~= cid) and getDistanceToCreature(cid) < 4 then
selfSay('Desculpe, ' .. getCreatureName(cid) .. '! Hey!.')
elseif focus == cid then
talk_start = os.clock()
if msgcontains(msg, 'super reborn') and getPlayerStorageValue(cid,32024) == 4 then
selfSay('Desculpe, mas voce já é ultra god.')
focus = 0
talk_start = 0
elseif msgcontains(msg, 'super reborn') and (getPlayerLevel(cid) < 1000 and getPlayerStorageValue(cid,32024) ~= 4) or (getPlayerLevel(cid) > 2000 and getPlayerStorageValue(cid,32024) ~= 4) then
selfSay('Apenas level 1000 até 2000 podem rebornar.')
focus = 0
talk_start = 0
elseif msgcontains(msg, 'ultra god') then
selfSay('Realmente quer isto?')
talk_state = 2
--_GOKU_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 15 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,10, 501)
talk_state = 0

--_VEGETA_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 30 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,25,510)
talk_state = 0

--_PICCOLO_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 43 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,38,519)
talk_state = 0

--_C17_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 56 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,50,528)
talk_state = 0

--_GOHAN_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 70 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,561,537)
talk_state = 0

--_TRUNKS_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 82 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,74,546)
talk_state = 0

--_CELL_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 94 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,81,555)
talk_state = 0

--_FREEZA_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 110 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,88,564)
talk_state = 0

--_MAJIN BOO_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 126 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,98,573)
talk_state = 0

--_BROLY_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 138 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,113,582)
talk_state = 0

--_C18_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 151 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,50,591)
talk_state = 0

--_UUB_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 163 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,128,600)
talk_state = 0

--_GOTEN_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 177 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,142,609)
talk_state = 0

--_CHIBI TRUNKS_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 191 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,151,611)
talk_state = 0

--_COOLER_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 205 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,153,620)
talk_state = 0

--_DENDE_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 217 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,169,630)
talk_state = 0

--_TSUFUL_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 229 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,180,639)
talk_state = 0

--_BARDOCK_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 242 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,194,648)
talk_state = 0

--_KURIRIN_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 255 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,205,657)
talk_state = 0

--_PAN_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 267 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,212,666)
talk_state = 0

--_KAIO_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 279 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,221,675)
talk_state = 0

--_VIDEL_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 291 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,227,684)
talk_state = 0

--_JANEMBA_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 303 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,234,693)
talk_state = 0

--_TENSHINHAN_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 315 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,246,702)
talk_state = 0

--_JENK_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 327 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,257,711)
talk_state = 0

--_RADITZ_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 339 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,265,720)
talk_state = 0

--_C16_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 351 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,277,729)
talk_state = 0

--_TURLES_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 363 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,285,738)
talk_state = 0

--_BULMA_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 375 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,296,747)
talk_state = 0

--_SHENRON_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 387 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,302,756)
talk_state = 0

--_VEGETTO_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 392 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,308,393)
talk_state = 0

--_TAPION_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 411 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,321,765)
talk_state = 0

--_KAME_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 424 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,335,774)
talk_state = 0

--_KING VEGETA_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 436 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,347,792)
talk_state = 0

--_KAGOME_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 448 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,357,783)
talk_state = 0

--_ZAIKO_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 460 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,368,819)
talk_state = 0

--_LORD CHILLED_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 472 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,375,801)
talk_state = 0

--_C8_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 489 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,517,810)
talk_state = 0

--_BILLS_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 848 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,501,849)
talk_state = 0

--_CHAMPA_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 869 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,633,870)
talk_state = 0

--_BOTAMO_--
elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 1000 and getPlayerLevel(cid) <= 2000 and getPlayerVocation(cid) == 890 and doPlayerRemoveItem(cid, 13622, 4000) then
doReborn(cid,1,641,891)
talk_state = 0

elseif msgcontains(msg, 'yes') and talk_state == 2 then
selfSay('Desculpe, ' .. getCreatureName(cid) .. '! Voce deve estar na ultima.')


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

function onThink()
doNpcSetCreatureFocus(focus)
if (os.clock() - talk_start) > 45 then
if focus > 0 then
selfSay('Próximo por favor...')
end
focus = 0
end
if focus ~= 0 then
if getDistanceToCreature(focus) > 5 then
selfSay('Adeus!')
focus = 0
end
end
end

 

Editado por bringsz (veja o histórico de edições)

yPAPbVf.png

 Servidor de Dragon Ball Online - dbsbattleofgods.com

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo