Postado Fevereiro 21, 2018 7 anos 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 --_GOKU_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 7 then doReborn(cid,1,451,8) talk_state = 0 --_VEGETA_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 23 then doReborn(cid,1,458,24) talk_state = 0 --_GOHAN_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 37 then doReborn(cid,1,89,38) talk_state = 0 --_GOTENKS_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 49 then doReborn(cid,1,277,50) talk_state = 0 --_CELL_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 87 then doReborn(cid,1,419,88) talk_state = 0 --_FREEZA_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 101 then doReborn(cid,1,327,102) talk_state = 0 --_MAJIN BUU_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 117 then doReborn(cid,1,30,118) talk_state = 0 --_C17_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 203 then doReborn(cid,1,394,204) talk_state = 0 --_C18_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 215 then doReborn(cid,1,481,216) talk_state = 0 --_PICOLLO_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 239 then doReborn(cid,1,368,240) talk_state = 0 --_DENDE_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 249 then doReborn(cid,1,533,250) talk_state = 0 --_TSUFUL_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 168 then doReborn(cid,1,251,169) talk_state = 0 --_BARDOCK_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 74 then doReborn(cid,1,65,75) talk_state = 0 --_BROLLY_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 61 then doReborn(cid,1,446,62) talk_state = 0 --_C16_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 227 then doReborn(cid,1,493,228) talk_state = 0 --_COOLER_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 180 then doReborn(cid,1,336,181) talk_state = 0 --_JANEMBA_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 131 then doReborn(cid,1,48,132) talk_state = 0 --_TAPION_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 297 then doReborn(cid,1,173,298) talk_state = 0 --_TRUNKS_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 144 then doReborn(cid,1,476,145) talk_state = 0 --_UUB_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 156 then doReborn(cid,1,309,157) talk_state = 0 --_KAIO_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 191 then doReborn(cid,1,318,192) talk_state = 0 --_KRILLIN_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 261 then doReborn(cid,1,240,262) talk_state = 0 --_PAN_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 273 then doReborn(cid,1,180,274) talk_state = 0 --_BILLS_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 285 then doReborn(cid,1,14,286) talk_state = 0 --_SHENRON_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 309 then doReborn(cid,1,413,310) talk_state = 0 --_VEGETTO_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 322 then doReborn(cid,1,36,323) talk_state = 0 --_MESTRE KAME_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 334 then doReborn(cid,1,209,335) talk_state = 0 --_MESTRE KAME_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 348 then doReborn(cid,1,231,349) talk_state = 0 --_ZAIKO_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 360 then doReborn(cid,1,157,361) talk_state = 0 --_CHILLED_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 375 then doReborn(cid,1,194,376) talk_state = 0 --_TURLES_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 387 then doReborn(cid,1,144,388) talk_state = 0 --_TENSHINHAN_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 399 then doReborn(cid,1,245,400) talk_state = 0 --_RADITZ_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 411 then doReborn(cid,1,63,412) talk_state = 0 --_JENK_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 423 then doReborn(cid,1,550,424) talk_state = 0 --_Goku jr_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 435 then doReborn(cid,1,348,436) talk_state = 0 --_KAGOME_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 466 then doReborn(cid,1,629,467) talk_state = 0 --_GOKU GOD_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 478 then doReborn(cid,1,638,479) talk_state = 0 --_WHIS_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 486 then doReborn(cid,1,647,491) talk_state = 0 --_Kaneki_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 631 then doReborn(cid,1,783,632) talk_state = 0 --_Byakuya_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 611 then doReborn(cid,1,749,612) talk_state = 0 --_Ichigo_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 591 then doReborn(cid,1,739,592) talk_state = 0 --_Kenshin_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 571 then doReborn(cid,1,732,572) talk_state = 0 --_Gintoki_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 551 then doReborn(cid,1,753,552) talk_state = 0 --_Zoro_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 531 then doReborn(cid,1,774,532) talk_state = 0 --_Luffy_-- elseif msgcontains(msg, 'yes') and talk_state == 2 and getPlayerLevel(cid) >= 250 and getPlayerLevel(cid) <= 600 and getPlayerVocation(cid) == 511 then doReborn(cid,1,763,512) talk_state = 0 elseif msgcontains(msg, 'yes') and talk_state == 2 then selfSay('Sorry, ' .. getCreatureName(cid) .. '! You must revert.') 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 BOA TARDE ALGUEM PODE ME AJUDAR COLOCA NPC DE REBORN 8.60 para 8.54 Pois o npc fala mais ele nao responde a funçao para mudar de vocation https://www.facebook.com/groups/659018184245665/ https://www.facebook.com/profile.php?id=133706320308745
Postado Fevereiro 22, 2018 7 anos Autor Resolvido ja https://www.facebook.com/groups/659018184245665/ https://www.facebook.com/profile.php?id=133706320308745
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.