• 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

primate

Member
Joined
Apr 14, 2009
Messages
68
Solutions
1
Reaction score
5
Location
Colombia, Medellín.
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: 55 · VirusTotal
Last edited:
OP
OP
celohere

celohere

Intermediate OT User
Joined
Nov 27, 2007
Messages
227
Solutions
10
Reaction score
116
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.
 

primate

Member
Joined
Apr 14, 2009
Messages
68
Solutions
1
Reaction score
5
Location
Colombia, Medellín.
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.
 

Shiris undrin

Member
Joined
Jun 10, 2010
Messages
21
Reaction score
7
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?
 
OP
OP
celohere

celohere

Intermediate OT User
Joined
Nov 27, 2007
Messages
227
Solutions
10
Reaction score
116
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.
 

Shiris undrin

Member
Joined
Jun 10, 2010
Messages
21
Reaction score
7
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.
 

PierolleChael

New Member
Joined
Jan 15, 2019
Messages
26
Reaction score
0
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?
 

Shiris undrin

Member
Joined
Jun 10, 2010
Messages
21
Reaction score
7
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.
 

PierolleChael

New Member
Joined
Jan 15, 2019
Messages
26
Reaction score
0
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. :)
 

paola92

Member
Joined
Jan 14, 2009
Messages
105
Solutions
1
Reaction score
5
Does someone know about any crashed on this engine?
I'm thinking if I can go ahead with this.
 

Axelot

Member
Joined
Oct 26, 2020
Messages
24
Solutions
1
Reaction score
22
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:

wizv123

New Member
Joined
Jul 30, 2011
Messages
7
Reaction score
0
Hello can someone will explain how works Report rule violation CRTL+R ? when i use nothing happens: |

 

Axelot

Member
Joined
Oct 26, 2020
Messages
24
Solutions
1
Reaction score
22
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:

Papamix

New Member
Joined
Sep 6, 2019
Messages
7
Reaction score
2
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
 

Axelot

Member
Joined
Oct 26, 2020
Messages
24
Solutions
1
Reaction score
22
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:
Top