Ir para conteúdo

Featured Replies

Postado

ESSE ERRO

http://prntscr.com/b8yirb

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 "She" or "He").." are "..(type < 0 and "Shinobi" or type == 1 and "Genin" or type == 2 and "Chunin" or type == 2 and "Jounin" or type == 3 and "Anbu" or type == 4 and "Anbu" or type == 5 and "Sennin" or type == 6 and "Akatsuki Member"))
end
return true
end

 

script sennin

Mostrar conteúdo oculto

 

 

Script jounin

 

Mostrar conteúdo oculto

 

 

 

script anbus

 

Mostrar conteúdo oculto
Postado
function onLook(cid, thing, position, lookDistance)
	if isPlayer(thing.uid) then
		local var = {[0] = "Shinobi", [1] = "Genin", [2] = "Chunin", [3] = "Jounin", [4] = "Anbu", [5] = "Sennin", [6] = "Akatsuki Member"} 
		local ret = getPlayerStorageValue(thing.uid, 89745) <= 0 and 0 or getPlayerStorageValue(thing.uid, 89745)
		doPlayerSetSpecialDescription(thing.uid, "\n "..(getPlayerSex(thing.uid) == 0 and "She" or "He").." are "..var[ret])
	end
	return true
end

 

Postado
  • Autor
  Em 27/05/2016 em 10:54, Vodkart disse:

function onLook(cid, thing, position, lookDistance)
	if isPlayer(thing.uid) then
		local var = {[0] = "Shinobi", [1] = "Genin", [2] = "Chunin", [3] = "Jounin", [4] = "Anbu", [5] = "Sennin", [6] = "Akatsuki Member"} 
		local ret = getPlayerStorageValue(thing.uid, 89745) <= 0 and 0 or getPlayerStorageValue(thing.uid, 89745)
		doPlayerSetSpecialDescription(thing.uid, "\n "..(getPlayerSex(thing.uid) == 0 and "She" or "He").." are "..var[ret])
	end
	return true
end

 

http://prntscr.com/b92bky

Postado

só se vc tiver usando uma storage maior que 6... Usa assim pra ver

 

obs: é isso mesmo, vc ta dando storage 7 e não colocou nada para especificar o que é a 7!

porque acaba na 6 como "akatsuki member"

 

¬¬

 

 

function onLook(cid, thing, position, lookDistance)
	if isPlayer(thing.uid) then
		local var = {[0] = "Shinobi", [1] = "Genin", [2] = "Chunin", [3] = "Jounin", [4] = "Anbu", [5] = "Sennin", [6] = "Akatsuki Member"} 
		local ret = getPlayerStorageValue(thing.uid, 89745) <= 0 and 0 or getPlayerStorageValue(thing.uid, 89745)
		doPlayerSetSpecialDescription(thing.uid, "\n "..(getPlayerSex(thing.uid) == 0 and "She" or "He").." are "..(not var[ret] and "None" or var[ret]))
	end
	return true
end

 

 

---------------------------------

 

olha aqui o script do sennin, vc botou valor 7

 

npcHandler:say("Voce ja é sennin.", cid)
setPlayerStorageValue(cid,89745,7)

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

Postado
  • Autor
  Em 27/05/2016 em 13:36, Vodkart disse:

só se vc tiver usando uma storage maior que 6... Usa assim pra ver

 

 


function onLook(cid, thing, position, lookDistance)
	if isPlayer(thing.uid) then
		local var = {[0] = "Shinobi", [1] = "Genin", [2] = "Chunin", [3] = "Jounin", [4] = "Anbu", [5] = "Sennin", [6] = "Akatsuki Member"} 
		local ret = getPlayerStorageValue(thing.uid, 89745) <= 0 and 0 or getPlayerStorageValue(thing.uid, 89745)
		doPlayerSetSpecialDescription(thing.uid, "\n "..(getPlayerSex(thing.uid) == 0 and "She" or "He").." are "..(not var[ret] and "None" or var[ret]))
	end
	return true
end

 

 

Vlw Ja rep dps rep +

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.6k

Informação Importante

Confirmação de Termo