Skip to content

Commit

Permalink
Correct typo in server variable names "Deastination" -> "Destination"
Browse files Browse the repository at this point in the history
  • Loading branch information
TeoTwawki committed Sep 30, 2023
1 parent 5635aea commit 85150c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/zones/Mhaura/Zone.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ zoneObject.onGameHour = function(zone)
GetNPCByID(ID.npc.LAUGHING_BISON):setAnimationSub(0)
end

SetServerVariable('Mhaura_Deastination', math.random(1, 100))
SetServerVariable('Mhaura_Destination', math.random(1, 100))
end

zoneObject.onInitialize = function(zone)
Expand Down Expand Up @@ -83,7 +83,7 @@ zoneObject.onEventFinish = function(player, csid, option, npc)
local DepartureTime = VanadielHour()

if DepartureTime % 8 == 0 then
if GetServerVariable('Mhaura_Deastination') > 89 then
if GetServerVariable('Mhaura_Destination') > 89 then
player:setPos(0, 0, 0, 0, xi.zone.SHIP_BOUND_FOR_SELBINA_PIRATES)
else
player:setPos(0, 0, 0, 0, xi.zone.SHIP_BOUND_FOR_SELBINA)
Expand Down
4 changes: 2 additions & 2 deletions scripts/zones/Selbina/Zone.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ zoneObject.onInitialize = function(zone)
end

zoneObject.onGameHour = function(zone)
SetServerVariable('Selbina_Deastination', math.random(1, 100))
SetServerVariable('Selbina_Destination', math.random(1, 100))
end

zoneObject.onZoneIn = function(player, prevZone)
Expand Down Expand Up @@ -55,7 +55,7 @@ end

zoneObject.onEventFinish = function(player, csid, option, npc)
if csid == 200 then
if GetServerVariable('Selbina_Deastination') > 89 then
if GetServerVariable('Selbina_Destination') > 89 then
player:setPos(0, 0, 0, 0, xi.zone.SHIP_BOUND_FOR_MHAURA_PIRATES)
else
player:setPos(0, 0, 0, 0, xi.zone.SHIP_BOUND_FOR_MHAURA)
Expand Down

0 comments on commit 85150c0

Please sign in to comment.