• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[8.0] - TFS 1.2

I'm not able to compile the GUI distro, can someone compile in GUI for me?
 
The houses cleaning system is not working properly, Any ideas.

Some monsters keep walking after the player dies, is that normal?
 

Attachments

  • burraserver bug.png
    burraserver bug.png
    935.3 KB · Views: 64 · VirusTotal
Last edited:
The houses cleaning system is not working properly, Any ideas.

Some monsters keep walking after the player dies, is that normal?
the monster keeps walking because he is stepping in the magic field , and for me houses are working fine .If you have a problem with the houses, you should explain in detail what is happening.
 
the monster keeps walking because he is stepping in the magic field , and for me houses are working fine .If you have a problem with the houses, you should explain in detail what is happening.
The strange thing is that the hours pass and the monsters that are stepping on the poison keep walking.

I have the houses in "weekly" but when the user does not have money he does not take away the house I will have to do more tests it is very rare.
 
put cast systems please, the scripts don't work
Post automatically merged:

account manager doesn't work too, most of the 1.2 tfs have cast, trainer off and account manager, could you add them to the sources?
 
put cast systems please, the scripts don't work
Post automatically merged:

account manager doesn't work too, most of the 1.2 tfs have cast, trainer off and account manager, could you add them to the sources?
The sources are available to everyone, you can do whatever you want. I had very little or almost no help with this project, so if you want to add something, make at least some minimal effort, I no longer have time to dedicate myself to this project.
 
If I knew I wasn’t working on this project anymore, I wouldn’t have given these suggestions, but I’ll try to supplement these sources and if it works out, I’ll post it here so that everyone can use mainly the cast and trainer off.

My project in realera datapack is already 100% and soon I will post it for download, I also had no help from anyone, I review all the quests and adapted their scripts for the project that would work in your distro, rebuild all addon quest npcs , it is now possible to addon the npc scattered around the map, redid the scripts for the poi quest and the svargrond quest arena, added rookgaard 8.0 with npc, key, missions and missions 100% equal to that of cipsoft and were also destroyed to the spike quest sword. In main all the 100% rune npc and balanced vocations, bug in the tidy maps, added some missing islands including kalassa and also all 8.0 raids running alone, added casino system and the old kasteria dummy trainer were also successful, to complete the project, only the cast system and the tibia talles log quests are missing, and the site store with the premium, dijim and parcel door scrolls is also missing.
 
If I knew I wasn’t working on this project anymore, I wouldn’t have given these suggestions, but I’ll try to supplement these sources and if it works out, I’ll post it here so that everyone can use mainly the cast and trainer off.

My project in realera datapack is already 100% and soon I will post it for download, I also had no help from anyone, I review all the quests and adapted their scripts for the project that would work in your distro, rebuild all addon quest npcs , it is now possible to addon the npc scattered around the map, redid the scripts for the poi quest and the svargrond quest arena, added rookgaard 8.0 with npc, key, missions and missions 100% equal to that of cipsoft and were also destroyed to the spike quest sword. In main all the 100% rune npc and balanced vocations, bug in the tidy maps, added some missing islands including kalassa and also all 8.0 raids running alone, added casino system and the old kasteria dummy trainer were also successful, to complete the project, only the cast system and the tibia talles log quests are missing, and the site store with the premium, dijim and parcel door scrolls is also missing.
Will you share this project here?
 
Will you share this project here?
Yes, I intend to create a topic making it available for download still this month, there is very little left to leave the server at least 90% ~ 95%, because I think there will be only a few missions from tibia tales and
anchievements.
 
Yes, I intend to create a topic making it available for download still this month, there is very little left to leave the server at least 90% ~ 95%, because I think there will be only a few missions from tibia tales and
anchievements.
Cool. I can't wait to test it. :)
 
Does someone know about any crashed on this engine?
I'm thinking if I can go ahead with this.
 
Hey Celohere. Thanks for sharing this distribution. It's awesome.

By the way I've found a minor bug when player dies on item: "open trap" and probably all sorts of damage fields (I didn't test fields).
Server tries to read killer name and throws error instead:

bug.png

I wanted to contribute, so I suggest changing following code in file: data/creaturescripts/playerdeath.lua (line:99)

Lua:
if killer:isPlayer() then
    broadcastMessage(player:getName().."["..player:getLevel().."] was killed by "..killer:getName().."["..killer:getLevel().."].")
end

to something like this:

Lua:
if killer == nil then
        broadcastMessage(player:getName().."["..player:getLevel().."] died. ")
    else
        if killer:isPlayer() then
            broadcastMessage(player:getName().."["..player:getLevel().."] was killed by "..killer:getName().."["..killer:getLevel().."].")
    end
end

So when someone dies like that, server will print this:
solution.png
 
Last edited:
Hello can someone will explain how works Report rule violation CRTL+R ? when i use nothing happens: |

 
Got another problem and solution.
This time: Parameter cid is not being correctly passed to some callbacks.

I've noticed this problem when I tried to create an npc that punishes a player, who walks away without saying goodbye (by setting him on fire or whatever). So far only CALLBACK_GREET recognizes cid properly. For other callbacks cid equals nil. I think this might be a side effect of downgrading this distribution to 8.0 or something... idk. However I seem to have fixed this issue, although maybe it's better to say "I made it working.", because I'm not sure if it will result in crashes or unexpected behavior in future. (Probably not, but well... I had to say that.)

