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!

Basic guide to changing move speed/min. pk level

Status
Not open for further replies.
Newbie Spellweaver
Joined
Apr 22, 2011
Messages
40
Reaction score
5
This is a little mini guide where I will tell you how to modify the default movement speed of character at their creation, the minimum level required to attack another player on pk enabled maps, as well as the minimum level required to get married and the maximum time a single character can be married in it's "lifespan".

For this guide I'm using the 1.0.67 files as provided by KrimsonBlades(download found here)

Modifying any of these values is a pretty simple process, as long as you know which file is used, all of these values are found in a single file called "game.ini" which in the files used for this guide can be found in "wok167\wok\KfSvr\data\config\game.ini".

Now to modify any of these you simply open the game.ini file in notepad and inside you will see the following:

; ÓÎÏ·ÉèÖÃÐÅÏ¢
; 36000 tick == 1 hour
; 600 tick == 1 minute

[game_config]
tile_size = 50 ; µØש³ß´ç,ÊÀ½ç×ø±êµ¥Î»
vis_distance = 96 ; ¿ÉÊÓ¾àÀë,ÒÔ¸ñ×ÓΪµ¥Î»
run_speed = 700 ; ÊÀ½ç×ø±êµ¥Î»,ÿtick=1/5Ãë
anti_cheat = 0 ; ·´Íâ¹ÒÊÇ·ñ¿ªÆô

trade_distance = 48 ; È˺ÍÉ̵ê×îÔ¶µÄ½»Ò×¾àÀ룬µØשµ¥Î»
role_be_PK_min_level = 20 ; PK±£»¤¼¶±ð£¬µÍÓڴ˼¶±ð²»±»PK

role_marry_level = 1 ; ÈËÎï×îµÍ½á»éµÈ¼¶
role_marry_max_times = 3 ; ÈËÎï×î¶à½á»é´ÎÊý

In notepad you'll notice the notations(the parts after the ";" symbol) appear as gibberish looking text, this is because these notes are in fact written in chinese, if you have microsoft word or some other more robust text program and the proper language packs installed(in this case chinese) you can instead open the ini in that program, and see the correct text, for example if you open it in Microsoft word 2010 and at the dialog asking for encoding you should select "Chinese Simplified (GB18030)" then when it opens you will see this:

; 游戏设置信息
; 36000 tick == 1 hour
; 600 tick == 1 minute

[game_config]
tile_size = 50 ; 地砖尺寸,世界坐标单位
vis_distance = 96 ; 可视距离,以格子为单位
run_speed = 700 ; 世界坐标单位,每tick=1/5秒
anti_cheat = 0 ; 反外挂是否开启

trade_distance = 48 ; 人和商店最远的交易距离,地砖单位
role_be_PK_min_level = 20 ; PK保护级别,低于此级别不被PK

role_marry_level = 1 ; 人物最低结婚等级
role_marry_max_times = 3 ; 人物最多结婚次数

Which if you so desire can be translated either with help from someone who speaks Chinese or simply using an online translator like Google translate, this method can be used to read the chinese text in basically any of the WoKF files, not just the ini files.

Anyway, back to the guide, as you can see it's pretty straight forward.
This line first:
run_speed = 700

this determines the default run speed or a character, which is written at the time it is created, so if you have been running the server with the default speed and characters exist already, then you increase the speed, only new characters will be faster, ones made before the change will still be the old speed. This value works on a predictable scale, so the default is 700, if you set the value to 1400 then character will be 2x as fast as before, using this you can determine the speed before setting, if you set this value while the server exe's are running you will have to restart them for it to take effect(as will all other values in this guide).

Second is the pk level:
role_be_PK_min_level = 20

Also quite straight forward, this value is the character level required before you can attack another character, set it as 60 and no one under level 60(including at 60) will be able to pk or be pked, if you set it to the current max level, say 120, then pking will be completely disabled.

And finally the marriage values:
role_marry_level = 1
role_marry_max_times = 3


Once again quite straight forward, the first line denotes the character level minimum to marry, in this case it's 1, so any character can marry, set it to 60 and no one can marry until they get to level 61.

The second line determines how many times the same character may marry, set at 3, if you marry, then divorce, that is 1 marriage, another marry and divorce is 2 etc... the number you enter here is the maximum value of those times, 3 means you may marry 3 times and if you divorce after the third you may no longer marry on that character again, I personally think this value should be set very high(such as 999) as I don't see reason for in-game marriage to be of a very limited number, however individual opinions of course vary.

The other values within this file I don't recommend changing as if you change them wrongly it can cause unusual behavior.

I hope this little guide comes in handy for someone and have fun everyone! :):
 
Status
Not open for further replies.
Back
Top