Feature [TFS 1.3] Monster Levels

Stigma

Well-Known Member
Joined
Feb 14, 2015
Messages
4,363
Best answers
356
Likes
1,938
#1
Last edited by a moderator:

GN Xedoc

Banned User
Joined
Sep 2, 2018
Messages
26
Best answers
2
Likes
2
#3
There is some code missing from this feature, When I gather my code together I'll release it.
 
Joined
Feb 12, 2018
Messages
79
Best answers
0
Likes
5
Location
Ruining your servers.
#5
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?
 

GN Xedoc

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

Shadow_

asgard-ot.com
Premium User
Joined
Jun 2, 2018
Messages
273
Best answers
6
Likes
43
Location
Cairo, Egypt
#12
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
Joined
Aug 31, 2007
Messages
3,071
Best answers
18
Likes
679
Location
Arica - Chile
#13
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_

asgard-ot.com
Premium User
Joined
Jun 2, 2018
Messages
273
Best answers
6
Likes
43
Location
Cairo, Egypt
#14

Stigma

Well-Known Member
Joined
Feb 14, 2015
Messages
4,363
Best answers
356
Likes
1,938
#15
you're using tfs 1.2 for 8.6 which is outdated, not official 1.2
 

Stigma

Well-Known Member
Joined
Feb 14, 2015
Messages
4,363
Best answers
356
Likes
1,938
#17
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
141
Best answers
0
Likes
29
Location
Brazil
#18
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