Ir para conteúdo
Banner com Efeitos

[Resolvido] [Pedido] Script que ao dar look em player que tem storage X, aparece msg. aparece he is A VIP PLAYER.

Featured Replies

Postado

Cara meu otserv o sistema vip n tem storage, tem como modificar este de look ae pra quando o player for premium aparecer: He is a VIP.

Meu serv tem este script aki: que quando o player é vip ele fica com um efeito no char: (acho que pode ajudar)

Ok, tente


function onLook(cid, thing, position, lookDistance)
local quests = {
2400, 2401, 2402, 2403 -- Change/add numbers to the unique ids on your quest chests.
}

local storages = {
2400 -- Change/add numbers to the storage on your scripts.
}

local completed = {}
if isPlayer(thing.uid) then
for i = 1, #quests do
if getPlayerStorageValue(thing.uid, quests[i]) > 0 then
for i = 1, #storages do
if getPlayerStorageValue(thing.uid, storages[i]) > 0 then
table.insert(completed, 1)
end
end
doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == 0 and ".\nShe" or ".\nHe") .. " has completed ".. #completed .. "/" .. #quests .. " quests")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getPlayerName(thing.uid) .. " has completed " .. #completed .. "/" .. #quests .. " quests.")
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getPlayerName(thing.uid) .. " has completed " .. #storages .. " storage ids.")
elseif (isCreature(uid)) and (isPremium(uid)) then
doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == 0 and ".\nShe" or ".\nHe") .. " is a VIP")
end
return true
end
[/code]

Bruno Carvalho / Ex-Administrador TibiaKing

[email protected]

 

Em 26/12/2016 em 03:47, Spraypaint disse:

A força da alienação vem dessa fragilidade dos indivíduos, quando apenas conseguem identificar o que os separa e não o que os une.

-miltinho

 

wMwSJFE.png?1

 

  • Respostas 16
  • Visualizações 2.2k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • function onLook(cid, thing, position, lookDistance) local storage = 2400 if isPlayer(thing.uid) and getPlayerStorageValue(thing.uid, storage) > 0 then doPlayerSetSpecialDescription(thing.uid,'.\

Postado
  • Autor

Ok, tente


function onLook(cid, thing, position, lookDistance)

local quests = {

2400, 2401, 2402, 2403 -- Change/add numbers to the unique ids on your quest chests.

}


local storages = {

2400 -- Change/add numbers to the storage on your scripts.

}


local completed = {}

if isPlayer(thing.uid) then

for i = 1, #quests do

if getPlayerStorageValue(thing.uid, quests[i]) > 0 then

for i = 1, #storages do

if getPlayerStorageValue(thing.uid, storages[i]) > 0 then

table.insert(completed, 1)

end

end

doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == 0 and ".\nShe" or ".\nHe") .. " has completed ".. #completed .. "/" .. #quests .. " quests")

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getPlayerName(thing.uid) .. " has completed " .. #completed .. "/" .. #quests .. " quests.")

doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, getPlayerName(thing.uid) .. " has completed " .. #storages .. " storage ids.")

elseif (isCreature(uid)) and (isPremium(uid)) then

doPlayerSetSpecialDescription(thing.uid, (getPlayerSex(thing.uid) == 0 and ".\nShe" or ".\nHe") .. " is a VIP")

end

return true

end

Cara não funcionou, e eu queria TIRAR esse look de quests, e deixar apenas se o player for vip aparece HE IS A VIP.

Postado
function onLook(cid, thing, position, lookDistance)

local storage = 2400

if isPlayer(thing.uid) and getPlayerStorageValue(thing.uid, storage) > 0 then

doPlayerSetSpecialDescription(thing.uid,'.\n'..(getPlayerSex(thing.uid) == 0 and 'She' or 'He')..' is Player VIP.')

end			

return true

end

vodkart_logo.png

[*Ninguém será digno do sucesso se não usar suas derrotas para conquistá-lo.*]

 

DISCORDvodkart#6090

 

Postado
  • Autor

function onLook(cid, thing, position, lookDistance)

local storage = 2400

if isPlayer(thing.uid) and getPlayerStorageValue(thing.uid, storage) > 0 then

doPlayerSetSpecialDescription(thing.uid,'.\n'..(getPlayerSex(thing.uid) == 0 and 'She' or 'He')..' is Player VIP.')

end			

return true

end
function onLook(cid, thing, position, lookDistance)

local storage = 2400

if isPlayer(thing.uid) and getPlayerStorageValue(thing.uid, storage) > 0 then

doPlayerSetSpecialDescription(thing.uid,'.\n'..(getPlayerSex(thing.uid) == 0 and 'She' or 'He')..' is Player VIP.')

end			

return true

end

Po vodkart ganhou meu rep, funcionou direitinho, mas aki deixa eu perguntar.

Meu server nao tem sistema de vip por storage e sim PREMIUM, tem como modificar o script? vlw

Postado
function onLook(cid, thing, position, lookDistance)

local storage = 2400

if isPlayer(thing.uid) and isPremium(thing.uid) then

doPlayerSetSpecialDescription(thing.uid,'.\n'..(getPlayerSex(thing.uid) == 0 and 'She' or 'He')..' is Player VIP.')

end			

return true

end

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