mattyx14 / otxserver

OTX Server from:
https://docs.opentibiabr.com
GNU General Public License v2.0
228 stars 194 forks source link

Attack Speed and no save pos logout [8.6] #557

Closed andreluiz93 closed 5 years ago

andreluiz93 commented 5 years ago

Hello, im new in opentibia script, however im work with programation in another languages...

My question is that i want to implement attackspeed rate by config.lua, so in which file i have to starts look?

You dont need to talk how i do this, but tell-me the file .cpp a have to look for...

My second question is, how i do that the players with logout or by death doesnt save in database ? (path to do a pvp-enforced different)

Thankssss!!!

Reason184 commented 5 years ago

You probably need to look into these: configmanager.h, configmanager.cpp and player.cpp

andreluiz93 commented 5 years ago

Thanks for that!

And to second question, is possible?

Reason184 commented 5 years ago

Yes it is, I actually have that on my custom server.It's also easy if you know where to 'go'

andreluiz93 commented 5 years ago

Understood! Everything becomes more easly if know wherer to go rs

Which files a do i have to look for? :D

Reason184 commented 5 years ago

I've already told you the files, for the function it's this one on player.cpp Player::getAttackSpeed()

andreluiz93 commented 5 years ago

Yes, about attackspeed, a im already doing tests...

I want to know about second question that players if logout or dead, doesnt save status, level, position, loot, and more that save in database... I want to do a pvp-enforced that have only 1 account and have 4 players, and everyone that login in server, login in this account and when logout or dead, doesnt save for to next login... which files i have to look? :D

Thank you for your attention so far.

Reason184 commented 5 years ago

Oh, that should be on Player::onCreatureDisappear

You can start there

andreluiz93 commented 5 years ago

Thanks my friend!!

Have a good day!

andreluiz93 commented 5 years ago

Hello, I have more one question @Reason184

When players get level up, is save state (position, loot, level, etc), which functions makes this?