Anybody know where I edit the rate is?
and sending items to my account?
and what the codes of items?
Printable View
Anybody know where I edit the rate is?
and sending items to my account?
and what the codes of items?
its in the map config file
look for the section named StatusByLevel and add after it this
cexp=1 jexp=1 wexp=1
what is the exact file name? im getting confused with the files, most of them have almost the same names >_>
ok i changed it and added the line but it doesnt change anything
im not sure but i think its the one inside the binary folder. ^^
someone discovered how to edit the rates?
/Saga.Map/PrimaryTypes/Character.cs
Open Character.cs, scroll down until you see
Change the rates then recompile.Code:
#region Character - Rates
public double _CexpModifier = 1;
public double _JexpModifier = 1;
public double _WexpModifier = 1;
public double _DropRate = 1;
#endregion
hmm wow nice i guess thats a better way to do it. :P
Would be nice to get the configuration file working for rates though. Not a good idea to have magic numbers scattered around in your sourcecode.
I agree with Mac, it would be better to config it either in a config file...
For example if i want weekends to give double XP for events, i have to recompile twice a week...that would get annoying.
show me how create that!... i got try but no respawn! exp still rate cexp, jexp & wexp = 1
even if you change this
#region Character - Rates
public double _CexpModifier = 1;
public double _JexpModifier = 1;
public double _WexpModifier = 1;
public double _DropRate = 1;
#endregio
1 = to x1? or 1 = to x10? i dont get it??
#region Character - Rates
public double _CexpModifier = 1;
public double _JexpModifier = 1;
public double _WexpModifier = 1;
public double _DropRate = 1;
#endregion
this code doesn't work with my server. Is there any other things I should do for it to work.
does it needs to be recompiled?
how do we recompile??
sorry not really a pro @ this.. i would apreciate the help.
it's same here.. this code's don't work...
-not pro about this position - hahaha - peace -
can anyone give out a recompiled version of the file?
haha i dont have VS installed =D and i dont know how to use it... =D
maybe a 250x rates for all wep base and job exp??
if anyone wont mind?
I will try to recompile this and release it here.... maybe after 3 days.... I have to test it before I release it. :laugh:
One thing that questions me is how do I modify this.... is this modifier works like 1=100% or x1 ? if it is, to be able to make the rates into 250x, i will be going to put it like this?
#region Character - Rates
public double _CexpModifier = 250;
public double _JexpModifier = 250;
public double _WexpModifier = 250;
public double _DropRate = 250;
#endregion
correct me if I'm wrong. <I'm just a Beginner in Programing though.>
#region Character - Rates
public double _CexpModifier = 250;
public double _JexpModifier = 250;
public double _WexpModifier = 250;
public double _DropRate = 250;
#endregion
could be 250x exp rate? means 250% rate from server
nice
The way I found to be able to make the map configuration file to allow numbers higher than 20 is by editing Saga.Map/Configuration/Config.Factory.Exptable.cs
You will find 3 instances of the following code:
The other two are labled "jexp" and "wexp" respectively.Code:[ConfigurationProperty("cexp", DefaultValue = 1, IsRequired = false)]
[IntegerValidator(MinValue = 1, MaxValue = 20, ExcludeRange = false)]
By changing MaxValue = 20 to something higher, say 2000, you will be able to use the Saga.Map.config file to change server rates on the fly without having to recompile (you will, of course have to recompile after editing Config.Factory.Exptable.cs, but after that, changing server rates is as simple as editing Saga.Map.Config and restarting the server.
Hope this helps if anyone finds a flaw with this technique please let me know. :thumbup1:
Edit: Re-correcting myself, if you are compiling properly this method *should* work.
lol it works beautifully thanks friend
Thanks
I don't knowed.
Oh sweet I was right! :P: I guess when I was compiling it wasn't re-creating the binary files anymore.. strange, but I deleted everything and started all over, and by using the method I mentioned before, you can successfully use Saga.Map.config to set your rates without needing to recompile.
However, to change the item droprate from mobs you will still need to recompile i think.