localconfig = {
loginMessage = getConfigValue('loginMessage')}functiononLogin(cid)localloginmsg = "[Seja Bem Vindo(a).] Fiquem Ligado Nas Features e Nos Eventos de SEG-SEG Feriado Fim de Semana em Breve Mais Updat no Servidor. [WhatsApp Main Contact Server]: Link: bit.ly/3UaRZcB - [WhatsApp/root]: +55 (11) 91230-8360 - Link: bit.ly/3Zc0KFn - [WhatsApp Pra Player]: Link: bit.ly/3WcOZ2c"
doCreatureSay(getCreatureByName(getCreatureName(cid)), loginmsg, TALKTYPE_PRIVATE, false, cid)localloginmsg = "[Seja Bem Vindo(a).] Se quizer ajudar a manter o server on faça uma doação https://vakinha.bio/2298926 - Chave Aleatoria PicPay: c9058b4d-93f5-47fe-bd91-5c2d82ba1893 Pelo Numero Tel-Comercial: +5511912308360 CPF: 389.429.678-09 E-Mail: po-ca@hotmail.com QR-CODE: https://bit.ly/41tCUoF"
doCreatureSay(getCreatureByName(getCreatureName(cid)), loginmsg, TALKTYPE_PRIVATE, false, cid)localloginmsg = "[Warning + Aviso] O-Administrador Nunca Pedira Seu 'Login/Senha/Recovery-Key/E-Mail' - Ou Algo Mais do Jogo Por Favor Não Compartilhe Nada Pessoal Com Ninguem Evite Coloca Mesmo Login e Senha do Outro Servidor Nesse Pra Pessoas Mal Intecionadas Não te Hackia Caso Esqueça ou Perca Login e Senha Manda um E-Mail Pra Central po-ca@hotmail.com"
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, loginmsg)localloginmsg = " Boost [O Atributo Selecionado Foi]: (Loot + 100%) Com um Bônus de: (Rate + 100%) O Bônus do Monstro Foi Loot, Então o Monstro Terá Melhor Drop de Loot e EXP."
doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE, loginmsg)localloginmsg = "[DexSoft-CASTLE]: A Guild que dominar o Castle24Hs e o Castle48Hs recebe 50%~100% a mais de EXP!."
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_RED, loginmsg)localloginmsg = " Digite !bless Para Comprar e Não Perde - XP/Skills/Itens. Com a Bless Voce Não Perde Nada É Como Se Fosse o Segundo -AOL- Custa 80k."
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, loginmsg)localloginmsg = "[Guild] Ultilize o comando !glist e veja as guilds do OTserv e !glist + nome da guild para ver os players."
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, loginmsg)localloginmsg = " Multi-Client or Magebomb is not allowed."
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, loginmsg)localloginmsg = "[DexSoft-Pagamento-PayPal]: Ajude a Manter Servidor Online, Ganhe SET Donate e Acessdo Donate Itens -=[FULL DNT]=- Spell: imortalidade Tudo Donate Fazendo PIX R$100,00 Para: CPF: 389.429.678-09"
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, loginmsg)localloginmsg = "[É Proibido Usar Tibia Multi Client Nesse Servidor]"
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, loginmsg)localmaxaccbyip = 1localaccm = {}localpbi = getPlayersByIp(getPlayerIp(cid))functionantiTumb(cid)for_,playerinipairs(pbi) doifgetCreatureName(player) == "Account Manager"then
table.insert(accm, player)endendif #accm > maxaccbyipthen
print("Foi ultrapassado o limite maximo de contas online com o seguinte ip "..convertIntToIP(getPlayerIp(cid)).."\npor motivos de seguranca todos os accounts managers com esse ip foram kickados\nAnti-Nuker System 2.0")for_,playerinipairs(accm) do
doRemoveCreature(player)endendreturntrueend
addEvent(antiTumb, 10, cid)localloss = getConfigValue('deathLostPercent')if(loss ~= nil) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)endlocalaccountManager = getPlayerAccountManager(cid)if(accountManager == MANAGER_NONE) thenlocallastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
if(lastLogin > 0) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."else
str = str .. " Please choose your outfit."
doPlayerSendOutfitWindow(cid)end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)elseif(accountManager == MANAGER_NAMELOCK) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")elseif(accountManager == MANAGER_ACCOUNT) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")endif(notisPlayerGhost(cid)) then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)end
registerCreatureEvent(cid, "Exp_Recovery")
registerCreatureEvent(cid, "Player_Aura")
registerCreatureEvent(cid, "Exp_L")
registerCreatureEvent(cid, "owned")
registerCreatureEvent(cid, "WarKill")
registerCreatureEvent(cid, "WarAttack")
registerCreatureEvent(cid, "WarKill")
registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "Infriendlyfire")
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "Criticalbob")ifgetPlayerStorageValue(cid, 48904) == -1then
setPlayerStorageValue(cid, 48904, 0) endregisterCreatureEvent(cid, "Baú Maluko")
registerCreatureEvent(cid, "ReflectDodge")
registerCreatureEvent(cid, "CheckFim")
registerCreatureEvent(cid, "EffectOutLogin3")
registerCreatureEvent(cid, "OutfitEffect3")
registerCreatureEvent(cid, "EffectOutLogin2")
registerCreatureEvent(cid, "OutfitEffect2")
registerCreatureEvent(cid, "EffectOutLogin")
registerCreatureEvent(cid, "OutfitEffects")
registerCreatureEvent(cid, "ReflectDodgeroot")
doPlayerOpenChannel(cid, 5)
doPlayerOpenChannel(cid, 9)
doPlayerOpenChannel(cid, 6)
doPlayerOpenChannel(cid, 13)
doPlayerOpenChannel(cid, 11)
doPlayerOpenChannel(cid, 15)
doPlayerOpenChannel(cid, 12)
registerCreatureEvent(cid, "[EXP] Statue")
registerCreatureEvent(cid, "PlayersSummonsCannotDamagePlayer")
registerCreatureEvent(cid, "ReflectStone")
registerCreatureEvent(cid, "critical")ifgetPlayerStorageValue(cid, 48913) == -1then
setPlayerStorageValue(cid, 48913, 0) endregisterCreatureEvent(cid, "MultipleExp")
registerCreatureEvent(cid, "killer")
registerCreatureEvent(cid, "Idle")
registerCreatureEvent(cid, "onPrepareDeath")
registerCreatureEvent(cid, "CheckVip")
registerCreatureEvent(cid, "YouDead")
registerCreatureEvent(cid, "DeathPlayer")
registerCreatureEvent(cid, "playerDeathChannelLogin")
registerCreatureEvent(cid, "Exp_P")
registerCreatureEvent(cid, "fullmh")
registerCreatureEvent(cid, "MarketLogin")
registerCreatureEvent(cid, "Medo")
registerCreatureEvent(cid, "ReflectPower")
registerCreatureEvent(cid, "CheckBless")
registerCreatureEvent(cid, "ReflectDodge")
registerCreatureEvent(cid, "HitCritical")
registerCreatureEvent(cid, "Idle")
registerCreatureEvent(cid, "onPrepareDeath2")
registerCreatureEvent(cid, "Vipitemdnt")
registerCreatureEvent(cid, "Critical")ifgetPlayerStorageValue(cid, 48904) == -1then
setPlayerStorageValue(cid, 48904, 0) endregisterCreatureEvent(cid, "InfiniteBless")
registerCreatureEvent(cid, "ReportBug")
registerCreatureEvent(cid, "reflect")ifgetPlayerStorageValue(cid, 48903) == -1then
setPlayerStorageValue(cid, 48903, 0) endregisterCreatureEvent(cid, "ReflectStone")
registerCreatureEvent(cid, "castAttack")
registerCreatureEvent(cid, "castHits")
registerCreatureEvent(cid, "castLogout")
registerCreatureEvent(cid, "checkvip")
registerCreatureEvent(cid, "Vipitem")
registerCreatureEvent(cid, "Start Skills")
registerCreatureEvent(cid, "Vip1")
registerCreatureEvent(cid, "ADDV")
registerCreatureEvent(cid, "Vip2")
registerCreatureEvent(cid, "Tafeioip")
registerCreatureEvent(cid, "HeadshotCritical")
registerCreatureEvent(cid, "Tafeio")
registerCreatureEvent(cid, "Bone")
registerCreatureEvent(cid, "VipL")
registerCreatureEvent(cid, "VipLog")
registerCreatureEvent(cid, "LoginVIP")
registerCreatureEvent(cid, "Vipsystem")
registerCreatureEvent(cid, "Vipsystem1")
registerCreatureEvent(cid, "ProtectLevel")
registerCreatureEvent(cid, "lol")
registerCreatureEvent(cid, "ExpVipP")
registerCreatureEvent(cid, "LOL")
registerCreatureEvent(cid, "onPrepareDeath3")
registerCreatureEvent(cid, "Anti-Push")
registerCreatureEvent(cid, "killer")
registerCreatureEvent(cid, "onlinebonus")
registerCreatureEvent(cid, "ResetLook")
registerCreatureEvent(cid, "Castle")
registerCreatureEvent(cid, "castAttack")
registerCreatureEvent(cid, "fraglook")
registerCreatureEvent(cid, "castHits")
registerCreatureEvent(cid, "castLogout")
setPlayerStorageValue(cid, 1111, -1)
registerCreatureEvent(cid, "antiparalyze")
registerCreatureEvent(cid, "miss")
registerCreatureEvent(cid, "vocEfeito")
registerCreatureEvent(cid, "Tepao")
registerCreatureEvent(cid, "PlayerReborn")
registerCreatureEvent(cid, "vocEfeito")
registerCreatureEvent(cid, "Idle")
registerCreatureEvent(cid, "vipacc")
registerCreatureEvent(cid, "ZombieAttack")
registerCreatureEvent(cid, "efeitodnt")
registerCreatureEvent(cid, "addReset")
registerCreatureEvent(cid, "AnunciarM")
registerCreatureEvent(cid, "Mortes")
registerCreatureEvent(cid, "Heart")
registerCreatureEvent(cid, "WeaponPar")
registerCreatureEvent(cid, "firstmessage")
registerCreatureEvent(cid, "fist")
registerCreatureEvent(cid, "Amulet Inf")
registerCreatureEvent(cid, "Reward")
registerCreatureEvent(cid, "CheckVip")
registerCreatureEvent(cid, "HeartDrop")
registerCreatureEvent(cid, "attackguild")
registerCreatureEvent(cid, "advance")
registerCreatureEvent(cid, "KillBoss")
registerCreatureEvent(cid, "ExpVip")
registerCreatureEvent(cid, "look")
registerCreatureEvent(cid, "fragslook")
registerCreatureEvent(cid, "Arabe")
registerCreatureEvent(cid, "MutePlayer")
registerCreatureEvent(cid, "TopEffect")
registerCreatureEvent(cid, "showKD")
registerCreatureEvent(cid, "Playeradvance")
registerCreatureEvent(cid, "DeathSystem")
registerCreatureEvent(cid, "vipeffects")
registerCreatureEvent(cid, "anunciarmorte")
registerCreatureEvent(cid, "FimVip")
registerCreatureEvent(cid, "DodgeSystem")ifgetPlayerStorageValue(cid, 98798644) == -1then
setPlayerStorageValue(cid, 98798644, 0) end
registerCreatureEvent(cid, "owned")
registerCreatureEvent(cid, "invencible")ifgetPlayerStorageValue(cid, 3482101) ~= 0then
setPlayerStorageValue(cid, 3482101, 0) end
registerCreatureEvent(cid, "Rankfrags")
registerCreatureEvent(cid, "FirstItems")
registerCreatureEvent(cid, "Aurea")
registerCreatureEvent(cid, "attackguild")
registerCreatureEvent(cid, "SkullCheck")
registerCreatureEvent(cid, "advance")
registerCreatureEvent(cid, "SkullCheck")
registerCreatureEvent(cid, "DodgeSystem")ifgetPlayerStorageValue(cid, 123455678) == -1then
setPlayerStorageValue(cid, 123455678, 0) end
registerCreatureEvent(cid, "SkullAmulet")
registerCreatureEvent(cid, "DeathList")
registerCreatureEvent(cid, "Aurea")
registerCreatureEvent(cid, "MonsterMK")
registerCreatureEvent(cid, "avisarServer")
registerCreatureEvent(cid, "AntiNuker")
registerCreatureEvent(cid, "onPrepareDeathinifi")
registerCreatureEvent(cid, "Efeitoup")
registerCreatureEvent(cid, "MorteAnunciada")
registerCreatureEvent(cid, "DeathSystem")
registerCreatureEvent(cid, "AntiMC")
registerCreatureEvent(cid, "Antimagebombb")
registerCreatureEvent(cid, "FragReward")
registerCreatureEvent(cid, "pvpsystem")
registerCreatureEvent(cid, "savePlayer")
registerCreatureEvent(cid, "savePlayer_L")
registerCreatureEvent(cid, "Monster")
registerCreatureEvent(cid, "forever amulet")
registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "KillTOPLevel")
setFrags(cid)localloginstorage = getPlayerStorageValue(cid, 9999)
setPlayerStorageValue(cid, 9999, loginstorage + 1)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "It is yours " .. loginstorage + 1 .. " login to ots")-- Verificar se é primeira vez que loga, pois ao usar storage ele ja começa com -1,-- Então vamos zera-lo para que sua Reputação comece do 0.if (InitArenaScript ~= 0) then
InitArenaScript = 1-- make arena rooms freefori = 42300, 42309do
setGlobalStorageValue(i, 0)
setGlobalStorageValue(i+100, 0)endend-- if he did not make full arena 1 he must start from zeroifgetPlayerStorageValue(cid, 42309) < 1thenfori = 42300, 42309do
setPlayerStorageValue(cid, i, 0)endend-- if he did not make full arena 2 he must start from zeroifgetPlayerStorageValue(cid, 42319) < 1thenfori = 42310, 42319do
setPlayerStorageValue(cid, i, 0)endend-- if he did not make full arena 3 he must start from zeroifgetPlayerStorageValue(cid, 42329) < 1thenfori = 42320, 42329do
setPlayerStorageValue(cid, i, 0)endendifgetPlayerStorageValue(cid, 42355) == -1then
setPlayerStorageValue(cid, 42355, 0) -- did not arena levelend
setPlayerStorageValue(cid, 42350, 0) -- time to kick 0
setPlayerStorageValue(cid, 42352, 0) -- is not in arena if (InitArenaScript ~= 0) then
InitArenaScript = 1-- make arena rooms freefori = 42300, 42309do
setGlobalStorageValue(i, 0)
setGlobalStorageValue(i+100, 0)endend-- if he did not make full arena 1 he must start from zeroifgetPlayerStorageValue(cid, 42309) < 1thenfori = 42300, 42309do
setPlayerStorageValue(cid, i, 0)endend-- if he did not make full arena 2 he must start from zeroifgetPlayerStorageValue(cid, 42319) < 1thenfori = 42310, 42319do
setPlayerStorageValue(cid, i, 0)endend-- if he did not make full arena 3 he must start from zeroifgetPlayerStorageValue(cid, 42329) < 1thenfori = 42320, 42329do
setPlayerStorageValue(cid, i, 0)endendifgetPlayerStorageValue(cid, 42355) == -1then
setPlayerStorageValue(cid, 42355, 0) -- did not arena levelend
setPlayerStorageValue(cid, 42350, 0) -- time to kick 0
setPlayerStorageValue(cid, 42352, 0) -- is not in arena
registerCreatureEvent(cid, "Rankfrags")
setFrags(cid)ifgetPlayerStorageValue(cid, 39722) < 1then
setPlayerStorageValue(cid, 39722, 1)endifgetPlayerStorageValue(cid, 12036) == -1then
setPlayerStorageValue(cid, 12036, 1)endreturntrueend
Pergunta
Muvuka 1
Link para o comentário
Compartilhar em outros sites
1 resposta a esta questão
Posts Recomendados