Feature [TFS 1.3] Monster Levels

Stigma

Support Team
Support Team
Joined
Feb 14, 2015
Messages
4,753
Best answers
422
Reaction score
2,320
Last edited by a moderator:

GN Xedoc

Banned User
Joined
Sep 2, 2018
Messages
26
Best answers
2
Reaction score
2
There is some code missing from this feature, When I gather my code together I'll release it.
 

Tempesto

Member
Joined
Feb 12, 2018
Messages
79
Best answers
0
Reaction score
5
Location
Ruining your servers.
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?
 
OP
Stigma

Stigma

Support Team
Support Team
Joined
Feb 14, 2015
Messages
4,753
Best answers
422
Reaction score
2,320
requests
 

GN Xedoc

Banned User
Joined
Sep 2, 2018
Messages
26
Best answers
2
Reaction score
2
Now I see where you got the code, this was posted in 2015
[C++] Level Monster
And you reposted it here as if you wrote it.. that is terrible :(
 

GN Xedoc

Banned User
Joined
Sep 2, 2018
Messages
26
Best answers
2
Reaction score
2
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! :)
 

JDB

OtLand Veteran
Joined
Jun 1, 2009
Messages
4,145
Best answers
2
Reaction score
109
Nice release.
 

Shadow_

Active Member
Joined
Jun 2, 2018
Messages
348
Best answers
9
Reaction score
72
Location
Cairo, Egypt
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_
 

StreamSide

Joseluis Gonzalez
Support Team
Joined
Aug 31, 2007
Messages
3,294
Best answers
29
Reaction score
811
Location
Arica - Chile
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 :)
 

Shadow_

Active Member
Joined
Jun 2, 2018
Messages
348
Best answers
9
Reaction score
72
Location
Cairo, Egypt
OP
Stigma

Stigma

Support Team
Support Team
Joined
Feb 14, 2015
Messages
4,753
Best answers
422
Reaction score
2,320
you're using tfs 1.2 for 8.6 which is outdated, not official 1.2
 
OP
Stigma

Stigma

Support Team
Support Team
Joined
Feb 14, 2015
Messages
4,753
Best answers
422
Reaction score
2,320
then it's still outdated, monsterinfo struct doesn't exist in yours, search 1.2 commits by monsterinfo and apply the changes
 

Togu

Active Member
Joined
Jun 22, 2018
Messages
245
Best answers
1
Reaction score
101
Location
Brazil
I'm going to test it and then I'll try to make it like the stronger the monster the easier the drop rate.
 
Top