• 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!

Feature [TFS 1.3] Monster Levels

Infernum

Senator
Joined
Feb 14, 2015
Messages
5,638
Solutions
559
Reaction score
3,942
Last edited by a moderator:
There is some code missing from this feature, When I gather my code together I'll release it.
 
Is there a code part that can be added on(by you :p) where the monster gains exp to level? And stops exping after 100 kills of players in under 10 minutes and waits for 10 hrs? TFS 1.2? or should I put this in the request section?
 
This system was/is for aros.online. However he is releasing it here. So no... he didn't copy it from there.
That is where it is posted and it isn't anything new, although I wrote a different version of it a few years ago well before 2015. But yea he is missing some important methods, anyway it doesn't matter if you guys are happy with what you have then great! :)
 
Code:
Severity    Code    Description    Project    File    Line    Suppression State
Error    C2228    left of '.value' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4169   
Error    C2027    use of undefined type 'Monster'    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\protocolgamebase.cpp    126   
Error    C2227    left of '->getLevel' must point to class/struct/union/generic type    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\protocolgamebase.cpp    126   
Error    C2027    use of undefined type 'Monster'    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\protocolgamebase.cpp    127   
Error    C2227    left of '->getLevel' must point to class/struct/union/generic type    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\protocolgamebase.cpp    127   
Error    C2039    'info': is not a member of 'MonsterType'    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\monsters.cpp    876   
Error    C2228    left of '.minLevel' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\monsters.cpp    876   
Error    C2039    'info': is not a member of 'MonsterType'    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\monsters.cpp    881   
Error    C2228    left of '.maxLevel' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\monsters.cpp    881   
Error    C2039    'info': is not a member of 'MonsterType'    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\monster.cpp    56   
Error    C2228    left of '.minLevel' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\monster.cpp    56   
Error    C2228    left of '.maxLevel' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\monster.cpp    56   
Error    C2660    'uniform_random': function does not take 1 arguments    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\monster.cpp    56   
Error    C2065    'damage': undeclared identifier    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4165   
Error    C2228    left of '.primary' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4165   
Error    C2228    left of '.value' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4165   
Error    C2065    'damage': undeclared identifier    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4166   
Error    C2228    left of '.primary' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4166   
Error    C2228    left of '.value' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4166   
Error    C2065    'damage': undeclared identifier    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4168   
Error    C2228    left of '.secondary' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4168   
Error    C2228    left of '.value' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4168   
Error    C2065    'damage': undeclared identifier    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4169   
Error    C2228    left of '.secondary' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4169   
Error    C2572    'ConfigManager::getGlobalFloat': redefinition of default argument: parameter 1    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\configmanager.cpp    210   
Error (active)    E0393    pointer to incomplete class type is not allowed    theforgottenserver    c:\Users\rahma\Desktop\Tibia_Development\TFS\Tfs Custom Modifications V2\src\protocolgamebase.cpp    126   
Error (active)    E0393    pointer to incomplete class type is not allowed    theforgottenserver    c:\Users\rahma\Desktop\Tibia_Development\TFS\Tfs Custom Modifications V2\src\protocolgamebase.cpp    127
@Vulcan_
 
Code:
Severity    Code    Description    Project    File    Line    Suppression State
Error    C2228    left of '.value' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4169  
Error    C2027    use of undefined type 'Monster'    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\protocolgamebase.cpp    126  
Error    C2227    left of '->getLevel' must point to class/struct/union/generic type    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\protocolgamebase.cpp    126  
Error    C2027    use of undefined type 'Monster'    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\protocolgamebase.cpp    127  
Error    C2227    left of '->getLevel' must point to class/struct/union/generic type    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\protocolgamebase.cpp    127  
Error    C2039    'info': is not a member of 'MonsterType'    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\monsters.cpp    876  
Error    C2228    left of '.minLevel' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\monsters.cpp    876  
Error    C2039    'info': is not a member of 'MonsterType'    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\monsters.cpp    881  
Error    C2228    left of '.maxLevel' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\monsters.cpp    881  
Error    C2039    'info': is not a member of 'MonsterType'    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\monster.cpp    56  
Error    C2228    left of '.minLevel' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\monster.cpp    56  
Error    C2228    left of '.maxLevel' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\monster.cpp    56  
Error    C2660    'uniform_random': function does not take 1 arguments    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\monster.cpp    56  
Error    C2065    'damage': undeclared identifier    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4165  
Error    C2228    left of '.primary' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4165  
Error    C2228    left of '.value' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4165  
Error    C2065    'damage': undeclared identifier    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4166  
Error    C2228    left of '.primary' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4166  
Error    C2228    left of '.value' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4166  
Error    C2065    'damage': undeclared identifier    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4168  
Error    C2228    left of '.secondary' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4168  
Error    C2228    left of '.value' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4168  
Error    C2065    'damage': undeclared identifier    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4169  
Error    C2228    left of '.secondary' must have class/struct/union    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\game.cpp    4169  
Error    C2572    'ConfigManager::getGlobalFloat': redefinition of default argument: parameter 1    theforgottenserver    c:\users\rahma\desktop\tibia_development\tfs\tfs custom modifications v2\src\configmanager.cpp    210  
Error (active)    E0393    pointer to incomplete class type is not allowed    theforgottenserver    c:\Users\rahma\Desktop\Tibia_Development\TFS\Tfs Custom Modifications V2\src\protocolgamebase.cpp    126  
Error (active)    E0393    pointer to incomplete class type is not allowed    theforgottenserver    c:\Users\rahma\Desktop\Tibia_Development\TFS\Tfs Custom Modifications V2\src\protocolgamebase.cpp    127
@Vulcan_
what version are you using?
title says tfs 1.3 :)
 
code: aasfdfdasfdafdasf · Vulcanx/forgottenserver@723b97b

config.lua:
Lua:
for tfs 1.2 users, configmanager is changed in 1.3, so ignore the configmanager.h and configmanager.cpp changes in the main post
instead, use these changes for configmanager in 1.2: [URL='https://github.com/Vulcanx/forgottenserver/commit/78a84b9901fdbe7af83b285f625da6fee1b5e390']as,d,JS<KjDDDD · Vulcanx/forgottenserver@78a84b9[/URL] He said for tfs 1.2 users?[/QUOTE]
 
you're using tfs 1.2 for 8.6 which is outdated, not official 1.2
 
then it's still outdated, monsterinfo struct doesn't exist in yours, search 1.2 commits by monsterinfo and apply the changes
 
I'm going to test it and then I'll try to make it like the stronger the monster the easier the drop rate.
 
Back
Top