Jump to content

V3ct0r

Administrators
  • Content Count

    2,887
  • Joined

  • Last visited

  • Days Won

    519

Everything posted by V3ct0r

  1. This problem appears after you put Swings files in client.
  2. V3ct0r

    Installing Zend 8.0.2

    Use PDO with sqlsrv driver instead of old mssql_ functions. They are deprecated and deleted from newest PHP versions.
  3. Search by yourself. Now you know how do.
  4. @ahmad, maybe the limit is in Lua scripts for GUI. Have no more ideas
  5. V3ct0r

    PKO Base Files

    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"
  6. 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
  7. if (IsChaInRegion(role, 2) == 1) then -- Персонаж в безопасной зоне (в городе) else -- Персонаж вне безопасной зоны end
  8. V3ct0r

    PKO Base Files

    As usually. What is the error?
  9. 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.
  10. 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.
  11. 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
  12. Hello, @Ximboliex and @ahmad! Try the address 0x0024D874 (0x0320 or 800 objects by default)
  13. 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])
  14. 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.
  15. 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:
  16. Hello, @ZidSliverr! You can't do that. There is no such Lua function to open the map from NPC dialog.
  17. It is called "Reverse Engineering". You can not just take and get the source code from .exe.
  18. 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.
  19. 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.
  20. V3ct0r

    Programming Task

    And what is the problem? Can not help - walk past
  21. What is error? Any logs? Make sure that GroupServer can connect to MSSQL Server
  22. V3ct0r

    PK Mode - HandleChat

    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
×
×
  • Create New...