-
Content Count
2,887 -
Joined
-
Last visited
-
Days Won
519
Everything posted by V3ct0r
-
This problem appears after you put Swings files in client.
-
Use PDO with sqlsrv driver instead of old mssql_ functions. They are deprecated and deleted from newest PHP versions.
- 17 replies
-
Search by yourself. Now you know how do.
-
@ahmad, maybe the limit is in Lua scripts for GUI. Have no more ideas
-
GroupServer.cfg [bird] Argent City = garner Shaitan City = magicsea Icicle Castle = darkblue StringSet.txt (client\scripts\table) [39] "Argent City" [40] "Shaitan City" [41] "Icicle Castle"
-
Open Game.exe in OllyDBG or IDA Pro and search for value 0x05F5E100 (100 000 000) You will find something like: 0xAAAAAAAA 3D 00E1F505 CMP EAX,5F5E100 Address for the limit will be: 0xAAAAAAAA - 0x00400000 + 1 For example: Address will be 0x0045BBFF - 0x00400000 + 1 = 0x0005BC00
-
-
if (IsChaInRegion(role, 2) == 1) then -- Персонаж в безопасной зоне (в городе) else -- Персонаж вне безопасной зоны end
-
As usually. What is the error?
-
Hello, @SoundX! The colors of the item names are defined in Game.exe. There is a function named PushHint(text, color, height, font) which displays the text in a tooltip. You need to patch Game.exe to add your code to display tooltip, depending on the type of items.
-
You see blank page because there is an error occurred and error reporting is disabled in php.ini. Probably PHP does not support old MSSQL functions, such as mssql_connect(), mssql_query() and etc.
-
Hello, @Mist_Island! Try to replace the following code in the file SkillEffect.lua function State_Lm_Add(role, statelv) local dmg = 160 + statelv * 20 Hp_Endure_Dmg(role, dmg) end with this function State_Lm_Add(role, statelv) local dmg = 160 + statelv * 20 Endure_Dmg(role, dmg) end The idea is to remove damage from monsters that are on land
-
Hello, @Ximboliex and @ahmad! Try the address 0x0024D874 (0x0320 or 800 objects by default)
-
Hello, @ZidSliverr! Also you can find the spawn points of monsters on Ascaron map (garner) in the files: baiyinlinqu.lua lietinglinqu.lua baiyinyuchang.lua jianazuixiayuchang.lua haifengyuchang.lua jianayunshi.lua bycduizhang.lua.lua bycdaoguai.lua which are located in the folder GameServer\resource\script\monster CreateCha(Monster ID [from CharacterInfo.txt], x * 100, y * 100, Angle [0 - 360], Relive time [in seconds])
- 1 reply
-
- 1
-
Hello, @ahmad! Try to increase the values 0x5F5E100 (100 000 000) which are located at the addresses 0x0006135C and 0x000620FE in GameServer.exe. Note: the value 0x5F5E100 is written to the file in reverse order (00 E1 F5 05) Note 2: addresses are given for 1.38 GameServer from PKO 1.38 Server files.
-
fix / change broken or hidden commands in roso files?
V3ct0r replied to Tassadar's topic in Questions & Help
You need to HEX GameServer.exe. Change '&' sybmol to '/'. From source code: ... else if (*l_content == '&') { Char chGMLv = GetPlayer()->GetGMLev(); if (chGMLv == 0 || chGMLv > 150) SystemNotice(RES_STRING(GM_CHARACTERPRL_CPP_00002)); else DoCommand(l_content + 1, l_retlen - 1); } ... Use the forum search. There is a lot of topics with the same question. Here is one of them: -
Hello, @ZidSliverr! You can't do that. There is no such Lua function to open the map from NPC dialog.
-
It is called "Reverse Engineering". You can not just take and get the source code from .exe.
-
Hello, @Tassadar! 1) Check that your VPS have public access IP; 2) Check that port TCP 1973 is open and is not blocked by the firewall/router; 3) Settings for GateServer.cfg should be: [ToClient] IP = 0.0.0.0 Port = 1973 4) Check that your Game.exe (client side) configured for port 1973; 5) Check that your client configured for your VPS IP address; 6) Check that your VPS is available from the Internet; 7) Use forum search, maybe someone has faced the same problem before you.
-
Hello, @Julio! You can see this function in GameServer.exe source code: inline int lua_IsPlayer(lua_State *L) {T_B BOOL bValid = (lua_gettop (L)==1 && lua_islightuserdata(L, 1)); if(!bValid) { PARAM_ERROR return 0; } CCharacter *pCha = (CCharacter*)lua_touserdata(L, 1); if(pCha->GetPlayer()) { lua_pushnumber(L, 1); } else { lua_pushnumber(L, 0); } return 1; T_E} Lua code: local is_player = IsPlayer(role) if (is_player == 1) then ... else ... end Where role is character descriptor (type is userdata). Check if you pass a valid role to the function.
-
Source code 1.3x usable with 1.36 files? or 1.38 files?
V3ct0r replied to Snovie's topic in Questions & Help
They aren't -
And what is the problem? Can not help - walk past
-
fix / change broken or hidden commands in roso files?
V3ct0r replied to Tassadar's topic in Questions & Help
-
What is error? Any logs? Make sure that GroupServer can connect to MSSQL Server
-
I think you need add the following code to your is_friend() function in file functions.lua: -- At the beginning of function local map_name_cha1 = GetChaMapName(cha1) local map_name_cha2 = GetChaMapName(cha2) if (map_name_cha1 == map_name_cha2 and map_name_cha1 == "CTF") then if (GetChaSideID(cha1) == GetChaSideID(cha2)) then return 1 else return 0 end end