Feature [TFS 1.3] Monster Levels

Thorn

Excellent OT User
Joined
Sep 24, 2012
Messages
2,174
Best answers
1
Reaction score
844
Location
Chile
Awesome system! worked great for me! i just was wondering if it's possible to say like /m cyclops,100 to summon monsters with level? and not randomly?
 
OP
Stigma

Stigma

Veteran OT User
Joined
Feb 14, 2015
Messages
4,700
Best answers
414
Reaction score
2,261
Awesome system! worked great for me! i just was wondering if it's possible to say like /m cyclops,100 to summon monsters with level? and not randomly?
no, you can't set level while or after they spawn unless you do it in sources and add another variable to Monster class and set it inside of Game.createMonster with another bonus param for force level, then check for it in Monster::Monster()
 

Dreww

Advanced OT User
Joined
Oct 7, 2011
Messages
223
Best answers
0
Reaction score
215
awesome system! but how can i add skulls?
example: lvl 1-25 (green skull) 26-50 (white) etc etc
 
OP
Stigma

Stigma

Veteran OT User
Joined
Feb 14, 2015
Messages
4,700
Best answers
414
Reaction score
2,261
edit Monster::Monster() constructor in monster.cpp and set skull to w/e you like based on level
 

Thorn

Excellent OT User
Joined
Sep 24, 2012
Messages
2,174
Best answers
1
Reaction score
844
Location
Chile
@Stigma would you be willing to do a few adjustments for $$?
- add also a multiplier for exp in config.lua
-/m monster,level
 
OP
Stigma

Stigma

Veteran OT User
Joined
Feb 14, 2015
Messages
4,700
Best answers
414
Reaction score
2,261
@Stigma would you be willing to do a few adjustments for $$?
- add also a multiplier for exp in config.lua
-/m monster,level
message me on discord, Stigma#0666
 

RoyalYeta

New Member
Joined
Sep 28, 2018
Messages
25
Best answers
0
Reaction score
2
I own OTX patch 10_11. I have to add code to config.lua and add <level min = "5" max = "100" /> to each monster separately? will it paste once and enough? do I have to change something in the sources?
 
OP
Stigma

Stigma

Veteran OT User
Joined
Feb 14, 2015
Messages
4,700
Best answers
414
Reaction score
2,261
you have to add it in each xml file separately
 

jel

Well-Known Member
Joined
Mar 22, 2014
Messages
60
Best answers
0
Reaction score
2
Anyone send me the source already with this system?
 

jel

Well-Known Member
Joined
Mar 22, 2014
Messages
60
Best answers
0
Reaction score
2
help me for no otx 1.3
 

gicu0770

Intermediate OT User
Joined
Feb 26, 2011
Messages
104
Best answers
0
Reaction score
15
What is wrong?


/home/rax/src/game.cpp:4166:21: error: ‘attacker’ was not declared in this scope
Monster* monster = attacker ? attacker->getMonster() : nullptr;
^
/home/rax/src/game.cpp:4166:32: error: ‘attacker’ was not declared in this scope
Monster* monster = attacker ? attacker->getMonster() : nullptr;
^
/home/rax/src/game.cpp:4167:2: error: expected unqualified-id before ‘if’
if (monster && monster->getLevel() > 0) {
^
CMakeFiles/tfs.dir/build.make:599: recipe for target 'CMakeFiles/tfs.dir/src/game.cpp.o' failed
make[2]: *** [CMakeFiles/tfs.dir/src/game.cpp.o] Error 1
CMakeFiles/Makefile2:122: recipe for target 'CMakeFiles/tfs.dir/all' failed
make[1]: *** [CMakeFiles/tfs.dir/all] Error 2
Makefile:76: recipe for target 'all' failed
make: *** [all] Error 2
 

gicu0770

Intermediate OT User
Joined
Feb 26, 2011
Messages
104
Best answers
0
Reaction score
15
WoW! Working good on TFS 1.2 10.98!
You ROX!
 

Extrodus

Legendary OT User
Joined
Dec 22, 2008
Messages
2,288
Best answers
1
Reaction score
283
Location
Canada, Eh?
Compiled for Nostalrius and get a client debug when I log in.. weird.
Will re-write this in the future if I get the time - it basically works; just need to modify the code a bit.
@StreamSide - I know you understand the sources pretty good so far, do you have any ideas why I would get a debug?
Wanted to use this system on my new island I'm creating.


Side Note: If we are increasing overall damage and attack values, why not increase the experience values to give a more unique leveling experience ontop of the monster level variety.
 
Last edited:

TheRealMystic

Aros.Online
Joined
Oct 30, 2007
Messages
283
Best answers
0
Reaction score
26
Location
USA
Funny to still see ppl using my paid script that he released for free lol 🤔🤔
 
Top