Ir para conteúdo
  • Cadastre-se

Posts Recomendados

1 hora atrás, Thacio disse:

 

 

ficou bugado da pra pega fish skill no chao em todo canto que usar a fish rod e :(

caramba esse script ta dificil 

 

function onUse(cid, item, fromPosition, itemEx, toPosition)

local Bait = 2671 -- ID da isca
local needBait = TRUE -- Precisa de isca? TRUE/FALSE
local FishRate = 1.0 -- Rate de fish
local time = 1 -- Tempo pra pescar denovo (em segundos)
local fishable = {"Water Elemental", "Massive Water Elemental", "Blood Crab", "Quara Constrictor", "Quara Predator Scout", "Quara Predator", "Quara Pincher Scout", "Quara Pincher", "Quara Mantassin Scout", "Quara Mantassin", "Quara Hydromancer Scout", "Quara Constrictor Scout", "Quara Hydromancer"} --Pescados
local fishable1 = {"Fire Elemental", "Fire Devil"} --Pescados
local message1 = "You need "..getItemNameById(Bait).."s to fish!" -- Mensagem se não tiver isca!
local message2 = "You must wait few seconds!"  --Mensagem se tiver pescando muito rápido
 
local storage = 5560
local waterIds = {493, 4608, 4609, 4610, 4611, 4612, 4613, 4614, 4615, 4616, 4617, 4618, 4619, 4620, 4621, 4622, 4623, 4624, 4625}
local larvaIds = {598, 599, 600, 601}

if not getTilePzInfo(getCreaturePosition(cid)) then
	if needBait == TRUE then
		if getPlayerItemCount(cid, Bait) > 0 then
			if exhaustion.get(cid, storage) == FALSE then
				exhaustion.set(cid, storage, time)
				doPlayerAddSkillTry(cid, SKILL_FISHING, 1)
					if isInArray(waterIds, itemEx.itemid) == TRUE then
						doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY)
							if itemEx.itemid ~= 493 then
								if math.random(1, (100 + (getPlayerSkill(cid, SKILL_FISHING) / 10))) <= (getPlayerSkill(cid, SKILL_FISHING)*FishRate) then
									doPlayerRemoveItem(cid, Bait, 1)
									doCreateMonster(fishable[math.random(#fishable)], getPlayerPosition(cid))
								end
							end
					end
					return TRUE
			else
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, message2)
			end
		else
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, message1)
		end
	return FALSE
	end
 
	if needBait == FALSE then
		if exhaustion.get(cid, storage) == FALSE then
			exhaustion.set(cid, storage, time)
			doPlayerAddSkillTry(cid, SKILL_FISHING, 1)
				if isInArray(waterIds, itemEx.itemid) == TRUE then
					doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY)
						if itemEx.itemid ~= 493 then
							if math.random(1, (100 + (getPlayerSkill(cid, SKILL_FISHING) / 10))) <= (getPlayerSkill(cid, SKILL_FISHING)*FishRate) then
								doCreateMonster(fishable[math.random(#fishable)], getPlayerPosition(cid))
							end
						end
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sorry, not possible!")
				end
		return TRUE
		else
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, message2)
		end
	end
	
	if needBait == TRUE then
		if getPlayerItemCount(cid, Bait) > 0 then
			if exhaustion.get(cid, storage) == FALSE then
				exhaustion.set(cid, storage, time)
				doPlayerAddSkillTry(cid, SKILL_FISHING, 1)
					if isInArray(larvaIds, itemEx.itemid) == TRUE then
						doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY)
							if itemEx.itemid ~= 493 then
								if math.random(1, (100 + (getPlayerSkill(cid, SKILL_FISHING) / 10))) <= (getPlayerSkill(cid, SKILL_FISHING)*FishRate) then
									doPlayerRemoveItem(cid, Bait, 1)
									doCreateMonster(fishable1[math.random(#fishable1)], getPlayerPosition(cid))
								end
							end
					end
					return TRUE
			else
				doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, message2)
			end
		else
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, message1)
		end
	return FALSE
	end
 
	if needBait == FALSE then
		if exhaustion.get(cid, storage) == FALSE then
			exhaustion.set(cid, storage, time)
			doPlayerAddSkillTry(cid, SKILL_FISHING, 1)
				if isInArray(larvaIds, itemEx.itemid) == TRUE then
					doSendMagicEffect(toPosition, CONST_ME_LOSEENERGY)
						if itemEx.itemid ~= 493 then
							if math.random(1, (100 + (getPlayerSkill(cid, SKILL_FISHING) / 10))) <= (getPlayerSkill(cid, SKILL_FISHING)*FishRate) then
								doCreateMonster(fishable1[math.random(#fishable1)], getPlayerPosition(cid))
							end
						end
 
				end
		return TRUE
		else
			doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, message2)
		end
	else
		doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Sorry, not possible!")
	end
return FALSE
else
	doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You can't fish in a protection zone!")
end
end

 

Editado por Weslley Kiyo (veja o histórico de edições)
Link para o post
Compartilhar em outros sites
  • Respostas 10
  • Created
  • Última resposta

Top Posters In This Topic

Top Posters In This Topic

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

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

  • Conteúdo Similar

    • Por Jaurez
      .
    • Por Cat
      Em alguns casos, o tibia 8.60 comum não abre de jeito nenhum no map editor, mesmo desmarcando check file signatures e configurando o path corretamente.
       
      Este é o client 8.60 adaptado para o Remere's Map Editor. Resolvi postar já que ele foi removido do site oficial do RME. (ficou apenas a versão para linux lá)
      Se estiver tendo problemas para abrir a versão 8.60, tente utilizar este.
                                                                                                                     
      Baixar o Tibia Client 8.60 que funciona no Remere’s Map Editor
      Essa versão do Tibia 8.60 client resolve o erro unsupported client version ou Could not locate tibia.dat and/or tibia.spr, please navigate to your tibia 8.60 installation folder.
       
      Downloads
      https://tibiaking.com/applications/core/interface/file/attachment.php?id=47333

      Scan: https://www.virustotal.com/gui/file/333e172ac49ba2028db9eb5889994509e7d2de28ebccfa428c04e86defbe15cc
       
    • Por danilo belato
      Fala Galera To Com um problema aki 
       
      quero exporta umas sprites de um server para colocar em outro 
       
      eu clico na sprites ai aparece tds a forma delas do lado de la >>
       
      ai eu clico nela e ponho a opiçao de export mais quando salvo a sprite ela n abri 
       
      aparece isso quando tento vê-la 
       
      visualização não disponível ( no formatos png e bitmap)
       
      Agora no formato idc fala que o paint n pode ler 
       
      me ajudem ae...
    • Por Vitor Bicaleto
      Galera to com o script do addon doll aqui, quando eu digito apenas "!addon" ele aparece assim: Digite novamente, algo está errado!"
      quando digito por exemplo: "!addon citizen" ele não funciona e não da nenhum erro
       
      mesma coisa acontece com o mount doll.. 
    • Por Ayron5
      Substitui uma stone no serve, deu tudo certo fora  esse  erro ajudem  Valendo  Rep+  Grato  

      Erro: data/actions/scripts/boost.lua:557: table index is nil
       [Warning - Event::loadScript] Cannot load script (data/actions/scripts/boost.lua)

      Script:
  • Estatísticas dos Fóruns

    96842
    Tópicos
    519594
    Posts



×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo