@up
It's a windows "bug".
It's a windows "bug".
#Up
Are you using Webserv? If YES than change WebServ to XAMPP .
I using rev. 693.
Now, Server doesn't start if lastMotd.txt have a text.
I see your modification in source(693):
In line 4275, game.cpp
but server still doesn't start if lastMotd.txt have a text.Code:fscanf(file, "%d\n%s", &lastMotdNum, lastMotdText.c_str());
@EDIT:
version 0.2.10rc working fine.
I cannot reproduce it:
Code:talaturen@c-f3f472d5:~/forgottenserver/forgottenserver/tags/0.2$ cat lastMotd.txt 51733 Welcome to the Forgotten Server! talaturen@c-f3f472d5:~/forgottenserver/forgottenserver/tags/0.2$ ./TheForgottenServer The Forgotten Server - Version 0.2rc11 (Mystic Spirit). A server developed by Talaturen, Kiper, Kornholijo, Jonern, Lithium & slawkens. Visit our forum for updates, support and resources: http://otland.net/. >> Loading config >> Loading RSA key >> Testing SQL connection... MySQL. >> Loading bans >> Loading vocations >> Loading commands >> Loading items >> Loading script systems >> Loading monsters >> Loading quests >> Loading outfits >> Loading admin protocol config >> Loading experience stages >> Using SHA1 passwords >> Checking world type... PVP >> Loading map > Map size: 30000x30000. > Map loading time: 0.016 seconds. >> Loading raids >> All modules has been loaded, server starting up... >> Forgotten Server Online! talaturen@c-f3f472d5:~/forgottenserver/forgottenserver/tags/0.2$ cat lastMotd.txt 51733 Welcome to the Forgotten Server! talaturen@c-f3f472d5:~/forgottenserver/forgottenserver/tags/0.2$
talaturen@ubuntu:~/forgottenserver/forgottenserver/tags/0.2$ cat lastMotd.txt
1
Welcome to the Forgotten Server!
talaturen@ubuntu:~/forgottenserver/forgottenserver/tags/0.2$ ./TheForgottenServer
The Forgotten Server - Version 0.2rc11 (Mystic Spirit).
A server developed by Talaturen, Kiper, Kornholijo, Jonern, Lithium & slawkens.
Visit our forum for updates, support and resources: http://otland.net/.
>> Loading config
>> Loading RSA key
>> Testing SQL connection... SqLite.
>> Loading bans
>> Loading vocations
>> Loading commands
>> Loading items
>> Loading script systems
>> Loading monsters
>> Loading quests
>> Loading outfits
>> Loading admin protocol config
>> Loading experience stages
>> Checking world type... PVP
>> Loading map
> Map size: 1000x1000.
> Map loading time: 0.828 seconds.
>> Loading raids
>> All modules has been loaded, server starting up...
>> Forgotten Server Online!
talaturen@ubuntu:~/forgottenserver/forgottenserver/tags/0.2$ cat lastMotd.txt
1
Welcome to the Forgotten Server!
talaturen@ubuntu:~/forgottenserver/forgottenserver/tags/0.2$
where the new version will be released? need to change to 8.11 protocol now too..
function onUse(cid, item, fromPosition, itemEx, toPosition)
if isInArray(questDoors, item.itemid) == TRUE then
if getPlayerStorageValue(cid, item.actionid) ~= -1 then
doTransformItem(item.uid, item.itemid + 1)
doTeleportThing(cid, toPosition, TRUE)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "The door seems to be sealed against unwanted intruders.")
end
return TRUE
elseif isInArray(levelDoors, item.itemid) == TRUE then
if item.actionid >= 0 and getPlayerLevel(cid) >= item.actionid - 1000 then
doTransformItem(item.uid, item.itemid + 1)
doTeleportThing(cid, toPosition, TRUE)
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Only the worthy may pass.")
end
return TRUE
elseif isInArray(keys, item.itemid) == TRUE then
if itemEx.actionid > 0 then
if item.actionid == itemEx.actionid then
if doors[itemEx.itemid] ~= nil then
doTransformItem(itemEx.uid, doors[itemEx.itemid])
return TRUE
end
end
doPlayerSendCancel(cid, "The key does not match.")
return TRUE
end
return FALSE
elseif isInArray(horizontalOpenDoors, item.itemid) == TRUE then
local newPosition = toPosition
newPosition.y = newPosition.y + 1
local doorPosition = fromPosition
doorPosition.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE
local doorCreature = getThingfromPos(doorPosition)
if doorCreature.itemid ~= 0 then
if getTilePzInfo(doorPosition) == TRUE and getTilePzInfo(newPosition) == FALSE and doorCreature.uid ~= cid then
doPlayerSendCancel(cid, "Sorry, not possible.")
return TRUE
else
doTeleportThing(doorCreature.uid, newPosition, TRUE)
end
end
doTransformItem(item.uid, item.itemid - 1)
return TRUE
elseif isInArray(verticalOpenDoors, item.itemid) == TRUE then
local newPosition = toPosition
newPosition.x = newPosition.x + 1
local doorPosition = fromPosition
doorPosition.stackpos = STACKPOS_TOP_MOVEABLE_ITEM_OR_CREATURE
local doorCreature = getThingfromPos(doorPosition)
if doorCreature.itemid ~= 0 then
if getTilePzInfo(doorPosition) == TRUE and getTilePzInfo(newPosition) == FALSE and doorCreature.uid ~= cid then
doPlayerSendCancel(cid, "Sorry, not possible.")
return TRUE
else
doTeleportThing(doorCreature.uid, newPosition, TRUE)
end
end
doTransformItem(item.uid, item.itemid - 1)
return TRUE
elseif doors[item.itemid] ~= nil then
if item.actionid == 0 then
doTransformItem(item.uid, doors[item.itemid])
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "It is locked.")
end
return TRUE
end
return FALSE
end
function isKnight(cid)
if(isPlayer(cid) == FALSE) then
debugPrint("isKnight: Player not found.")
return false
end
return (isInArray({4,8}, getPlayerVocation(cid)) == TRUE)
end
For functions it's good, but what i must change in doors.lua to working?Maybe:
toCode:return (isInArray({4,8}, getPlayerVocation(cid)) == TRUE)
Code:return (isInArray({4,8}, getPlayerVocation(cid)))