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!

Full source code for the game Spirit Hunter Online or Blood and Soul (source code + client + server + documentation + tools)

Experienced Elementalist
Joined
Sep 12, 2013
Messages
279
Reaction score
76
The main quests for the divine skill start at level 20. If you have everything with them will be in order, can you share the server_data folder? I will see the difference in my files above.
OK, please wait a moment, uploading...
But I'm not sure if divine skill works or not bro. :GenshinKek:

Do you know which file it is related to? Its name?

------------
update:
 
Last edited:
Newbie Spellweaver
Joined
Jul 25, 2013
Messages
55
Reaction score
19
OK, please wait a moment, uploading...
But I'm not sure if divine skill works or not bro. :GenshinKek:

Do you know which file it is related to? Its name?

------------
update:
server_data\script\quest\God\God_zhiyin.lua - I found this file is responsible for the "Purification of Faith" mission.

so I fixed it-- lines 25 and 32:
if k%100 >= 10 then
by
if k%10 >= 10 then

With this correction I got the quest "Purification of Faith" working. The next quest does not work
 
Experienced Elementalist
Joined
Sep 12, 2013
Messages
279
Reaction score
76
server_data\script\quest\God\God_zhiyin.lua - I found this file is responsible for the "Purification of Faith" mission.
Have you tried doing the level 20 quest to get skills? Let me open the server and try to get to level 20. And I will tell you the results. :GenshinKek:
 
Newbie Spellweaver
Joined
Jul 25, 2013
Messages
55
Reaction score
19
Have you tried doing the level 20 quest to get skills? Let me open the server and try to get to level 20. And I will tell you the results. :GenshinKek:
Yes, the first quest I was able to fix and pass ("purification of faith" adding stars). The next in the chain, in which you need to use the divine skill in battle once, I have it did not count.

I've noticed that when I use a skill I need for a quest. it plays a sound that says the conditions are not met.

Done, now all the basic faith quests work. Here's the fix. Just replace the code with this one.
server\server_data\script\quest\God\God_zhiyin.lua

XML:
--任务接取时函数
function q40059_OnAccept(MapID, InstanceID, QuestID, RoleID, AccepterID)
    local k = role.GetRoleScriptData(RoleID, 1, RoleDataType["God_Quest"])
    if k%10 >= 1 then
        role.ModSpecialTargetValue(MapID, InstanceID, RoleID, QuestID, 2)
    end
end

function q40059_CheckComplete(MapID, InstanceID, QuestID, RoleID, AccepterID)
    local k = role.GetRoleScriptData(RoleID, 1, RoleDataType["God_Quest"])
    if k%10 >= 1 then
        return 1
    else
        return 0
    end

end

aux.RegisterQuestEvent(40059, 0, "q40059_OnAccept")
aux.RegisterQuestEvent(40059, 5, "q40059_CheckComplete")


function q40060_OnAccept(MapID, InstanceID, QuestID, RoleID, AccepterID)
    local k = role.GetRoleScriptData(RoleID, 1, RoleDataType["God_Quest"])
    if k%100 >= 1 then
        role.ModSpecialTargetValue(MapID, InstanceID, RoleID, QuestID, 2)
    end
end

function q40060_CheckComplete(MapID, InstanceID, QuestID, RoleID, AccepterID)
    local k = role.GetRoleScriptData(RoleID, 1, RoleDataType["God_Quest"])
    if k%100 >= 1 then
        return 1
    else
        return 0
    end
end
    
aux.RegisterQuestEvent(40060, 0, "q40060_OnAccept")
aux.RegisterQuestEvent(40060, 5, "q40060_CheckComplete")


function q40061_OnAccept(MapID, InstanceID, QuestID, RoleID, AccepterID)
    local k = role.GetRoleScriptData(RoleID, 1, RoleDataType["God_Quest"])
    if k/100 >= 1 then
        role.ModSpecialTargetValue(MapID, InstanceID, RoleID, QuestID, 2)
    end
end

function q40061_CheckComplete(MapID, InstanceID, QuestID, RoleID, AccepterID)
    local k = role.GetRoleScriptData(RoleID, 1, RoleDataType["God_Quest"])
    if k/100 >= 1 then
        return 1
    else
        return 0
    end

end

aux.RegisterQuestEvent(40061, 0, "q40061_OnAccept")
aux.RegisterQuestEvent(40061, 5, "q40061_CheckComplete")

--任务接取时函数
function q40064_OnAccept(MapID, InstanceID, QuestID, RoleID, AccepterID)
    local k = role.GetRoleScriptData(RoleID, 1, RoleDataType["God_Quest"])
    if k%10 >= 3 then
        role.ModSpecialTargetValue(MapID, InstanceID, RoleID, QuestID, 2)
    end
end

function q40064_CheckComplete(MapID, InstanceID, QuestID, RoleID, AccepterID)
    local k = role.GetRoleScriptData(RoleID, 1, RoleDataType["God_Quest"])
    if k%10 >= 3 then
        return 1
    else
        return 0
    end

end

