What you mean by 7.7 map? 7.7 is not a valid protocol for otserv map.how can i convert a map 7.7 for this ot?
Hello folks,
Can anyone update the compiling guide for linux distributions?
Thanks in advance
Compiling under Linux based Systems
OpenTibia Server for Tibia 7.72. Contribute to Ezzz-dev/OTHire development by creating an account on GitHub.github.com
function onLogin(cid)
local lastLogin = getPlayerLastLogin(cid)
local updateDay = 1608418480
if not (lastLogin ~= 0) or (lastLogin > updateDay) then
-- it's fine
return true
end
promoted = false
if getPlayerVocation(cid) > 4 then
promoted = true
end
local blesses = 0
while i <= 5 do
if getPlayerBless(cid, i) == true then
blesses = blesses + 1
end
i = i + 1
end
local value = 100
if promoted == true then
value = value - 30
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "Now this promoted character has reduced death penalty.")
end
if blesses >= 1 then
value = value - 10 * blesses
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, "This character has " .. blesses .. " blessings, that now properly reduce level, magic level and skill losses on death by 1% each. ")
end
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, value)
doPlayerSetLossPercent(cid, PLAYERLOSS_MANA, value)
doPlayerSetLossPercent(cid, PLAYERLOSS_SKILL, value)
doPlayerSetLossPercent(cid, PLAYERLOSS_ITEMS, 10)
doPlayerSetLossPercent(cid, PLAYERLOSS_CONTAINERS, 100)
return true
end
maybe related to this:Is it possible to give monsters attacks/spells an interval? I remember reading something about it but i dont think it got implemented?
Also if someone could check this bug out, i would appreciate it [OTHire 7.72] Attack speed bug while enemy is not moving. (https://otland.net/threads/othire-7-72-attack-speed-bug-while-enemy-is-not-moving.274360/)
You need to add additional dependencies to Linker -> input or additional libraries udner linker -> general, maybe both. Compilers confuse the fuck out of me.Compiled with vs2010 followed windows compiling tutorial to a t. I get unresolved external symbol errors. Does anyone know what im missing?
local function globalSave(minutes)
local minutes = minutes or 0
if minutes <= 0 then
doSaveServer(true)
doSetGameState(GAME_STATE_CLOSED)
doSetGameState(GAME_STATE_SHUTDOWN)
os.exit(0)
return true
end
if minutes == 1 then
doBroadcastMessage("Global server save in " .. minutes .. " minute, please go to safe zone and logout.")
else
doBroadcastMessage("Global server save in " .. minutes .. " minutes, please go to safe zone.")
end
globalEvent = addEvent(globalSave, 60000, minutes - 1)
return true
end
function onTime(interval, lastExecution)
return globalSave(math.abs(math.ceil(5)))
end
I used default one I thinkI got some reports that players dont save house info / items on server save, this is my global server save script that im using, maybe is something bad here?
Lua:local function globalSave(minutes) local minutes = minutes or 0 if minutes <= 0 then doSaveServer(true) doSetGameState(GAME_STATE_CLOSED) doSetGameState(GAME_STATE_SHUTDOWN) os.exit(0) return true end if minutes == 1 then doBroadcastMessage("Global server save in " .. minutes .. " minute, please go to safe zone and logout.") else doBroadcastMessage("Global server save in " .. minutes .. " minutes, please go to safe zone.") end globalEvent = addEvent(globalSave, 60000, minutes - 1) return true end function onTime(interval, lastExecution) return globalSave(math.abs(math.ceil(5))) end
@Peonso <3
local shutdownAtServerSave = true
local function serverSave()
if shutdownAtServerSave then
doSetGameState(GAME_STATE_CLOSED)
doSaveServer(true)
doSetGameState(GAME_STATE_SHUTDOWN)
else
doSetGameState(GAME_STATE_CLOSED)
doSaveServer(true)
doSetGameState(GAME_STATE_NORMAL)
end
end
local function secondServerSaveWarning()
broadcastMessage("Server is saving game in one minute. Please logout.", MESSAGE_STATUS_WARNING)
addEvent(serverSave, 60000)
end
local function firstServerSaveWarning()
broadcastMessage("Server is saving game in 3 minutes. Please logout.", MESSAGE_STATUS_WARNING)
addEvent(secondServerSaveWarning, 120000)
end
function onTime(interval)
broadcastMessage("Server is saving game in 5 minutes. Please logout.", MESSAGE_STATUS_WARNING)
doSetGameState(GAME_STATE_STARTUP)
addEvent(firstServerSaveWarning, 120000)
return true
end
prime p and q are the way to change rsa in the old engines. told you to move to tfs 1.5 so you can use key.pem insteadIn the admin.xml file there is commented key tag for RSA. Does anybody know if RSA can be stored in a file? There is some sort of reference to a rsa priv file.
What does prime p and prime q do?prime p and q are the way to change rsa in the old engines. told you to move to tfs 1.5 so you can use key.pem instead