Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

How do you change the Quest EXP rate on your own 4Story Server?

Newbie Spellweaver
Joined
Nov 25, 2019
Messages
5
Reaction score
5
As per the title.

I have searched the database but I can't find anything :/

Okay nevermind I have found it. It is the TQREWARDCHART table in TGAME_GSP.dbo.

bRewardType = 6 indicates that it is EXP and the corresponding dwRewardID will be the amount of EXP which will be rewarded for the Quest with the dwQuestID

You can also change it in TMapSvr project (which compiles the TMAP service) in TPlayer.cpp under the function
Code:
CTPlayer::OnQuestComplete
there will be some cases and under the
Code:
case RT_EXP
you just need to modify the
Code:
dwExp
variable, which normally takes the EXP from the corresponding dwRewardID in the database.

So if you want to change your Quest EXP Rate in your server you would either multiply/divide every dwRewardID with bRewardType 6 in your database or you would write something like dwExp = dwExp * 4 in TPlayer.cpp

Here is the query to change the EXP Rate from 4.8 (when the first quest gives you 24 experience) to 1 (original)

SQL:
UPDATE TQREWARDCHART
SET dwRewardID = ROUND((dwRewardID / 4.8), 0)
WHERE bRewardType = 6;
 
Last edited:
Back
Top