aux.RegisterQuestEvent(40064, 0, "q40064_OnAccept")
aux.RegisterQuestEvent(40064, 5, "q40064_CheckComplete")

--任务接取时函数
function q40065_OnAccept(MapID, InstanceID, QuestID, RoleID, AccepterID)
    local k = role.GetRoleScriptData(RoleID, 1, RoleDataType["God_Equip"])
    if k >= 1 then
        role.ModSpecialTargetValue(MapID, InstanceID, RoleID, QuestID, 2)
    end
end

function q40065_CheckComplete(MapID, InstanceID, QuestID, RoleID, AccepterID)
    local k = role.GetRoleScriptData(RoleID, 1, RoleDataType["God_Quest"])
    if k >= 1 then
        return 1
    else
        return 0
    end

end

aux.RegisterQuestEvent(40065, 0, "q40065_OnAccept")
aux.RegisterQuestEvent(40065, 5, "q40065_CheckComplete")

checked, all quest chain up to level 40 works. All the side quests also work and I haven't pumped any further.
 
Last edited:
Newbie Spellweaver
Joined
Mar 26, 2024
Messages
6
Reaction score
0
Anyone might know why I cannot run the server files on a VPS? Tried with 3 different verions. With all VC++ redist installed, Windows SDK, DirectX SDK and VC Studio 2005. Tried to run it as admin, in compatibility mode as well.

When I try to open the .exe nothing happens.
 
Newbie Spellweaver
Joined
Jul 25, 2013
Messages
55
Reaction score
19
Anyone might know why I cannot run the server files on a VPS? Tried with 3 different verions. With all VC++ redist installed, Windows SDK, DirectX SDK and VC Studio 2005. Tried to run it as admin, in compatibility mode as well.

When I try to open the .exe nothing happens.
Which server is not starting DBServer, WorldServer, LoginServer ?

If Worldserver does not start, check if you have set up the configuration correctly.
If DBServer does not start, also check if you have changed the server name, if so, there will be two files in the server_config/db/ folder, one of them should be renamed to the server name. Also don't forget to change serverinfo.xml on the webserver, otherwise it won't start.

P.S If I find a video on configuring the server, I will throw it here. The video was recorded not by me, someone from another forum a long time ago.

Configuration video
 
Last edited:
Joined
May 19, 2011
Messages
595
Reaction score
71
Anyone might know why I cannot run the server files on a VPS? Tried with 3 different verions. With all VC++ redist installed, Windows SDK, DirectX SDK and VC Studio 2005. Tried to run it as admin, in compatibility mode as well.

When I try to open the .exe nothing happens.
Check DEP settings: this engine requires DEP to be switched off
 
Newbie Spellweaver
Joined
Mar 26, 2024
Messages
6
Reaction score
0
It worked! Thanks

Also, do you know how to directly create an account in the DB? I inserted to the account table, but my game keeps in loop (launcher > login screen > launcher > ...)
 
Joined
May 19, 2011
Messages
595
Reaction score
71
It worked! Thanks

Also, do you know how to directly create an account in the DB? I inserted to the account table, but my game keeps in loop (launcher > login screen > launcher > ...)

>Thanks

Tip: You can use "Like" button for this purpose

>game keeps in loop

This is due to some misconfiguration.
Perhaps, your login server have been configured with one version and launcher - with another
 
Newbie Spellweaver
Joined
Mar 26, 2024
Messages
6
Reaction score
0
that was it! Now my issue is logging in. I am getting "invalid id or password". That's my current test account:
print-phpmyadmi - Full source code for the game Spirit Hunter Online or Blood and Soul (source code + client + server + documentation + tools) - RaGEZONE Forums

psd is also "test" (md5). I believe something might be wrong with the privilege or worldname_crc columns. Any ideas?

Edit:
solved. Found how to create an account here https://forum.ragezone.com/threads/release-blood-and-soul-official-server-files-incomplete.982667/
 

Attachments

You must be registered for see attachments list
Last edited:
Joined
May 19, 2011
Messages
595
Reaction score
71
that was it! Now my issue is logging in. I am getting "invalid id or password". That's my current test account:
View attachment 259999
psd is also "test" (md5). I believe something might be wrong with the privilege or worldname_crc columns. Any ideas?

Edit:
solved. Found how to create an account here https://forum.ragezone.com/threads/release-blood-and-soul-official-server-files-incomplete.982667/
Md5 should be generated with salt. Password with `test` will be `9D5EFA66C7DD0B12826E09E32A6A9D64`
You can search info about it in Loong section (game engine is same, so, most of guides will work here too)
 
Newbie Spellweaver
Joined
Jul 26, 2023
Messages
18
Reaction score
13
this my bin build with vs2019 , idk why client 10mb :GenshinKek:
 
Experienced Elementalist
Joined
Sep 12, 2013
Messages
279
Reaction score
76
The salt for the password is 'xvDvgqZq'.

Example of PHP use.
PHP:
$key = 'xvDvgqZq';
$password = 'your_password';
$salt = MD5($password . $key);
 
Back
Top