Skip to content
This repository has been archived by the owner on May 20, 2023. It is now read-only.

Fix items ids and npc player:getName function, add water pipe action #740

Merged
merged 23 commits into from
Aug 5, 2022
Merged

Conversation

Austerror
Copy link
Contributor

@Austerror Austerror commented Aug 2, 2022

Description

Minor changes to several files.

Behaviour

Actual

  1. NPC Hanna doesn't buy Wedding Ring or White Pearl.
  • Items are not in trade list as sellable.
  1. Giant Shimmering Pearl is named incorrectly in hanna.lua npcConfig.shop
  • brown shimmering pearl
  • green giant shimmering pearl

Expected

NPC Hanna should buy Wedding Ring and White Pearl.
Both giant shimmering pearls should be named 'giant shimmering pearl'

Fixes

  1. Edit hanna.lua to include a sell value for wedding ring and white pearl of 100gold and 160gold respectively in npcConfig.shop.
  2. Edit hanna.lua to change the itemName of both giant shimmering pearls to their correct name, 'giant shimmering pearl'.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested

  • Opened trade dialogue with NPC Hanna and confirmed that she would buy wedding ring and white pearl.
  • Opened trade dialogue with NPC Hanna and viewed both giant shimmering pearls to confirm they were returning the correct name, 'giant shimmering pearl'.

Behaviour

Actual

  1. NPC Yasir does not buy the correct wild flowers item
  2. NPC Yasir does not buy the correct heaven blossem item

Expected

NPC Yasir should buy the wild flowers item (clientId 25691) for 120gold and heaven blossom (clientId 5921) for 50gold.

Fixes

  1. Edit yasir.lua and change the npcConfig.shop items, wild flower from clientId 25684 to 25691, and heaven blossom from clientId 3657 to 5921.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested

  • Opened trade dialogue with NPC Yasir and confirmed he buys the correct wild flowers (as dropped by Feyrist mobs), and buys correct heaven blossom as dropped by monster Elf.

Behaviour

Actual

  1. The teleport into The Horned Fox boss room does not work,

Expected

After killing 5,000 minotaurs for Budrik, and completing the quest, you should have access to The Horned Fox boss room.

Fixes

  1. Edit data\scripts\movements\quests\killing_in_the_name_of\boss.lua and change storage value for bossNmae, The Horned Fox from 17522 to 14896. This change required the least amount of file editing and does not break any current progress.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested

  • After completing the quest killing 5,000 minotaurs for Budrik in Killing In the Name Of, was able to enter the teleport and confront The Horned Fox boss.

Behaviour

Actual

  1. NPC Padreia refers to the player as |PLAYERNAME| when asking for a mission, instead of the actual player name.

Expected

NPC Padreia should refer to the players name when the player asks for a mission.

Fixes

  1. Edit padreia.lua and replace |PLAYERNAME| with ' .. player:getName() .. '

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested

  • Opened dialogue with NPC Padreia and asked for a mission, Padreia correctly returned player name instead of |PLAYERNAME|.

Behaviour

Actual

  1. NPC Yaman does not buy the correct ankh item (clientId 3077).

Expected

  1. Players should be able to sell item ankh (clientId 3077) to NPC Yaman for 100gold.

Fixes

  1. Edit data\npc\yaman.lua and change clientId for ankh, in npcConfig.shop from 3214 to 3077.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested

  • Opened a trade dialogue with NPC Yaman and confirmed was able to sell item ankh (as dropped by, for eg, monster monk) for 100gold.

Behaviour

Actual

  1. Monster Undead Elite Gladiator has incorrect drop rates.

Expected

Monster Undead Elite Gladiator drop rates should be different to what is occurring.

Fixes

  1. Edit undead_elite_gladiator.lua and change chance value to accurately reflect the drop % from the wiki.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested

  • Confirmed that drop rates appeared to change and reflect more closely that of the wiki.

Behaviour

Actual

  1. All water pipe items (2974,2980,21323) are not associated with any action for their use (smoke).

Expected

Using any of the water pipe items (2974,2980,21323) should result in a POFF at the location of the water pipe.

Fixes

  1. Authored a new file in data\scripts\actions\other\water_pipe.lua

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested

  • Used each of the three water pipes, both in backpack and on ground, confirmed the POFF occurs each time, and at the location of the water pipe.

Test Configuration:

  • Server Version: 1.4.0
  • Client: 12.86
  • Operating System: Windows Server 2012 R2

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I checked the PR checks reports
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works

dudantas and others added 18 commits July 29, 2022 08:40
Corrected Giant Shimmering Pearl names. Added sell price to wedding ring and white pearl.
Corrected wild flowers clientid
Changed to correct heaven blossom clientid in npcConfig.shop
Fix to stop NPC saying "Oh |PLAYERNAME|, thank god...".
Changed shop item to correct ankh
Corrected drop % and count to match wiki.
Water Pipe smoke action.
@majestyotbr majestyotbr changed the title Minor changes/fixes/additions Fix items ids and npc getName function, add water pipe action Aug 5, 2022
@majestyotbr majestyotbr changed the title Fix items ids and npc getName function, add water pipe action Fix items ids and npc playergetName function, add water pipe action Aug 5, 2022
@majestyotbr majestyotbr changed the title Fix items ids and npc playergetName function, add water pipe action Fix items ids and npc player:getName function, add water pipe action Aug 5, 2022
@majestyotbr majestyotbr merged commit 7a9fbb4 into opentibiabr:main Aug 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants