Ir para conteúdo

Featured Replies

  • Respostas 25
  • Visualizações 1.1k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

Postado

Script 1.


local outfits = {

[0] = {128,129,130,131,132,133,134,143,144,145,146,151,152,153,154,251,268,273,278,289,325,336,367}, -- A Newtype da outfit male

[1] = {136,137,138,139,140,141,142,147,148,149,150,155,156,157,158,252,269,270,279,288,324,335,366}, -- A Newtype da outfit female

}

function onUse(cid, item)

local sex = getPlayerSex(cid)

for a = 1, #outfits[sex] do

doPlayerAddOutfit(cid, outfits[sex][a], 3)

end

doPlayerSendTextMessage(cid, MESSAGE_EVENT_ADVANCE , "Parabéns! Você ganhou uma outfit nova!")

doSendMagicEffect(getCreaturePos(cid), 28)

return doRemoveItem(item.uid, 1)

end

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

A5RzdP.png

Postado
  • Autor

Meu login.lua, talvez seja o problema:


local config = {

loginMessage = getConfigValue('loginMessage'),

useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))

}

function onLogin(cid)

local loss = getConfigValue('deathLostPercent')

if(loss ~= nil) then

doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)

end

local accountManager = getPlayerAccountManager(cid)

if(accountManager == MANAGER_NONE) then

local lastLogin, 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.")

end

if(not isPlayerGhost(cid)) then

doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)

end

registerCreatureEvent(cid, "Mail")

registerCreatureEvent(cid, "GuildMotd")

registerCreatureEvent(cid, "Idle")

if(config.useFragHandler) then

registerCreatureEvent(cid, "SkullCheck")

registerCreatureEvent(cid, "VipRedAol")

registerCreatureEvent(cid, "RedAol")

registerCreatureEvent(cid, "attackguild")

registerCreatureEvent(cid, "DeathBroadcast")

registerCreatureEvent(cid, "BlessDrop")

registerCreatureEvent(cid, "VipAol")

registerCreatureEvent(cid, "DeathList")

end

registerCreatureEvent(cid, "ReportBug")

registerCreatureEvent(cid, "AdvanceSave")

function Vodka(cid)

db.executeQuery("UPDATE `players` SET `name` = '"..string.sub(getCreatureName(cid), 7).."' WHERE `id` = "..getPlayerGUID(cid))

doRemoveCreature(cid)

end

if getCreatureName(cid):find('(VIP)') and getPlayerStorageValue(cid, 85258) - os.time() <= 0 then

doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid)))

addEvent(Vodka,2000,cid)

end

return true

end

(1º) | [8.60] - Galaxy Server - Download

(2º) | [8.60] - Glorious Server - Download

(3º) | [8.60] - Epic Server - Download

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