opentibiabr / canary

Canary Server 13.x for OpenTibia community.
https://docs.opentibiabr.com/
GNU General Public License v2.0
374 stars 617 forks source link

Pescaria sem minhocas #964

Closed LeeoMacedo closed 1 year ago

LeeoMacedo commented 1 year ago

Priority

Low

Area

What happened?

atualmente a pesca no servidor esta funcionando sem precisar usar worms

data-otservbr-global\scripts\actions\other\fishing mechanical_fishing data-otservbr-global\scripts\actions\other\mechanical_fishing

a linha player:addSkillTries(SKILL_FISHING, 1, true) é a que da skill de fishing ao player, e nos dois arquivos citados acima nao tem nenhuma verificação se o player tem worm ou não. Então eu fiz isto.

if player:removeItem("worm", 1) then
   player:addSkillTries(SKILL_FISHING, 1, true)
else
   player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "You are out of worm.")
end

What OS are you seeing the problem on?

Windows

Code of Conduct

carlospess0a commented 1 year ago

@LeeoMacedo Pode criar um pull request com essas informações?

hriqueXimenes commented 1 year ago

@LeeoMacedo pq nao cria um PR com sua correcao?

majestyotbr commented 1 year ago

https://tibia.fandom.com/wiki/Mechanical_Fishing_Rod A mechanical fishing rod é item de quest e usa nails.