Ir para conteúdo

Featured Replies

Postado

Olá a todos, Gostaria de colocar uma contagem nessa parte do script ou seja, aparecer no default em laranja a cada mob que for morto.

 

Script: (Creaturescript)

	if(isMonster(target) == TRUE) then
		if getCreatureName(target) == "Renegade" then
			if(getPlayerStorageValue(cid,19100) <= 0) then
			setPlayerStorageValue(cid, 19100, 1)
			else
			setPlayerStorageValue(cid, 19100, getPlayerStorageValue(cid,19100)+1)
			end
		end

Essa parte fica no final do script:

if(getPlayerStorageValue(cid,19100) >= 75) then
			setPlayerStorageValue(cid, 9100, 1)

 

Essa aqui e onde fica no npc:

		elseif (isFocused(cid) and msg == "c rank") and getPlayerStorageValue(cid,9001) == 2 then
                selfSay("Mission {C-2}: Kill 75 Renegades then back and say {mission}.", cid)
		
		elseif (isFocused(cid) and msg == "mission") and getPlayerStorageValue(cid,9001) == 2 and getPlayerStorageValue(cid,9100) == 1 then
		doPlayerAddExp(cid,75000)
                doPlayerAddItem(cid,2160,3)
		setPlayerStorageValue(cid,9001,3)
		selfSay("Well, ".. getCreatureName(cid) ..". mission C-2 Success!", cid)

 

Resolvido por Vodkart

Ir para solução
  • Respostas 8
  • Visualizações 662
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • @leozincorsair    if isMonster(target) == true and getCreatureName(target) == "Renegade" then local amount = getPlayerStorageValue(cid,19100) <= 0 and 0 or getPlayerStorageValue(cid, 19

  • @leozincorsair    local tab = { ["Renegade"] = {storage = 19100, amount = 75, storage_reward = 9100}, ["Nukenin"] = {storage = 19101, amount = 100, storage_reward = 9101}, ["Anbu"] = {s

  • luanluciano93
    luanluciano93

    if(isMonster(target) == true) then if getCreatureName(target) == "Renegade" then if(getPlayerStorageValue(cid,19100) <= 0) then setPlayerStorageValue(cid, 19100, 1) doPlayerSendTextMessa

Posted Images

Postado
Em 20/06/2020 em 13:53, leozincorsair disse:

Script: (Creaturescript)

	if(isMonster(target) == true) then
		if getCreatureName(target) == "Renegade" then
			if(getPlayerStorageValue(cid,19100) <= 0) then
			setPlayerStorageValue(cid, 19100, 1)
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "1/75 Renegades mortos.")
			else
			setPlayerStorageValue(cid, 19100, getPlayerStorageValue(cid,19100) + 1)
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, getPlayerStorageValue(cid,19100) .. "/75 monstros Renegades mortos.")
			end
		end

 

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

Postado
  • Autor
5 horas atrás, luanluciano93 disse:

	if(isMonster(target) == true) then
		if getCreatureName(target) == "Renegade" then
			if(getPlayerStorageValue(cid,19100) <= 0) then
			setPlayerStorageValue(cid, 19100, 1)
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "1/75 Renegades mortos.")
			else
			setPlayerStorageValue(cid, 19100, getPlayerStorageValue(cid,19100) + 1)
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, getPlayerStorageValue(cid,19100) .. "/75 monstros Renegades mortos.")
			end
		end

 

Obrigado , me ajudou mttt <3

5 horas atrás, luanluciano93 disse:

	if(isMonster(target) == true) then
		if getCreatureName(target) == "Renegade" then
			if(getPlayerStorageValue(cid,19100) <= 0) then
			setPlayerStorageValue(cid, 19100, 1)
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "1/75 Renegades mortos.")
			else
			setPlayerStorageValue(cid, 19100, getPlayerStorageValue(cid,19100) + 1)
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, getPlayerStorageValue(cid,19100) .. "/75 monstros Renegades mortos.")
			end
		end

 

Só tem um probleminha, quando termina de matar os 75 a contagem continua mesmo eu entregando a missão pro npc.

 

Screenshot_54.png

Postado

@leozincorsair 

 

	if isMonster(target) == true and getCreatureName(target) == "Renegade" then
		local amount = getPlayerStorageValue(cid,19100) <= 0 and 0 or getPlayerStorageValue(cid, 19100)
			if amount < 75 then
				setPlayerStorageValue(cid, 19100, amount+1)
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19100).."/75 Renegades.")
			end
		end

 

vodkart_logo.png

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

 

DISCORDvodkart#6090

 

Postado
  • Autor
2 horas atrás, Vodkart disse:

@leozincorsair 

 


	if isMonster(target) == true and getCreatureName(target) == "Renegade" then
		local amount = getPlayerStorageValue(cid,19100) <= 0 and 0 or getPlayerStorageValue(cid, 19100)
			if amount < 75 then
				setPlayerStorageValue(cid, 19100, amount+1)
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Você matou "..getPlayerStorageValue(cid, 19100).."/75 Renegades.")
			end
		end

deu esse error

 

Screenshot_55.png

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