Skip to content

Commit

Permalink
fix: server name
Browse files Browse the repository at this point in the history
  • Loading branch information
omarcopires committed Dec 11, 2024
1 parent 6c5413f commit 0634c45
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion data-otservbr-global/npc/testserver_assistant.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ local function creatureSayCallback(npc, creature, type, message)
end

npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:setMessage(MESSAGE_GREET, "Hey |PLAYERNAME|. I'm Testserver Assistant and I can give {money}, {experience} and {blessing} which will be useful for testing on " .. configManager.getString(configKeys.SERVER_NAME) .. " server." .. " You can too to back to level 8 with {reset}.")
npcHandler:setMessage(MESSAGE_GREET, "Hey |PLAYERNAME|. I'm Testserver Assistant and I can give {money}, {experience} and {blessing} which will be useful for testing on " .. SERVER_NAME .. " server." .. " You can too to back to level 8 with {reset}.")
npcHandler:addModule(FocusModule:new(), npcConfig.name, true, true, true)

-- npcType registering the npcConfig table
Expand Down
5 changes: 0 additions & 5 deletions data/global.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ DIRECTIONS_TABLE = {
DIRECTION_NORTHEAST,
}

SERVER_NAME = configManager.getString(configKeys.SERVER_NAME)
SERVER_MOTD = configManager.getString(configKeys.SERVER_MOTD)

AUTH_TYPE = configManager.getString(configKeys.AUTH_TYPE)

-- Bestiary charm
GLOBAL_CHARM_GUT = 120 -- 20% more chance to get creature products from looting
GLOBAL_CHARM_SCAVENGE = 125 -- 25% more chance to get creature products from skinning
Expand Down
3 changes: 3 additions & 0 deletions data/libs/functions/constants.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ BATHTUB_FILLED_NOTMOVABLE = 26100
BAG_YOU_DESIRE = 34109
PRIMAL_BAG = 39546
BAG_YOU_COVET = 43895

SERVER_NAME = configManager.getString(configKeys.SERVER_NAME)
AUTH_TYPE = configManager.getString(configKeys.AUTH_TYPE)
2 changes: 1 addition & 1 deletion data/scripts/eventcallbacks/player/on_report_bug.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ function callback.playerOnReportBug(player, message, position, category)
file:write("------------------------------\n")
file:close()

player:sendTextMessage(MESSAGE_EVENT_ADVANCE, string.format("Your report has been sent to %s.", configManager.getString(configKeys.SERVER_NAME)))
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, string.format("Your report has been sent to %s.", SERVER_NAME))
return true
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function callback.playerOnReportRuleViolation(player, targetName, reportType, re
file:write("------------------------------\n")
file:close()

player:sendTextMessage(MESSAGE_EVENT_ADVANCE, string.format("Thank you for reporting %s. Your report will be processed by %s team as soon as possible.", targetName, configManager.getString(configKeys.SERVER_NAME)))
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, string.format("Thank you for reporting %s. Your report will be processed by %s team as soon as possible.", targetName, SERVER_NAME))
end

callback:register()
2 changes: 1 addition & 1 deletion data/scripts/talkactions/player/reward.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ local function sendExerciseRewardModal(player)
if item then
item:setActionId(IMMOVABLE_ACTION_ID)
item:setAttribute(ITEM_ATTRIBUTE_STORE, systemTime())
item:setAttribute(ITEM_ATTRIBUTE_DESCRIPTION, string.format("You won this exercise weapon as a reward to be a %s player. Use it in a dummy!\nHave a nice game..", configManager.getString(configKeys.SERVER_NAME)))
item:setAttribute(ITEM_ATTRIBUTE_DESCRIPTION, string.format("You won this exercise weapon as a reward to be a %s player. Use it in a dummy!\nHave a nice game..", SERVER_NAME))
else
player:sendTextMessage(MESSAGE_LOOK, "You need to have capacity and empty slots to receive.")
return
Expand Down

0 comments on commit 0634c45

Please sign in to comment.