Ir para conteúdo

Featured Replies

Postado

Olá Alguem Poderia me ajuda a melhorar essa Script Ja tentei de tudo e não consegui pois eu não manjo nada.( Para quem não entendeu essa Scripts Da um Descrição ao player quando da Look Nele).

Script:

 

function onLook(cid, thing, position, lookDistance)
if isPlayer(thing.uid) then
local type = getPlayerStorageValue(thing.uid, 89745)
doPlayerSetSpecialDescription(thing.uid, "\n "..(getPlayerSex(cid) == 0 and "Ela" or "Ele").." eh "..(type < 0 and "Um Shinobi" or type == 1 and "Um Genin" or type == 2 and "Um Chunin" or type == 3 and "Um Jounin" or type == 4 and "Um Anbu" or type == 5 and "Um Sennin" or type == 6 and "Akatsuki"))
end
return true
end

 

 

Gostaria de melhorar essa Scripts assim: Adicionar Mais Descrição,explicando melhor ao Player Ganhar a Storage 550000,1 ele ganhara o Look " Pertence a Akatsuki"

 

Atualmente a Scripts dexa Assim:

 

15:20 You see Maleee (Level 350). He is a naruto
 Ele eh Um Shinobi.

 

Gostaria que ficasse assim

15:20 You see Maleee (Level 350). He is a naruto
 Ele eh Um Shinobi. Pertence a Akatsuki.

 

Explicando as Storages:

550000,0 == Academia Shinobi

550000,1 == Akatsuki

 

 

upup

Postado
function onLook(cid, thing, position, lookDistance)
if isPlayer(thing.uid) then
local var,ret = getPlayerStorageValue(thing.uid, 89745) < 0 and 0 or getPlayerStorageValue(thing.uid, 89745), getPlayerStorageValue(thing.uid, 550000) < 0 and 0 or getPlayerStorageValue(thing.uid, 550000) 
local a = {[0] = "Shinobi",[1] = "Genin",[2] = "Chunin",[3] = "Jounin",[4] = "Anbu",[5] = "Sennin",[6] = "Akatsuki"}
local b = {[0] = "Academia Shinobi", [1] = "Akatsuki", [2] = "Vila da Folha"}
doPlayerSetSpecialDescription(thing.uid, "\n "..(getPlayerSex(cid) == 0 and "Ela é uma" or "Ele é um").." "..a[var].." e pertence a "..b[ret])
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
  Em 01/06/2016 em 18:48, Vodkart disse:

function onLook(cid, thing, position, lookDistance)
if isPlayer(thing.uid) then
local var,ret = getPlayerStorageValue(thing.uid, 89745) < 0 and 0 or getPlayerStorageValue(thing.uid, 89745), getPlayerStorageValue(thing.uid, 550000) < 0 and 0 or getPlayerStorageValue(thing.uid, 550000) 
local a = {[0] = "Shinobi",[1] = "Genin",[2] = "Chunin",[3] = "Jounin",[4] = "Anbu",[5] = "Sennin",[6] = "Akatsuki"}
local b = {[0] = "Academia Shinobi", [1] = "Akatsuki", [2] = "Vila da Folha"}
doPlayerSetSpecialDescription(thing.uid, "\n "..(getPlayerSex(cid) == 0 and "Ela é uma" or "Ele é um").." "..a[var].." e pertence a "..b[ret])
end
return true
end

 

Obrigado @Vodkart ajudo muito | REP + |

/

16:13 You see Testar (Level 10). He is a naruto
 Ele é um Shinobi e pertence a Akatsuki.

  • 2 months later...
Postado
  Em 01/06/2016 em 18:48, Vodkart disse:

function onLook(cid, thing, position, lookDistance)
if isPlayer(thing.uid) then
local var,ret = getPlayerStorageValue(thing.uid, 89745) < 0 and 0 or getPlayerStorageValue(thing.uid, 89745), getPlayerStorageValue(thing.uid, 550000) < 0 and 0 or getPlayerStorageValue(thing.uid, 550000) 
local a = {[0] = "Shinobi",[1] = "Genin",[2] = "Chunin",[3] = "Jounin",[4] = "Anbu",[5] = "Sennin",[6] = "Akatsuki"}
local b = {[0] = "Academia Shinobi", [1] = "Akatsuki", [2] = "Vila da Folha"}
doPlayerSetSpecialDescription(thing.uid, "\n "..(getPlayerSex(cid) == 0 and "Ela é uma" or "Ele é um").." "..a[var].." e pertence a "..b[ret])
end
return true
end

 

pode arrumar o meu pra min? sennin e 5 e akat e 6

O rei de seu proprio destino é aquele que luta pela gloria do amanhã!
Discord : ZoR#9373


 

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