Jump to content

V3ct0r

Administrators
  • Content Count

    2,889
  • Joined

  • Last visited

  • Days Won

    519

Everything posted by V3ct0r

  1. Hello, @FapFap! Try change the following constants in file config.php from // Define if data caching is enabled or not. define('IIC_ENABLE_CACHING', false); // Define if Item Hint caching is enabled or not. define('IIC_ENABLE_ITEM_HINT_CACHING', false); // Define if cache is stable // source file not changing and cache does not need to verify source data // turning to true improve performances but will create inconsistencies define('IIC_STABLE_CACHE', false); to // Define if data caching is enabled or not. define('IIC_ENABLE_CACHING', true); // Define if Item Hint caching is enabled or not. define('IIC_ENABLE_ITEM_HINT_CACHING', true); // Define if cache is stable // source file not changing and cache does not need to verify source data // turning to true improve performances but will create inconsistencies define('IIC_STABLE_CACHE', true);
  2. Hello, @icytalent! I think these topics will answer your question:
  3. Hello, @icytalent! The address for ItemInfo limit in your Game.exe is 0x0064D880 and the limit is 32768 items. The problem is in startup parameter, it was changed from 'startgame' to 'avaatoppi' Try start Game.exe using the following .bat: start system\Game.exe avaatoppi table_bin
  4. There are LOG and logfile folders in GameServer root directory
  5. @icytalent you need to increase ItemInfo limit in your Game.exe. The limit is 6000 items by default. You can send to me your Game.exe and will tell you address of the limit.
  6. Hello @Brothers Add the following code to your functions.lua -- 0 = Newbie -- 1 = Swordsman -- 2 = Hunter -- 3 = Sailor -- 4 = Explorer -- 5 = Herbalist -- 6 = Artisan -- 7 = Merchant -- 8 = Champion -- 9 = Crusader -- 10 = White Knight -- 11 = Animal Tamer -- 12 = Sharpshooter -- 13 = Cleric -- 14 = Seal Master -- 15 = Captain -- 16 = Voyager -- 17 = Upstart -- 18 = Engineer function GiveJobToCha(role, job_id) -- Table -- Race ID => Allowed jobs local job_requirements = { [1] = {1, 2, 4, 9, 12, 16}, -- Lance [2] = {1, 8}, -- Carsise [3] = {2, 4, 5, 12, 13, 14, 16}, -- Phyliss [4] = {4, 5, 13, 14, 16} -- Ami } -- Table -- Job ID => Skills local job_skills = { -- Swordsman [1] = { {id = 66, lv = 10}, -- Concentration Lv10 {id = 62, lv = 10}, -- Sword Mastery Lv10 {id = 222, lv = 10}, -- Break Armor Lv10 {id = 84, lv = 10}, -- Berserk Lv 10 {id = 81, lv = 10} -- Illusion Slash Lv 10 }, -- Crusader [9] = { {id = 66, lv = 10}, -- Concentration Lv10 {id = 62, lv = 10}, -- Sword Mastery Lv10 {id = 222, lv = 10}, -- Break Armor Lv10 {id = 84, lv = 10}, -- Berserk Lv 10 {id = 81, lv = 10}, -- Illusion Slash Lv 10 {id = 109, lv = 10}, -- Dual sword Lv 10 {id = 65, lv = 10}, -- Deftness Lv 10 {id = 70, lv = 10}, -- Blood Frenzy Lv 10 {id = 87, lv = 10}, -- Poison Dart Lv 10 {id = 86, lv = 10}, -- Shadow Slash Lv 10 {id = 123, lv = 10} -- Stealth Lv 10 }, } -- Table -- Job ID => Name local job_name = { [0] = "Newbie", [1] = "Swordsman", [2] = "Hunter", [3] = "Sailor", [4] = "Explorer", [5] = "Herbalist", [6] = "Artisan", [7] = "Merchant", [8] = "Champion", [9] = "Crusader", [10] = "White Knight", [11] = "Animal Timer", [12] = "Sharpshooter", [13] = "Cleric", [14] = "Seal Master", [15] = "Captain", [16] = "Voyager", [17] = "Upstart", [18] = "Engineer" } -- Check given job id if (job_id < 0 or job_id > (table.getn(job_name) - 1)) then SystemNotice(role, "Job ID should be from 0 to 18!") return end -- Check given character descriptor if (role == nil or IsPlayer(role) == 0) then SystemNotice(role, "Wrong role descriptor is given! Should be player character.") return end -- Check job requirements local cha_icon = GetChaTypeID(role) local ok = false for i = 1, table.getn(job_requirements[cha_icon]), 1 do if (job_id == job_requirements[cha_icon][i]) then ok = true break end end if (ok == false) then SystemNotice( role, string.format("The character of your race cannot become %s!", job_name[job_id]) ) return end -- Set job ID SetChaAttrI(role, ATTR_JOB, job_id) -- Add skills if (job_skills[job_id] ~= nil) then for key, value in pairs(job_skills[job_id]) do local skill_lv = GetSkillLv(role, value.id) if (skill_lv < value.lv) then AddChaSkill(role, value.id, value.lv, 1, 0) end end end -- Synchronize the character RefreshCha(role) end Then add script for new NPC in file NPCScript01.lua: -- Class Promotion NPC function PD_ClassNpc() Talk(1, "Hello! Choose your class:") Text(1, "Swordsman", GiveJobToCha, 1) Text(1, "Hunter", GiveJobToCha, 2) Text(1, "Explorer", GiveJobToCha, 4) Text(1, "Herbalist", GiveJobToCha, 5) Text(1, "Champion", GiveJobToCha, 8) Text(1, "Next page --->", JumpPage, 2) Text(1, "Close", CloseTalk) Talk(2, "Hello! Choose your class:") Text(2, "Crusader", GiveJobToCha, 9) Text(2, "Sharpshooter", GiveJobToCha, 12) Text(2, "Cleric", GiveJobToCha, 13) Text(2, "Seal Master", GiveJobToCha, 14) Text(2, "Voyager", GiveJobToCha, 16) Text(2, "<--- Previous page", JumpPage, 1) Text(2, "Close", CloseTalk) end In file NpcSdk.lua add function GiveJobCha() between lines "return SetSpawnPos( character, item.p1 )" and "elseif item.func == TransferDiamond then" in function MsgProc(): elseif item.func == SetSpawnPos then return SetSpawnPos( character, item.p1 ) elseif item.func == GiveJobToCha then return GiveJobToCha( character, item.p1 ) elseif item.func == TransferDiamond then return TransferDiamond( character, item.p1 ) Finally create NPC in file <map>npc.txt with function PD_ClassNpc. All you have to do is fill out the table job_skills following the examples for Swordsman and Crusader classes. It will be great if you then share with us the completed table for all classes.
  7. Hello, @icytalent! Compile ItemInfo using client
  8. Hello @LuciferMorningStar and welcome to PKODev! The next time create a topic in the appropriate section. Thank you!
  9. @NOX Have you installed 'sqlsrv' driver for PDO? Also its version should be the same as PHP version you using.
  10. @Silfro Good luck with the project and keep us informed about it. It is very interesting
  11. Hello, @NOX! There are topCMS by @Perseus and Item Mall by @EZEQUIEL written using PHP7. Yes, you can. You need change all removed from PHP7 mssql_*******() functions to PDO.
  12. Hello, @afdolngoh! Your topic is moved to the 'Paid services & Requests' section. You can also find the server here.
  13. Hello, @ahmad! Need to patch Game.exe. There is a guide, but it is in Russian and pictures are broken:
  14. Hello, @FapFap! Looks like your website is unable to connect to SMTP server which is specified in config file
  15. Hello, @icytalent! Have you watched the GameServer log files?
  16. Hello, @Silfro! Do you can tell about your project in more detail?
  17. I will share that feature in several days for free
  18. Ты установишь персонажу ровно 10 очков мирных навыков. Чтобы добавить очки, сначала нужно получить текущее количество очков у персонажа с помощью функции GetChaAttr() и прибавить к текущему количеству необходимое. // Получаем текущее количество очков у персонажа local score = GetChaAttr(...) // Количество очков, которое мы хотим добавить local add = 10 // Складываем очки local result = score + add // Устанавливаем новое количество очков персонажу SetChaAttr(role, result, ...)
  19. Yes, this is necessary. GameServer will close without DB user and password in .cfg
  20. Уже полгода от ребят нет новостей по поводу проекта
  21. "Stable Servers", "Under Beta" and "Opening Soon" subsections have been removed. Now all servers will be located in one general section.
  22. Подразделы "Стабильные", "Беты" и "Ожидающие открытия" были удалены. Теперь все серверы будут находится в одном общем разделе, независимо от времени, которое они работают.
×
×
  • Create New...