Skip to content

Commit

Permalink
Merge branch 'main' into fix-bank-npc
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas authored Mar 18, 2024
2 parents 7b75e74 + 4a661ef commit febae3f
Show file tree
Hide file tree
Showing 52 changed files with 193 additions and 313 deletions.
2 changes: 1 addition & 1 deletion data-canary/monster/demons/fury.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Fury")
local monster = {}

monster.description = "a fury"
monster.experience = 3600
monster.experience = 4000
monster.outfit = {
lookType = 149,
lookHead = 94,
Expand Down
8 changes: 0 additions & 8 deletions data-canary/scripts/actions/tools/crowbar.lua

This file was deleted.

8 changes: 0 additions & 8 deletions data-canary/scripts/actions/tools/machete.lua

This file was deleted.

8 changes: 0 additions & 8 deletions data-canary/scripts/actions/tools/pick.lua

This file was deleted.

8 changes: 0 additions & 8 deletions data-canary/scripts/actions/tools/rope.lua

This file was deleted.

8 changes: 0 additions & 8 deletions data-canary/scripts/actions/tools/scythe.lua

This file was deleted.

8 changes: 0 additions & 8 deletions data-canary/scripts/actions/tools/shovel.lua

This file was deleted.

8 changes: 0 additions & 8 deletions data-canary/scripts/actions/tools/spoon.lua

This file was deleted.

2 changes: 1 addition & 1 deletion data-otservbr-global/monster/demons/hellfire_fighter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Hellfire Fighter")
local monster = {}

monster.description = "a hellfire fighter"
monster.experience = 3120
monster.experience = 3400
monster.outfit = {
lookType = 243,
lookHead = 0,
Expand Down
2 changes: 1 addition & 1 deletion data-otservbr-global/monster/demons/hellflayer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Hellflayer")
local monster = {}

monster.description = "a hellflayer"
monster.experience = 11000
monster.experience = 11720
monster.outfit = {
lookType = 856,
lookHead = 0,
Expand Down
4 changes: 2 additions & 2 deletions data-otservbr-global/monster/demons/juggernaut.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ monster.Bestiary = {
Oramond Dungeon, Grounds of Destruction and Halls of Ascension.",
}

monster.health = 20000
monster.maxHealth = 20000
monster.health = 18000
monster.maxHealth = 18000
monster.race = "blood"
monster.corpse = 6335
monster.speed = 170
Expand Down
2 changes: 1 addition & 1 deletion data-otservbr-global/monster/demons/plaguesmith.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Plaguesmith")
local monster = {}

monster.description = "a plaguesmith"
monster.experience = 3555
monster.experience = 3800
monster.outfit = {
lookType = 247,
lookHead = 0,
Expand Down
2 changes: 1 addition & 1 deletion data-otservbr-global/monster/magicals/nightmare.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Nightmare")
local monster = {}

monster.description = "a nightmare"
monster.experience = 1666
monster.experience = 1800
monster.outfit = {
lookType = 245,
lookHead = 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Ferumbras Mortal Shell")
local monster = {}

monster.description = "Ferumbras Mortal Shell"
monster.experience = 100000
monster.experience = 500000
monster.outfit = {
lookType = 229,
lookHead = 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Mazoran")
local monster = {}

monster.description = "Mazoran"
monster.experience = 50000
monster.experience = 250000
monster.outfit = {
lookType = 842,
lookHead = 77,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Plagirath")
local monster = {}

monster.description = "Plagirath"
monster.experience = 50000
monster.experience = 250000
monster.outfit = {
lookType = 862,
lookHead = 84,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Ragiaz")
local monster = {}

monster.description = "Ragiaz"
monster.experience = 50000
monster.experience = 250000
monster.outfit = {
lookType = 862,
lookHead = 76,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Razzagorn")
local monster = {}

monster.description = "Razzagorn"
monster.experience = 50000
monster.experience = 250000
monster.outfit = {
lookType = 842,
lookHead = 78,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Shulgrax")
local monster = {}

monster.description = "Shulgrax"
monster.experience = 21000
monster.experience = 250000
monster.outfit = {
lookType = 842,
lookHead = 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Tarbaz")
local monster = {}

monster.description = "Tarbaz"
monster.experience = 55000
monster.experience = 250000
monster.outfit = {
lookType = 842,
lookHead = 0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ local mType = Game.createMonsterType("Zamulosh")
local monster = {}

monster.description = "Zamulosh"
monster.experience = 50000
monster.experience = 250000
monster.outfit = {
lookType = 862,
lookHead = 16,
Expand Down
4 changes: 2 additions & 2 deletions data-otservbr-global/monster/undeads/blightwalker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ monster.Bestiary = {
Locations = "Pits of Inferno, Edron (In the Vats during The Inquisition Quest), Roshamuul Prison, Grounds of Undeath.",
}

monster.health = 8900
monster.maxHealth = 8900
monster.health = 8100
monster.maxHealth = 8100
monster.race = "undead"
monster.corpse = 6353
monster.speed = 175
Expand Down
4 changes: 2 additions & 2 deletions data-otservbr-global/monster/undeads/hand_of_cursed_fate.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ monster.Bestiary = {
Locations = "Pits of Inferno, The Battlefield, The Arcanum, The Blood Halls and The Crystal Caves.",
}

monster.health = 7500
monster.maxHealth = 7500
monster.health = 6600
monster.maxHealth = 6600
monster.race = "blood"
monster.corpse = 6311
monster.speed = 130
Expand Down
2 changes: 1 addition & 1 deletion data-otservbr-global/monster/undeads/undead_dragon.lua
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ monster.elements = {
{ type = COMBAT_LIFEDRAIN, percent = 0 },
{ type = COMBAT_MANADRAIN, percent = 0 },
{ type = COMBAT_DROWNDAMAGE, percent = 100 },
{ type = COMBAT_ICEDAMAGE, percent = 50 },
{ type = COMBAT_ICEDAMAGE, percent = 90 },
{ type = COMBAT_HOLYDAMAGE, percent = -25 },
{ type = COMBAT_DEATHDAMAGE, percent = 100 },
}
Expand Down
7 changes: 4 additions & 3 deletions data-otservbr-global/npc/gnomadness.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,13 @@ local function creatureSayCallback(npc, creature, type, message)
end
if hazard:setPlayerCurrentLevel(player, desiredLevel) then
npcHandler:say("Your hazard level has been set to " .. desiredLevel .. ". Good luck!", npc, creature)
if desiredLevel >= hazard.maxLevel and not player:kv():scoped("primal-ordeal"):get("received-prize") then
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Congratulations you received the Noxious Ripptor mount.")
if desiredLevel >= 6 and not player:kv():scoped("primal-ordeal"):get("received-prize") then
player:addMount(202)
npcHandler:say("You've achived the maximum hazard level. As a reward, you've received the Noxious Ripptor mount and a primal bag.", npc, creature)
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, "Congratulations you received the Noxious Ripptor mount.")
player:addAchievement("Ripp-Ripp Hooray!")
player:addItem(PRIMAL_BAG, 1)
player:kv():scoped("primal-ordeal"):set("received-prize", true)
npcHandler:say("You've achieved the necessary hazard level. As a reward, you've received the Noxious Ripptor mount and a primal bag.", npc, creature)
end
else
npcHandler:say("You can't set your hazard level higher than your maximum unlocked level.", npc, creature)
Expand Down
Loading

0 comments on commit febae3f

Please sign in to comment.