Otservbr Global Versions Save

OTServBR-Global datapack was migrated to Canary repository: https://github.com/opentibiabr/canary

v1.5.0

1 year ago

What's Changed (OTServBR-Global datapack)

New Contributors

Full Changelog: https://github.com/opentibiabr/otservbr-global/compare/v1.4.0...v1.5.0

What's Changed (Canary source)

New Contributors

Full Changelog: https://github.com/opentibiabr/canary/compare/v1.4.0...v1.5.0

stable-v1.4.0

1 year ago

Release version: stable v1.4.0 -

Download Tibia Client 12.86.11871

Download OTClient 1.0, thanks for @mehah

Fixes

Features/Enhancements

New Lua functions

  • item:setDuration(minduration, maxduration = 0, decayid = 0, showDuration = true)

GitHub

Closed issues:

https://github.com/opentibiabr/canary/issues/374, https://github.com/opentibiabr/canary/issues/#421

patch-v1.3.1

2 years ago

Release version: Stable v1.3.1 (Patch) - e06dd7ff

Download Tibia Client 12.86.11871

Download OTClient 1.0, thanks for @mehah

Fixes

  • Crash related to creature death (@dudantas, https://github.com/opentibiabr/canary/commit/03e8e09e) The crash happened in a specific scenario, when the creature was removed (and recreated) and the target reference was not removed, when it tried to target another creature, it crashed.
  • Market issue related to stash items and gold duplication (@marcosvf132, https://github.com/opentibiabr/canary/commit/7082aff3) There is an issue on the market that was making the item remove count 0 when accepting buy offer. Issue reported by @Sparkz023

Changes from Major Release version: stable 1.3.0

Canary:

Features/Enhancements

New Lua functions

Fix

GitHub

Closed issues:

https://github.com/opentibiabr/canary/issues/58, https://github.com/opentibiabr/canary/issues/60, https://github.com/opentibiabr/canary/issues/61, https://github.com/opentibiabr/canary/issues/64, https://github.com/opentibiabr/canary/issues/65, https://github.com/opentibiabr/canary/issues/76, https://github.com/opentibiabr/canary/issues/77, https://github.com/opentibiabr/canary/issues/78, https://github.com/opentibiabr/canary/issues/79, https://github.com/opentibiabr/canary/issues/83, https://github.com/opentibiabr/canary/issues/85, https://github.com/opentibiabr/canary/issues/87, https://github.com/opentibiabr/canary/issues/90, https://github.com/opentibiabr/canary/issues/92, https://github.com/opentibiabr/canary/issues/93, https://github.com/opentibiabr/canary/issues/123, https://github.com/opentibiabr/canary/issues/159, https://github.com/opentibiabr/canary/issues/216, https://github.com/opentibiabr/canary/issues/229, https://github.com/opentibiabr/canary/issues/240, https://github.com/opentibiabr/canary/issues/241, https://github.com/opentibiabr/canary/issues/243, https://github.com/opentibiabr/canary/issues/244, https://github.com/opentibiabr/canary/issues/245, https://github.com/opentibiabr/canary/issues/246, https://github.com/opentibiabr/canary/issues/252, https://github.com/opentibiabr/canary/issues/256, https://github.com/opentibiabr/canary/issues/257, https://github.com/opentibiabr/canary/issues/258, https://github.com/opentibiabr/canary/issues/260, https://github.com/opentibiabr/canary/issues/265, https://github.com/opentibiabr/canary/issues/267, https://github.com/opentibiabr/canary/issues/275, https://github.com/opentibiabr/canary/issues/276, https://github.com/opentibiabr/canary/issues/277, https://github.com/opentibiabr/canary/issues/285, https://github.com/opentibiabr/canary/issues/288, https://github.com/opentibiabr/canary/issues/304, https://github.com/opentibiabr/canary/issues/311, https://github.com/opentibiabr/canary/issues/312, https://github.com/opentibiabr/canary/issues/313, https://github.com/opentibiabr/canary/issues/314, https://github.com/opentibiabr/canary/issues/315, https://github.com/opentibiabr/canary/issues/320, https://github.com/opentibiabr/canary/issues/340

OTServBR-Global Modifications

Enhancements/Features

Fixed problems (Global):

  • Convert ids from dawnport quest to client id and register items for knight (@painer15999, bf89f028)
  • Fix npc puffels npcHandler variable (@soderlight, 1a7518e4)
  • Fix script decay.lua for work only for players (@dudantas, b0104452)
  • Fix script potions.lua effect and create flask inside container (@omeranha, e26f8642)
  • Fix wrong heavy package ID (rashid quest) (@soderlight, a503d78e)
  • Fix npcs shop and reward chest attribute (@dudantas, 3c3b9c71)
  • Fix items ids and attributes (@majestyotbr, 30469967)
  • Remove benchmark details (@andersonfaaria, de39c8f6)
  • Added missing royal spear config to npcs: Brengus, Cedrik, Robert and Willard (@kasiula03, e56efe8b)
  • Fix NPCs Captain Max (Calassa), Grizzly Adams and Melfar (@soderlight, 3395293f)
  • Added corpseType to some corpses (@rechdan, 4104b3f1)
  • (Canary Compatibility) Fix item tier (@marcosvf132, d2b5d5db) To syncronize Canary and OTServBR-Global changes. https://github.com/opentibiabr/canary/commit/4c7a35a382f15de5c5bb07df9c6bacb094e4e4f4
  • Convert map 'nightmare isle/darashia-west' from serverID to clientID (@marcosvf132, f344d0b1)
  • Modifications on Player:onLook, fix quests.lua order, remove duplicate ids and fix suggestions from lua extension (@beats-dh, dd353ff6)
  • Many item.xml fixes + login.lua indentation (@guispiller, c095b328) This changes are to fix some missing otbr/canary converting ids, there were some decays, rotates and wraps with the wrong IDs QoL on channels login.lua
  • Few hireling issues (@marcosvf132, 279bf759) Fix hireling outfit change client crash. Fix hireling server crash when saying 'hi - lamp - yes'.
  • Fix familiar not entering pz zone and improvement to familiar spells (@dudantas, 4416bdfb)
  • Fix minotaur cult monsters (@dybik08, 3f46da44) This contains fixes for minotaur cult monsters.
  • Fix "Wound" bestiary charm register (@marcosvf132, 9a9c34ce) Wound bestiary charm was not showing on the cyclopedia charm store due to one miss config on the Lua file.
  • Fix talkDelay from npcs (@dudantas, 712b9841) Resolves #486 Added delay to the function "NpcHandler:setMessage" and fixed talkDelay from the others functions. The modifications only apply to speeches that contain more than one message.
  • Fix nil errors on somes scripts (@dudantas, 723d6970)
  • Register missing enchanted werewolf amulet (@dudantas, 8bbe05dc)
  • Somes npcs fixes (wrong functions and missing variables) (@dudantas, c538fcff) Set from delayedSay and selfSay to npcHandler:say and fixed somes missing/wrong variables Fixed hireling crash (bad handle on SayEvent function)
  • Fix allowMovement storage typo (@gpedro, 174f4d1d) Fixed typo from STORAGE to Storage in "allowMovement" and "hasAllowMovement" functions
  • Fix party skills (@kasiula03, e85fcac3) Fix naming for variable parameter in onCastSpell for train_party, heal_party and protect_party scripts. Additionally, shielding buff has been changed from 2 to 3 to match real tibia skill.
  • Fix key doors (not registered key 2969), dawnport quest and thieves guild quest (@dudantas, 354b7221)
  • Fix bug in enchanted werewolf and enchanted theurgic amulets and registed cobra crossbow attributes (@painer15999, 3fb9cf0)
  • Fix message type of locked door from event advance to info descr (@travisani, 099f34fa)
  • Remove unsafe use of AddEvent in Oberon (@gpedro, @gesior, ebe238e4) Resolves #476
  • Fix revision on monster flags and elemental damages (@guispiller, ad635b6a)
  • Fix healing source on 'mass healing' and potions (@marcosvf132, 1c70b1a3) Using the spell 'exura gran mas res' or using a health potion on another player is not registering the source of the action. This PR add it so the server, the client and other systems can track the action how it should be.
  • Fix Client IDs on NPCs and quest_system2 (@guispiller, 65aa5f1)
  • Convert ids to client id, storages fixes and quests fixes (@soderlight, 70bd1816)
  • Fixing wrong aid and uid conversions (@guispiller, a8206487)
  • Remove unsafe addEvent from gamestore (@andersonfaaria, 83754e7b)
  • Fix Destroy Rune field list (@andersonfaaria, fb285f40) Moved lib table to script rune Converted server ids to client id
  • Fix NPCs not working due to wrong parameters (@guispiller, d02d8473)
  • Fix nil storages from ferumbras ascendant quest (@dudantas, d388b133)
  • Fix keys would be given without proper key actions (@lucascebertin, ee549854) Fix issue #528 where some keys are given without proper key actions.
  • Fix weapons shoot effects and eldritch wands/rods not attacking (@guispiller, 8e1eb612)
  • Add missing outfits and mounts to talkactions (@daanyx, 75ea3ec6)
  • (Npc) Convert shop from Gnomally to client id (@gpedro, 556a5dab)
  • (Npc) Update items from Willard shop sell (@sircurse, 1212d2eb)
  • (Npc) fix Eruaran addons (@gpedro, bb926cbd)
  • (Canary Compatibility) - Prey system rework (CPP) and Hunting Task system (@marcosvf132, db97c32a) This PR is a complementation of this Canary commit: https://github.com/opentibiabr/canary/commit/42af88d201cd3d4afed91445b1ac13ebabf76986 Complete rewrite of old prey system from LUA to CPP and implementation of Hunting tasks system.
  • Fix mana potion not healing mana (@dudantas, e101237c)
  • (Npc) changed prices in NPC Imbuement to avoid illicit enrichment (@sircurse, 941aa233) This NPC was selling imbuements items at a very low price, for instance, you could buy "Some Grimeleech Wings" at 100gps and sell this same item to Yasir by 1200gps
  • Rework and fix on kegs and casks scripts (@dudantas, 9d9a2e81) Script logic reworked, fixed some bugs and removed unnecessary checks
  • Fix offline training bed (bed graphics was not updating when player went to sleep) (@sircurse, 2a3bfdde) Fix to issue #526
  • Fix rune "id" method incrementing item id in the items.xml (@dudantas, bdc756af) Canary commit (optional): https://github.com/opentibiabr/canary/commit/0ea8dd6d7acc15c9213d760a709ec1a6478d478b
  • Fix npcs name on script "npcs by time" and fix on startup spawn npcs by night/day (@dudantas, 6eeedef0) Added the monsters in npcs.xml, attached the NPCS name in the Global Event script and added the Respawntype tags for whether each NPC must be created (when opening the server) during the day or night
  • (Canary Compatibility) Rework on fluids colors and new monster race type (INK) (@marcosvf132, 87e53b93)
  • Fix for cask to be used in house only and removing wrong charges and empty potion flasks (@dudantas, ecbfdcbe)

Closed issues:

#279, #281, #282, #286, #292, #299, #313, #319, #336, #357, #358, #376, #385, #386, #406, #409, #424, #429, #432, #433, #438, #439, #441, #447, #449, #450, #451, #452, #453, #456, #459, #460, #462, #468, #474, #476, #478, #481, #484, #486, #494, #495, #497, #500, #502, #506, #509, #510, #520, #522, #526, #527, #528, #530, #534, #552, #563

Global map new areas and fixes (Credits to @majestyotbr, @JohneVictor, @guispiller):

Complete modifications in the commit: https://github.com/opentibiabr/otservbr-global/commit/2d59b5e9a4643e14d6d81c6f62fadeef88bb0526

Antrum of the Fallen - pos 32603, 31844, 10; Bounacean Lion - pos 32470, 32492, 8; Boss Room Neferi The Spy - 33886, 31477, 6, ; Boss Room Sister Hetai - 33883, 31467, 9,; Cursed Crypt - pos 32601, 31861, 9; Deathling Menace - pos 32366, 32543, 8; Dwelling of the Forgotten - pos 32062, 31461, 11; Forest of Life - pos 32399, 32496, 11; Forge (Thanks for Stewart) - pos 32208, 32281, 7; Gaffir Secret Room - 33302, 31196, 9; Grotto of the Lost - pos 32123, 31442, 14; Ruins of Nuur - pos 33806, 31692, 8; Salt Caves - pos 33970, 31652, 7; Too Hot To Handle - pos 32603, 31844, 10; Task: Lava Fishing - pos 32532, 31086, 15; Task: The Mega Magmaoid - pos 32529, 31154, 15; Room Lesh The Seer - pos 32406, 32470, 6; Stealth Mission - pos 33894, 31311, 15; Supply Mission - pos 33964, 31307, 15; 1st Mate Ratticus - pos 33897, 31391, 15; The Trekkie's Journey - pos 33960, 31375, 15; Haunted House - pos 32690, 32241, 6; Tomb of Scarlet - pos 33101, 32630, 8; Tibia Cults - pos 33039, 31911, 14; Hunt Feaster of Soul - pos 31912, 32355, 8; Boss Room The Brainstealer - pos 32539, 31122, 15; Rascacoon Kraken Boss - pos 33803, 31390, 7, / 33733, 31187, 7; A Pirates Tail - pos 33927, 31364, 7;

stable-v1.3.0

2 years ago

Tibia Client 12.86.11871

OTClient 1.0

Canary:

Features/Enhancements

New Lua functions

Fix

GitHub

Closed issues:

https://github.com/opentibiabr/canary/issues/58, https://github.com/opentibiabr/canary/issues/60, https://github.com/opentibiabr/canary/issues/61, https://github.com/opentibiabr/canary/issues/64, https://github.com/opentibiabr/canary/issues/65, https://github.com/opentibiabr/canary/issues/76, https://github.com/opentibiabr/canary/issues/77, https://github.com/opentibiabr/canary/issues/78, https://github.com/opentibiabr/canary/issues/79, https://github.com/opentibiabr/canary/issues/83, https://github.com/opentibiabr/canary/issues/85, https://github.com/opentibiabr/canary/issues/87, https://github.com/opentibiabr/canary/issues/90, https://github.com/opentibiabr/canary/issues/92, https://github.com/opentibiabr/canary/issues/93, https://github.com/opentibiabr/canary/issues/123, https://github.com/opentibiabr/canary/issues/159, https://github.com/opentibiabr/canary/issues/216, https://github.com/opentibiabr/canary/issues/229, https://github.com/opentibiabr/canary/issues/240, https://github.com/opentibiabr/canary/issues/241, https://github.com/opentibiabr/canary/issues/243, https://github.com/opentibiabr/canary/issues/244, https://github.com/opentibiabr/canary/issues/245, https://github.com/opentibiabr/canary/issues/246, https://github.com/opentibiabr/canary/issues/252, https://github.com/opentibiabr/canary/issues/256, https://github.com/opentibiabr/canary/issues/257, https://github.com/opentibiabr/canary/issues/258, https://github.com/opentibiabr/canary/issues/260, https://github.com/opentibiabr/canary/issues/265, https://github.com/opentibiabr/canary/issues/267, https://github.com/opentibiabr/canary/issues/275, https://github.com/opentibiabr/canary/issues/276, https://github.com/opentibiabr/canary/issues/277, https://github.com/opentibiabr/canary/issues/285, https://github.com/opentibiabr/canary/issues/288, https://github.com/opentibiabr/canary/issues/304, https://github.com/opentibiabr/canary/issues/311, https://github.com/opentibiabr/canary/issues/312, https://github.com/opentibiabr/canary/issues/313, https://github.com/opentibiabr/canary/issues/314, https://github.com/opentibiabr/canary/issues/315, https://github.com/opentibiabr/canary/issues/320, https://github.com/opentibiabr/canary/issues/340

OTServBR-Global Modifications

Enhancements/Features

Fixed problems (Global):

  • Convert ids from dawnport quest to client id and register items for knight (@painer15999, bf89f028)
  • Fix npc puffels npcHandler variable (@soderlight, 1a7518e4)
  • Fix script decay.lua for work only for players (@dudantas, b0104452)
  • Fix script potions.lua effect and create flask inside container (@omeranha, e26f8642)
  • Fix wrong heavy package ID (rashid quest) (@soderlight, a503d78e)
  • Fix npcs shop and reward chest attribute (@dudantas, 3c3b9c71)
  • Fix items ids and attributes (@majestyotbr, 30469967)
  • Remove benchmark details (@andersonfaaria, de39c8f6)
  • Added missing royal spear config to npcs: Brengus, Cedrik, Robert and Willard (@kasiula03, e56efe8b)
  • Fix NPCs Captain Max (Calassa), Grizzly Adams and Melfar (@soderlight, 3395293f)
  • Added corpseType to some corpses (@rechdan, 4104b3f1)
  • (Canary Compatibility) Fix item tier (@marcosvf132, d2b5d5db) To syncronize Canary and OTServBR-Global changes. https://github.com/opentibiabr/canary/commit/4c7a35a382f15de5c5bb07df9c6bacb094e4e4f4
  • Convert map 'nightmare isle/darashia-west' from serverID to clientID (@marcosvf132, f344d0b1)
  • Modifications on Player:onLook, fix quests.lua order, remove duplicate ids and fix suggestions from lua extension (@beats-dh, dd353ff6)
  • Many item.xml fixes + login.lua indentation (@guispiller, c095b328) This changes are to fix some missing otbr/canary converting ids, there were some decays, rotates and wraps with the wrong IDs QoL on channels login.lua
  • Few hireling issues (@marcosvf132, 279bf759) Fix hireling outfit change client crash. Fix hireling server crash when saying 'hi - lamp - yes'.
  • Fix familiar not entering pz zone and improvement to familiar spells (@dudantas, 4416bdfb)
  • Fix minotaur cult monsters (@dybik08, 3f46da44) This contains fixes for minotaur cult monsters.
  • Fix "Wound" bestiary charm register (@marcosvf132, 9a9c34ce) Wound bestiary charm was not showing on the cyclopedia charm store due to one miss config on the Lua file.
  • Fix talkDelay from npcs (@dudantas, 712b9841) Resolves #486 Added delay to the function "NpcHandler:setMessage" and fixed talkDelay from the others functions. The modifications only apply to speeches that contain more than one message.
  • Fix nil errors on somes scripts (@dudantas, 723d6970)
  • Register missing enchanted werewolf amulet (@dudantas, 8bbe05dc)
  • Somes npcs fixes (wrong functions and missing variables) (@dudantas, c538fcff) Set from delayedSay and selfSay to npcHandler:say and fixed somes missing/wrong variables Fixed hireling crash (bad handle on SayEvent function)
  • Fix allowMovement storage typo (@gpedro, 174f4d1d) Fixed typo from STORAGE to Storage in "allowMovement" and "hasAllowMovement" functions
  • Fix party skills (@kasiula03, e85fcac3) Fix naming for variable parameter in onCastSpell for train_party, heal_party and protect_party scripts. Additionally, shielding buff has been changed from 2 to 3 to match real tibia skill.
  • Fix key doors (not registered key 2969), dawnport quest and thieves guild quest (@dudantas, 354b7221)
  • Fix bug in enchanted werewolf and enchanted theurgic amulets and registed cobra crossbow attributes (@painer15999, 3fb9cf0)
  • Fix message type of locked door from event advance to info descr (@travisani, 099f34fa)
  • Remove unsafe use of AddEvent in Oberon (@gpedro, @gesior, ebe238e4) Resolves #476
  • Fix revision on monster flags and elemental damages (@guispiller, ad635b6a)
  • Fix healing source on 'mass healing' and potions (@marcosvf132, 1c70b1a3) Using the spell 'exura gran mas res' or using a health potion on another player is not registering the source of the action. This PR add it so the server, the client and other systems can track the action how it should be.
  • Fix Client IDs on NPCs and quest_system2 (@guispiller, 65aa5f1)
  • Convert ids to client id, storages fixes and quests fixes (@soderlight, 70bd1816)
  • Fixing wrong aid and uid conversions (@guispiller, a8206487)
  • Remove unsafe addEvent from gamestore (@andersonfaaria, 83754e7b)
  • Fix Destroy Rune field list (@andersonfaaria, fb285f40) Moved lib table to script rune Converted server ids to client id
  • Fix NPCs not working due to wrong parameters (@guispiller, d02d8473)
  • Fix nil storages from ferumbras ascendant quest (@dudantas, d388b133)
  • Fix keys would be given without proper key actions (@lucascebertin, ee549854) Fix issue #528 where some keys are given without proper key actions.
  • Fix weapons shoot effects and eldritch wands/rods not attacking (@guispiller, 8e1eb612)
  • Add missing outfits and mounts to talkactions (@daanyx, 75ea3ec6)
  • (Npc) Convert shop from Gnomally to client id (@gpedro, 556a5dab)
  • (Npc) Update items from Willard shop sell (@sircurse, 1212d2eb)
  • (Npc) fix Eruaran addons (@gpedro, bb926cbd)
  • (Canary Compatibility) - Prey system rework (CPP) and Hunting Task system (@marcosvf132, db97c32a) This PR is a complementation of this Canary commit: https://github.com/opentibiabr/canary/commit/42af88d201cd3d4afed91445b1ac13ebabf76986 Complete rewrite of old prey system from LUA to CPP and implementation of Hunting tasks system.
  • Fix mana potion not healing mana (@dudantas, e101237c)
  • (Npc) changed prices in NPC Imbuement to avoid illicit enrichment (@sircurse, 941aa233) This NPC was selling imbuements items at a very low price, for instance, you could buy "Some Grimeleech Wings" at 100gps and sell this same item to Yasir by 1200gps
  • Rework and fix on kegs and casks scripts (@dudantas, 9d9a2e81) Script logic reworked, fixed some bugs and removed unnecessary checks
  • Fix offline training bed (bed graphics was not updating when player went to sleep) (@sircurse, 2a3bfdde) Fix to issue #526
  • Fix rune "id" method incrementing item id in the items.xml (@dudantas, bdc756af) Canary commit (optional): https://github.com/opentibiabr/canary/commit/0ea8dd6d7acc15c9213d760a709ec1a6478d478b
  • Fix npcs name on script "npcs by time" and fix on startup spawn npcs by night/day (@dudantas, 6eeedef0) Added the monsters in npcs.xml, attached the NPCS name in the Global Event script and added the Respawntype tags for whether each NPC must be created (when opening the server) during the day or night
  • (Canary Compatibility) Rework on fluids colors and new monster race type (INK) (@marcosvf132, 87e53b93)
  • Fix for cask to be used in house only and removing wrong charges and empty potion flasks (@dudantas, ecbfdcbe)

Closed issues:

#279, #281, #282, #286, #292, #299, #313, #319, #336, #357, #358, #376, #385, #386, #406, #409, #424, #429, #432, #433, #438, #439, #441, #447, #449, #450, #451, #452, #453, #456, #459, #460, #462, #468, #474, #476, #478, #481, #484, #486, #494, #495, #497, #500, #502, #506, #509, #510, #520, #522, #526, #527, #528, #530, #534, #552, #563

Global map new areas and fixes (Credits to @majestyotbr, @JohneVictor, @guispiller):

Complete modifications in the commit: https://github.com/opentibiabr/otservbr-global/commit/2d59b5e9a4643e14d6d81c6f62fadeef88bb0526

Antrum of the Fallen - pos 32603, 31844, 10; Bounacean Lion - pos 32470, 32492, 8; Boss Room Neferi The Spy - 33886, 31477, 6, ; Boss Room Sister Hetai - 33883, 31467, 9,; Cursed Crypt - pos 32601, 31861, 9; Deathling Menace - pos 32366, 32543, 8; Dwelling of the Forgotten - pos 32062, 31461, 11; Forest of Life - pos 32399, 32496, 11; Forge (Thanks for Stewart) - pos 32208, 32281, 7; Gaffir Secret Room - 33302, 31196, 9; Grotto of the Lost - pos 32123, 31442, 14; Ruins of Nuur - pos 33806, 31692, 8; Salt Caves - pos 33970, 31652, 7; Too Hot To Handle - pos 32603, 31844, 10; Task: Lava Fishing - pos 32532, 31086, 15; Task: The Mega Magmaoid - pos 32529, 31154, 15; Room Lesh The Seer - pos 32406, 32470, 6; Stealth Mission - pos 33894, 31311, 15; Supply Mission - pos 33964, 31307, 15; 1st Mate Ratticus - pos 33897, 31391, 15; The Trekkie's Journey - pos 33960, 31375, 15; Haunted House - pos 32690, 32241, 6; Tomb of Scarlet - pos 33101, 32630, 8; Tibia Cults - pos 33039, 31911, 14; Hunt Feaster of Soul - pos 31912, 32355, 8; Boss Room The Brainstealer - pos 32539, 31122, 15; Rascacoon Kraken Boss - pos 33803, 31390, 7, / 33733, 31187, 7; A Pirates Tail - pos 33927, 31364, 7;

stable-v1.2.0

2 years ago

Canary Modifications

Support client 12.85.11525 (author: @marcosvf132, commits: (https://github.com/opentibiabr/canary/commit/e9c85a5, https://github.com/opentibiabr/canary/commit/3144b16, https://github.com/opentibiabr/canary/commit/cc98f40)

Modified (Canary):

  • [Lua/Pack]: Remove lua tests, the files no longer exist (author: @omeranha, commit: (https://github.com/opentibiabr/canary/commit/9a21ad4)
  • [Source]: Enhancement - Automatically unzip world.zip in world folder if otbm file doesn't exist on server start (author: @omeranha, commit: (https://github.com/opentibiabr/canary/commit/6b23e6f) This change will allow the server to automatically extract the map from the zip (to the global server) in case the .otbm file is not found. In this commit is need new lib libzippp, uses ./vcpkg install libzippp

Fixed problems (Canary):

  • [Source]: Npc Shop Enhancement - Allow an item of the same id to be added multiple times for the same npc (author: @dudantas, commit: (https://github.com/opentibiabr/canary/commit/9c257da) Set for use name of the item instead of id in the ShopInfoMap vector This will allow adding items with the same item ids and customizing the item name Fixed somes npcs shop bugs

  • [Source]: ConfigManager - fix (#208) typo from "freeQuests" to "toggleFreeQuest" (author: @dudantas, commit: 0c08898)

  • [Source]: Added new method ```vocation:getBaseAttackSpeed```` for offline training and exercise training script (author: @Rechdan, commit: (https://github.com/opentibiabr/canary/commit/8315cf5)

  • [Source]: Added new Lua method configManager.getFloat (author: @Rechdan, commit: (https://github.com/opentibiabr/canary/commit/2811015) Fix nil value in the offline training and exercise training script

  • [Source]: Fix support rates regen, removed multiplication and modified to use getBaseAttackSpeed instead of getAttackSpeed (author: @dudantas, commit: (https://github.com/opentibiabr/canary/commit/29846fa)

  • [Source]: Set item tier bytes from "0" to "1" from protocol 12.85 (author: @dudantas, commit: (https://github.com/opentibiabr/canary/commit/cc98f40) Modified item tier byte to be 1 by default. Added one static_cast<uint8_t> in the function "item->getImbuementSlot()", for resolve review check from CodeQL.

OTServBR-Global Modifications

Modified (Global):

  • [Lua]: NPC's Revscriptsys - Fix lookTypeEx typo and convert to clientId (author: @daanyx, commit: 2cc1a6db1) Fixed bug in "lookTypeex" variable to "lookTypeEx" and converted ids to clientId.
  • [Lua/Pack]: Protocol 12.85 - Support for client version 12.85 datapack (author: @marcosvf132, commit: a29bc41c1) Protocol 12.85 datapack Syncronize datapack with Canary 12.85 commit: https://github.com/opentibiabr/canary/commit/e9c85a5a0893981d57af30d979a23d259734119c Small fix on the "loadLuaMapAction" function that was breaking the map loading by LUA. The changes on this commit is following the same changes on the pull request :https://github.com/opentibiabr/canary/pull/203

Fixed problems (Global):

  • [Lua]: NPC's Revscriptsys - Fixed the bug in the shops of npcs that have the same item for sell and buy (author: @dudantas, commit: c1eb738e4) The way the shop was converted doesn't work to have two tables separating the "sell" and the "buy", it needs to be in a single table, thus preventing the same item from appearing in the sell and not appearing in the buy. I took advantage of the pull request to move the functions to the correct locations, thus getting more organized. Fixed others bugs related to the npcs
  • [Lua]: Fix addEvent from grimvale quest calling nil function (author: @dudantas, commit: c20b80048)
  • [Lua]: Change flag from "pet" tag for "familiar", fix the bug where the summon doesn't enter pz (author: @dudantas, commit: 38bbf2d67)
  • [Lua]: Fix lower/upper case in the unscripted_equipments and unscripted_weapons (author: @dudantas, commit: 8a7e8e3ad)
  • [Lua]: Convert id from magic gold converter to client id (author: @painer15999, commit: a4a024d77)
  • [Lua]: Fix lion shield on unscripted equipments table (author: @painer15999, commit: 767f9e05a)

stable-v1.1.1

2 years ago

Support client 12.72.11206 and otclient (pull in progress)

Global datapack lua code: https://github.com/opentibiabr/otservbr-global/commit/e4524f8fa006b7d14e801413de64c7d09df23423 Canary source code: https://github.com/opentibiabr/canary/commit/6388163d28d54878335e3c9ee33c008ddf587b2f)

Adjusted:

  • Interval that npcs send messages in the default chat,
  • Speed that npcs walk (baseSpeed),
  • Interval of steps of npcs to 2 seconds (walkInterval),
  • Fixed a small bug in the npc shop that prevented items from appearing in the trade in certain scenarios.

stable-v1.1.0

2 years ago

Support client 12.72.11206 and otclient (pull in progress)

image

Description: NPCS converted to revscriptsys and removed the npcs xml Changed jiddo lib to work with revscriptsys npcs, also making several improvements to the lib. And several other functions that have been improved or rework. We also removed all the code from the lib that parse/handle the npcs xml.

Module shop has been removed (a big improvement was made where the shop is now in npcType, more easily and is called directly from source).

Added back storage of npcs spawns in the world folder (there was also a reorganization, where npcs and monsters will be in separate files from now on, as it will be possible to see npcs on the map).

Several other modifications and adaptations to make compatibility possible.

NOTE: This commit (1ffd9f109) will work directly with the commit: https://github.com/opentibiabr/canary/commit/0397d0c97e6191d1a64503970d21657eeb2f8886, from Canary repository. After this commit, the OTServBR-Global will use the Canary Engine, there will no longer be source code in global. Thanks for @dudantas, @lgrossi, @gpedro, @Beats-Dh, @omeranha, @dmarszk.

Modifications

Added:

Npclib:

Callbacks:

  • onCloseChannel (CALLBACK_ON_CLOSE_CHANNEL)
  • onMove (CALLBACK_ON_MOVE)
  • FocusModule.tradeCallback
  • NpcsEvent_t enum: NPCS_EVENT_PLAYER_CLOSE_CHANNEL

Lua functions:

  • NpcHandler:getKeywordHandler()
  • NpcHandler:getEventDelayedSay(playerId)
  • NpcHandler:setEventDelayedSay(playerId, newEventDelayedSay)
  • NpcHandler:getEventSay(playerId)
  • NpcHandler:setEventSay(playerId, newEventSay)
  • NpcHandler:getTalkStart(playerId)
  • NpcHandler:setTalkStart(playerId, newTalkStart)
  • NpcHandler:getTopic(playerId)
  • NpcHandler:setTopic(playerId, newTopic)
  • NpcHandler:checkInteraction(npc, player)
  • NpcHandler:updateInteraction(npc, player)
  • NpcHandler:setInteraction(npc, player)
  • NpcHandler:removeInteraction(npc, player)
  • NpcHandler:tradeRequest(npc, player, message)
  • NpcHandler:onMove(npc, player, fromPosition, toPosition)
  • NpcHandler:sendMessages(message, messageTable, npc, player, useDelay, delay)
  • FocusModule:setTradeCallback(callback)
  • Npc:sayWithDelay(npcId, text, messageType, delay, event, playerId)
  • Npc:sendMessage(player, text)
  • Npc:isMerchant()
  • Npc:closeShopWindow(player)
  • Npc:isInTalkRange(playerPosition)
  • Npc:move(direction)
  • Npc:turn(direction)
  • Npc:follow(player)
  • Npc:getId()
  • Npc:sellItem(player, itemid, amount, subtype, actionid, <optional: default: 1> canDropOnMap)
  • Npc:getDistanceTo(uid)
  • NpcType:getSpeechBubble()
  • NpcType:setSpeechBubble()
  • Player:getItemIdByCid(itemId)
  • Item:getClientId()
  • LuaFunctionsLoader::getErrorDesc(ErrorCode_t code) new callback: LUA_ERROR_NPC_TYPE_NOT_FOUND

Cpp functions:

  • Npc::onPlayerCloseChannel(creature)
  • Game::loadCustomMap(name)
  • Iomap: loadMonstersCustom(map), loadNpcsCustom(map), loadHousesCustom(map)

Cpp definitions:

  • ITEM_FILLED_BATH_TUBE, ITEM_SWORD_RING, ITEM_CLUB_RING, ITEM_DWARVEN_RING, ITEM_RING_HEALING, ITEM_STEALTH_RING, ITEM_TIME_RING, ITEM_PAIR_SOFT_BOOTS, ITEM_PAIR_SOFT_BOOTS_ACTIVATED, ITEM_DEATH_RING, ITEM_DEATH_RING_ACTIVATED, ITEM_PRISMATIC_RING, ITEM_PRISMATIC_RING_ACTIVATED.

Othes:

  • Added bank system lib (bank_system.lua)
  • TalkAction: /addmoney playername, moneycount

Modified

Callbacks:

  • FROM: CALLBACK_CREATURE_APPEAR, TO: CALLBACK_ON_APPEAR
  • FROM: CALLBACK_CREATURE_DISAPPEAR, TO: CALLBACK_ON_DISAPPEAR
  • FROM: CALLBACK_CREATURE_SAY, TO: CALLBACK_ON_SAY
  • FROM: CALLBACK_ONTHINK, TO: CALLBACK_ON_THINK
  • FROM: CALLBACK_PLAYER_ENDTRADE, TO: CALLBACK_PLAYER_END_TRADE
  • FROM: CALLBACK_PLAYER_CLOSECHANNEL, TO: CALLBACK_CLOSE_CHANNEL
  • FROM: CALLBACK_ONADDFOCUS, TO: CALLBACK_SET_INTERACTION
  • FROM: CALLBACK_ONRELEASEFOCUS, TO: CALLBACK_REMOVE_INTERACTION
  • FROM: CALLBACK_ONTRADEREQUEST, TO: CALLBACK_ON_TRADE_REQUEST
  • FROM: SHOP_TRADEREQUEST, TO: FOCUS_TRADE_MESSAGE

Functions:

  • From: player:removeMoneyNpc(), to: player:removeMoneyBank(cost)
  • From: NpcHandler.eventSay[focus] = nil, to: NpcHandler:setEventSay(playerId, nil)
  • From: NpcHandler.eventDelayedSay[focus] = nil, to: NpcHandler:setEventDelayedSay(playerId, nil)
  • From: NpcHandler.talkStart[focus] = nil, to: NpcHandler:setTalkStart(playerId, nil)
  • From: NpcHandler.topic[focus] = nil, to: NpcHandler:setTopic(playerId, nil)
  • From: NpcHandler:onCreatureAppear, to: NpcHandler:onAppear
  • From: NpcHandler:onCreatureDisappear, to: NpcHandler:onDisappear
  • From: NpcHandler:onCreatureAppear, to: NpcHandler:onAppear
  • From: NpcHandler:onCreatureSay, to: NpcHandler:onSay
  • From: NpcHandler:onPlayerCloseChannel, to: NpcHandler:onCloseChannel
  • From: NpcHandler.topic[playerId] = topicId, to: NpcHandler:setTopic(playerId, topicId)
  • From: NpcHandler.topic[playerId] == topicId, to: NpcHandler:getTopic(playerId) == topicId
  • From: Charm:cancelMessage(), to: charm:messageCancel()
  • From: Charm:logMsg(), to: Charm:messageServerLog()
  • msgcontains(message, keyword) = It was refactored so that it identifies the entire string and does not read just one word, generating this issue: https://github.com/opentibiabr/otservbr-global/issues/2736

Removed

Npclib:

Callbacks:

  • NpcHandler: focuses, idleTime, talkRadius, shopItems, MESSAGE_ONBUY, MESSAGE_BOUGHT, MESSAGE_SELL, MESSAGE_ONSELL, MESSAGE_SOLD, MESSAGE_IDLETIMEOUT
  • Voice modules
  • Shop module
  • NpcSystem (It was used to parse XML npcs information)

Lua functions:

  • NpcHandler:isFocused
  • NpcHandler:releaseFocus
  • NpcHandler:onPlayerEndTrade
  • NpcHandler:onSell
  • doNpcSellItem
  • doCreatureSayWithDelay
  • doPlayerSellItem
  • doPlayerBuyItemContainer
  • doPlayerRemoveMoney
  • getPlayerMoney
  • closeShopWindow

Cpp functions:

  • Npc:getCurrencyTrading()

Others modifications:

  • Changed configkey = From: MAP_CUSTOM_ENABLED, to: TOGGLE_MAP_CUSTOM
  • Fixed the load of the custom map, which is now directly in the source and works as a complement to the main map.
  • Removed ConfigKey: MAP_CUSTOM_FILE and MAP_CUSTOM_SPAWN
  • Some functions are capitalized to indicate that they are global functions, for example: MessageContains(), GetCount(), and others.
  • Rework on bestiary_charm script

stable-v1.0.6

2 years ago

Support client 12.72.11206 and otclient (pull in progress)

Fixed:

  • Free quest system (author: @dudantas and @Beats-Dh, commits: 5a722dc7c, d405eae37)

Note: this will be the last release where the global repository will be sourced. The next one, which will be release 1.1.0, will be sourced from Engine Canary.

stable-v1.0.5

2 years ago

Support client 12.72.11206 and otclient (pull in progress)

Modified:

  • [Source/Lua] Create familiars lib, rename from "pet" to "familiar" and others fixes (author: @dudantas, commit: e34e40140) Fixes: Rename from "pet/Pet" to "familiar/Familiar" Removed "familiar = false" from monsters, this is false by default (this change is optional) Renamed from "mtype:isPet" to "mtype:familiar" Fixed familiar login with god. Co-authored-by: @Beats-Dh
  • [Lua] Register missing foods "goanna meat" and "candy floss" (author: @travisani, commit: 0cb8387e8)

Fixed problems:

  • [Source] Fix double remove money on create market offer (author: @dudantas, commit: 3228c9ecd)
  • [Source] Fix remove item from stash on apply imbuement (author: @dudantas, commit: 962e323c3) The function "getStashItemCount" uses client id instead of id.
  • [Source] Fixed crash after conjure item with duration (author: @dudantas, commit: 73d4d1034) Fixed crash after casting item with duration Fixed "register_spells.lua" indentation Added nullpointer on the load backpacks function
  • [Lua] Removed creature events from monsters script interface (author: @dudantas, commit: 5f004ad18) Scripts cannot be placed inside the monsters folder, as it is the monsters only interface, all other types of scripts need to be in the scripts folder.
  • [Lua/XML] Removed duplication in events and rearranged the xml order (author: @gpedro, commit: 44d75fe11)
  • [Lua/XML] Amulet bug fix in enchanted werewolf amulet time and skill (author: @painer15999, commit: 02e6f32ec) Amulet bug fix in enchanted werewolf amulet time result (onDeEquip) and skill bug
  • [Source] Fix wrong increment equipment skills in "onEquip/deEquip" (author: @Rechdan, commit: 02e88a1cd) Added item->hasAttribute(ITEM_ATTRIBUTE_DURATION) to check if the item has the duration attribute, making it so that only items that are in the decay stage can enter the if With the PR #375 a bug with weapons that have skills was introduced, where they started to remove the skill instead of adding it, this PR is to fix that.
  • [Lua] Fix freezing freequests.lua (author: beats-dh, commit: d02379969)
  • [Lua/Source], Fix issue #380 and #389, fix maxSummons bug (author: @dudantas, commit: 62d734858) Variable "monster.summons" renamed to "monster.summon" Improved the "registerMonsterType.summon" function. The "monster.maxSummons" was changed to be inside "monster.summon", thus facilitating development Added new table "summons" inside of "monster.summon" Added the "count" in the "monsterType:addSummon" function Fixed somes summons with "Demon2" name to "Demon" Removed "monster.summonCost", the correct is "monster.manaCost" Fixed a bug in the "registerMonsterType.light" function Fixed bug in the familiar behavior Modified all monsters for new style of summons
  • [Lua] Fix message "log out more than 10 minutes to start offline training" (author: @travisani, commit: 2a2221246) Message like tibia global
  • [Lua] Fix message and min level for talk in "advertising" and "english chat" (author: @travisani, commit: c6cc888f6) Same behavior as in global tibia, so the requirement will be at least level 20 or have a premium account. In addition to fixed the message.
  • [Lua] Fix lion's rock quest "holy water fountain" and "fountain rewards" (author: @EeFo17, commit: 762188b9c)
  • [Source] Fix removing items from stash on apply imbuement (author: @dudantas, commit: bc92e3ca0) Complement of the pr: #373
  • [Source/Lua] Fix issues #312, #399, fix bestiary counter logic and update charm values (author: @marcosvf132, commit: e96951dab)

stable-v1.0.1

2 years ago

Support to client 12.72.11206 (author:marcosvf132, commit: 20866ec6) and otclient (pull in progress)

Modified:

  • [Source] Fixed imbuement system behavior and a crash related to memory reference (author @hyresu, commit: 6f4fddb8) • Fixed: Item only gets inmediate bonus when imbued on equipment slots Clearing the imbuement will make you lose it if the item is equipped You should be able to use bank balance for imbuements Elemental damage shouldn't be affected Critical hit chance should not get higher than 10% if the item already has critical hit chance Falcon Coif should be able to get Intricate Epiphany and Dark Whispers only Basic Epiphany Item description should show crit chance without positive sign and "critical extra damage" Move map deletion to outside the loop to avoid memory reference crash on Game::checkImbuements function • Enhancement: Where the "imbuementslot" value is from 1 to 3 and the imbuement name values are also from 1 to 3, which is the imbuement level (basic, intricate or powerful), the name must be placed as above, as it is from the name that the value of each imbuement is called by ItemNode.

Fixed problems:

  • [Lua] Fix issue #287, hirelings sell function don't work (author: @gpedro, commit: 5c167903)
  • [Lua] Fix issue #332, familiars script does not make sure if the player has a vocation (author: @gpedro, commit: 49596a2e)
  • [Lua] Fix issue #309, wrong toKill value for star 3 on bestiary (author: @gpedro, commit: 79955d92)