This is simplified example_npc.lua file I use for tests:
Lua:
local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)
--------------------------------------------------------------------------------------
function onCreatureAppear(cid)            npcHandler:onCreatureAppear(cid) end
function onCreatureDisappear(cid)         npcHandler:onCreatureDisappear(cid) end
function onCreatureSay(cid, type, msg)     npcHandler:onCreatureSay(cid, type, msg) end
function onThink()                         npcHandler:onThink() end
--------------------------------------------------------------------------------------
local talk_state = 0
--------------------------------------------------------------------------------------
local function greetCallback(cid)
    print("greetCallback occurred.")
    print("cid =",cid)
    local player = Player(cid)
    print("player =",player)
    npcHandler:setMessage(MESSAGE_GREET, 'Some custom greet message.')
    return true
end
npcHandler:setCallback(CALLBACK_GREET, greetCallback)
--------------------------------------------------------------------------------------
local function farewellCallback(cid)
    print("farewellCallback occurred.")
    print("cid =",cid)
    local player = Player(cid)
    print("player =",player)
    npcHandler:setMessage(MESSAGE_FAREWELL, 'Some custom farewell message.')
    return true
end
npcHandler:setCallback(CALLBACK_FAREWELL, farewellCallback)
--------------------------------------------------------------------------------------
local function creatureDisappearCallback(cid)
    print("creatureDisappearCallback occurred.")
    print("cid =",cid)
    local player = Player(cid)
    print("player =",player)
    npcHandler:setMessage(MESSAGE_WALKAWAY, 'Some custom walkaway message.') 
    return true
end
npcHandler:setCallback(CALLBACK_CREATURE_DISAPPEAR, creatureDisappearCallback)
--------------------------------------------------------------------------------------
function creatureSayCallback(cid, type, msg)
    if not npcHandler:isFocused(cid) then return false end
    if msgcontains(msg, 'test') then
        npcHandler:say("test answer", cid)
    end
    return true
end
-- -----------------------------------------------------------------------------------
npcHandler:setCallback(CALLBACK_MESSAGE_DEFAULT, creatureSayCallback)
npcHandler:addModule(FocusModule:new())

Default reaction to greeting, ungreeting and walking away from this npc:
001.png

I made following changes:

data/npc/lib/npcsystem/npchandler.lua (line:358) in function NpcHandler:unGreet(cid)
Lua:
if callback == nil or callback() then
to:
Lua:
if callback == nil or callback(cid)

data/npc/lib/npcsystem/npchandler.lua (line:359) in function NpcHandler:unGreet(cid)
Lua:
if self:processModuleCallback(CALLBACK_FAREWELL) then
to:
Lua:
if self:processModuleCallback(CALLBACK_FAREWELL, cid) then

data/npc/lib/npcsystem/npchandler.lua (line:581) in function NpcHandler: onWalkAway(cid)
Lua:
if callback == nil or callback() then
to:
Lua:
if callback == nil or callback(cid) then

Reaction to greeting, ungreeting and walking away from this npc after changes:
002.png

Hope you find it useful.
Edit: Oh and don't worry about IDLE_TIMEOUT. It works fine as well, because CALLBACK_FAREWELL with idle timeout message is called.
 
Last edited:
I compiled it again, and got this error, how can I solve it?

[Error - mysql_real_query] Query: UPDATE players SET level = 1,group_id = 3,vocation = 0,health = 100,healthmax = 100,experience = 0,lookbody = 10,lookfeet = 10,lookhead = 10,looklegs = 10,looktype = 136,lookaddons = 3,maglevel = 0,mana = 100,manamax = 100,`
Message: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
[Error - mysql_real_query] Query: UPDATE players SET level = 1,group_id = 3,vocation = 0,health = 100,healthmax = 100,experience = 0,lookbody = 10,lookfeet = 10,lookhead = 10,looklegs = 10,looktype = 136,lookaddons = 3,maglevel = 0,mana = 100,manamax = 100,`
Message: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
[Error - mysql_real_query] Query: UPDATE players SET level = 1,group_id = 3,vocation = 0,health = 100,healthmax = 100,experience = 0,lookbody = 10,lookfeet = 10,lookhead = 10,looklegs = 10,looktype = 136,lookaddons = 3,maglevel = 0,mana = 100,manamax = 100,`
Message: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '' at line 1
 
I compiled it again, and got this error, how can I solve it?

It's not a problem with this distribution, but SQL schema script file from www service, you attempt to use.
At least one of your *.sql file has unfinished query.

Take a look at this example:
SQL:
UPDATE players SET level = 1,group_id = 3,vocation = 0,health = 100,healthmax = 100,experience = 0,lookbody = 10,lookfeet = 10,lookhead = 10,looklegs = 10,looktype = 136,lookaddons = 3,maglevel = 0,mana = 100,manamax = 100,`

It basically tries to set attributes of lvl 1 player for all records in table players, but it doesn't set town_id or initial positions. It also ends with comma and apostrophe instead of semicolon, as every sql query should.

I'dont know which www service you're trying to use, but myaac-0.8.2 (which I'm personally using) doesn't even have such query.

If I were you I'd try to fix these queries like so: (Even tho I don't know if I'm missing any crucial part)

Example:
SQL:
UPDATE players SET level = 1,group_id = 3,vocation = 0,health = 100,healthmax = 100,experience = 0,lookbody = 10,lookfeet = 10,lookhead = 10,looklegs = 10,looktype = 136,lookaddons = 3,maglevel = 0,mana = 100,manamax = 100;

If it doesn't help, try to use other webpage service.

If you don't know how to find such files. You can use notepad++ ctrl+shift+F function. It finds specified strings in multiple files, which is better option than manual search.
 
Last edited:
Back
Top