Skip to content
This repository has been archived by the owner on Apr 29, 2020. It is now read-only.

Commit

Permalink
a bit of clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Omnione committed Jan 15, 2020
2 parents 7b37c58 + 2da7e6f commit 6c82eb4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion scripts/globals/caskets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4631,6 +4631,7 @@ local function setCasketData(player, x, y, z, r, npc, partyID, mobLvl)
if chestStyle == 966 then
npc:setLocalVar("[caskets]ATTEMPTS", attempts)
npc:setLocalVar("[caskets]CORRECT_NUM", correctNum)
printf("Correct Number: %s", correctNum)
npc:setLocalVar("[caskets]FAILED_ATEMPTS", 0)
npc:setLocalVar("[caskets]LOCKED", 1)
npc:setLocalVar("[caskets]LOOT_TYPE", 2)
Expand Down Expand Up @@ -5024,7 +5025,6 @@ end
---------------------------------------------------------------------------------------------
-- Desc: Casket spawn checks, runs through all checks before spawning
---------------------------------------------------------------------------------------------

dsp.caskets.spawnCasket = function (mob, player, x, y, z, r)
if mob == nil or player == nil then
return
Expand Down Expand Up @@ -5197,6 +5197,7 @@ dsp.caskets.onEventFinish = function(player, csid, option, npc)
local failedAtempts = npc:getLocalVar("[caskets]FAILED_ATEMPTS")
local remainingAttempts = attemptsAllowed - failedAtempts


------------------------------------
-- Minigame
------------------------------------
Expand Down Expand Up @@ -5318,6 +5319,7 @@ dsp.caskets.onEventFinish = function(player, csid, option, npc)
-- Inputs
--------------------------------------------
elseif lockedChoice == 1 then -- Input a number

if inputNumber > 9 and inputNumber < 100 then
local splitNumbers = {}

Expand Down
2 changes: 1 addition & 1 deletion scripts/globals/items/tube_of_clear_salve_i.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ function onItemUse(target)
if removedCount == 0 then
pet:messageBasic(dsp.msg.basic.NO_EFFECT)
end
end
end
2 changes: 1 addition & 1 deletion scripts/globals/items/tube_of_clear_salve_ii.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ function onItemUse(target)
pet:messageBasic(dsp.msg.basic.NO_EFFECT)
end
end
end
end

0 comments on commit 6c82eb4

Please sign in to comment.