Hi,
My german is so bad so this guide will be in English :P
Since my server died I tought I do release it here. None of the players actually used to quest :(.
what does it do?
It reads contant.inc and then loads the quest rates / other rates.
Why load rates using constant.inc?
Because doing rates via event.lua is just wrong :) event.lua is for events.
Add the quest rates in event.lua yourself it won't be hard ^^
Bugs: Penya and exp won't be shown correctly if I'm right. You can fix this easily in the source.(Not Sure)
First define __QUGETQUESTFACTOR in versionCommon.h
WorldServer
VerisonCommon.h
Open DPCoreClient.cpp
Look for
Alles anzeigen
And add this below it
Alles anzeigen
Now open up DPDatabaseClient.cpp
Look for
And add this below
Open User.cpp and look for
And add this below
Open MsgHdr.h and look for
And add this under it
Now open up Project.cpp
Look for
And add this under it
In the same file look for
and this below
In the same file look for
Alles anzeigen
And add
Alles anzeigen
Still in the same file :P hehe xD
Look for
And REPLACE it with
Alles anzeigen
Now look for
REPLACE it with
Alles anzeigen
Now look for
REPLACE it with
Alles anzeigen
yay we are done with project.cpp.
Now open up project.h
Look for
And ADD under it
Neuz
VerisonCommon.h
Now check this for 4 seconds
You are all done but wait! there is more
open your Project.cpp
find
replace it with
Now look for
and add this under it
Now you are done with the source
Now open up Constant.inc from your resource folder
and add this at the bottom
Alles anzeigen
FAQ
-Q what visual bugs occur?
-A penya and exp you get won't be shown right.
-
-
-
-
Credits
Quget aka Misterkid 95% for making this and release it.
Rose 5% for daring me to make this.
My german is so bad so this guide will be in English :P
Since my server died I tought I do release it here. None of the players actually used to quest :(.
what does it do?
It reads contant.inc and then loads the quest rates / other rates.
Why load rates using constant.inc?
Because doing rates via event.lua is just wrong :) event.lua is for events.
Add the quest rates in event.lua yourself it won't be hard ^^
Bugs: Penya and exp won't be shown correctly if I'm right. You can fix this easily in the source.(Not Sure)
First define __QUGETQUESTFACTOR in versionCommon.h
WorldServer
VerisonCommon.h
Open DPCoreClient.cpp
Look for
Quellcode
And add this below it
Quellcode
Now open up DPDatabaseClient.cpp
Look for
And add this below
Open User.cpp and look for
And add this below
Open MsgHdr.h and look for
And add this under it
Now open up Project.cpp
Look for
And add this under it
In the same file look for
and this below
In the same file look for
Quellcode
- void CProject::ReadConstant( CScript& script )
- {
- do
- {
- script.GetToken();
- if( script.Token == "itemDropRate" )
- {
- script.GetToken();// bypass '='
- SetGlobal( GAME_RATE_ITEMDROP, script.GetFloat() );
- }
- else if( script.Token == "monsterExpRate" )
- {
- script.GetToken();// bypass '='
- SetGlobal( GAME_RATE_MONSTEREXP, script.GetFloat() );
- }
- else if( script.Token == "monsterHitRate" )
- {
- script.GetToken();// bypass '='
- SetGlobal( GAME_RATE_MONSTERHIT, script.GetFloat() );
- }
And add
Quellcode
Still in the same file :P hehe xD
Look for
And REPLACE it with
Quellcode
- #ifdef __QUGETQUESTFACTOR
- script.GetToken(); // (
- propQuest.m_nEndRewardGoldMin = script.GetNumber() * prj.m_fQuestPenRate;
- if(propQuest.m_nEndRewardGoldMin > 1000000000 || propQuest.m_nEndRewardGoldMin < 0)
- {
- propQuest.m_nEndRewardGoldMin = 1000000000;
- }
- script.GetToken(); // (
- propQuest.m_nEndRewardGoldMax = script.GetNumber() * prj.m_fQuestPenRate;
- if(propQuest.m_nEndRewardGoldMax > 1000000000 || propQuest.m_nEndRewardGoldMax < 0)
- {
- propQuest.m_nEndRewardGoldMax = 1000000000;
- }
- #else
- script.GetToken(); // (
- propQuest.m_nEndRewardGoldMin = script.GetNumber();
- script.GetToken(); // ,
- propQuest.m_nEndRewardGoldMax = script.GetNumber();
- #endif
Now look for
REPLACE it with
Quellcode
- #ifdef __QUGETQUESTFACTOR
- script.GetToken(); // (
- propQuest.m_nEndRewardExpMin = script.GetNumber() * prj.m_fQuestExpRate;
- if(propQuest.m_nEndRewardExpMin < 0)
- {
- propQuest.m_nEndRewardExpMin = 2000000000;//Change if you like
- }
- script.GetToken();// ,
- propQuest.m_nEndRewardExpMax = script.GetNumber() * prj.m_fQuestExpRate;
- if(propQuest.m_nEndRewardExpMax < 0)
- {
- propQuest.m_nEndRewardExpMax = 2000000000;//Change if you like
- }
- #else
- script.GetToken(); // (
- propQuest.m_nEndRewardExpMin = script.GetNumber();
- script.GetToken(); // ,
- propQuest.m_nEndRewardExpMax = script.GetNumber();
- #endif
Now look for
REPLACE it with
Quellcode
- #ifdef __QUGETQUESTFACTOR
- script.GetToken(); // (
- propQuest.m_nEndRemoveGold = script.GetNumber() * prj.m_fQuestPenRate;
- if(propQuest.m_nEndRemoveGold > 1000000000 || propQuest.m_nEndRemoveGold < 0)
- {
- propQuest.m_nEndRemoveGold = 1000000000;// Max
- }
- #else
- script.GetToken(); // (
- propQuest.m_nEndRemoveGold = script.GetNumber();
- #endif
yay we are done with project.cpp.
Now open up project.h
Look for
And ADD under it
Neuz
VerisonCommon.h
Now check this for 4 seconds
You are all done but wait! there is more
open your Project.cpp
find
replace it with
Now look for
and add this under it
Now you are done with the source
Now open up Constant.inc from your resource folder
and add this at the bottom
Quellcode
- lang LANG_USA// YOUR COMPILED LANGUAGE!
- {
- formula
- {
- itemDropRate = 1//Item drop rate
- goldDropRate = 1 //Gold drop rate
- monsterExpRate = 1// Exp rate
- questExpRate = 100//quest exp rate
- questPenRate = 100//Quest penya rate
- monsterHitRate = 1.0//Monster hit rate(How hard monsters hit)
- dwVagSP = 1//Vagrant skill cost
- dwExpertSP = 2//Expert job skill cost
- dwProSP = 3//Pro job skill cost
- }
- }
FAQ
-Q what visual bugs occur?
-A penya and exp you get won't be shown right.
-
-
-
-
Credits
Quget aka Misterkid 95% for making this and release it.
Rose 5% for daring me to make this.