Jump to content


  • Content count

  • Joined

  • Last visited

Community Reputation

10 Neutral

About SoundX

  • Rank
    Cabin Boy

Recent Profile Visitors

325 profile views
  1. SoundX

    client troubles

    Server region is like "Dream Island" and server name is like "Rainbow island". You can put anything random there, it doesn't have to do with site. The "IP Changer" program will edit the serverset.bit file for you, so you don't need to manually do it
  2. SoundX

    client troubles

    I don't know guides as you don't say a specific problem. You say your server files all work, can you connect the client to your server and play on your computer? To let people play in your server, you need serverset.bin (Tales of Pirates Client\scripts\table\serverset.bin) to point to correct IP. You can change the IP with IP changer tool I linked above and then copy serverset.bin into your patch directory PATCH DIRECTORY > scripts > table > serverset.bin Then any file you change, for example adding new items with iteminfo.txt in your server, you copy iteminfo.txt from your server to CLEINT > scripts > table > iteminfo.txt and compile the file to a bin file https://pkodev.net/index.php?/topic/26-client-txt-tables-compiling/ Every file you change you copy it then to your Patch directory Then you can either make it all a zip file and send it to your users, or upload it to your website, so that htey can download and extract it, or use any autopatcher. Example this one: https://pkodev.net/index.php?/topic/1322-auto-updater-program, or any other patcher you have found should also have instructions if you still have problems please say the exact problem you have, what you did, what is the error, etc, as well s what server files you are using, what patcher/updater you are using, etc
  3. SoundX

    Change name colour in common items

    Anyone? Any hint on where to start looking will be very helpful. I don't know if to look the game.exe, or the gameserver.exe or the files, thanks in advance
  4. SoundX

    client troubles

    Hello, the first thing you need to do is to change your client IP to point to your server: Then for the patch create a similar directory structure as the client with the files that you have changed (ex if you changed iteminfo.bin create a directory tree MYPATCH > scripts > table > iteminfo.bin and either do it a zip/rar file that players can extract in their game folder or use the instruction in the autoupdater you found
  5. SoundX

    Area search exceed preset requeriments

    Hello Satan, sorry I don't know the answer, but I tried the loop with small variation in one of my maps and could not reproduce this error, it worked correct. So maybe some other part of code triggers this error?
  6. Hello everyone, was wondering if it is possible to change the colour of the name in common items (not ekipment). For example, for recovery type items, example HP or SP recovery is it possible to make it sothat they have different color than other common items? If it possible, should that be a client-side modification? Also, was wondering about the items types in ItemType.txt . It is a bit messy as it is, with chests, manu items, ami gloves, cook items, etc, all same type (31 - recovery items). If I separate items for their item type, does it affect anything else in the game? Sorry for my english, and thanks in advance for answers
  7. SoundX

    [PHP] Search for items

    Thank you, very useful. Also to avoid `count()` compatibility issue if someone uses PHP 7.2: In `class.inventory.php`, line 21: $itemAttrCount = count((array)$item);
  8. SoundX

    Simple Functions

    This is great idea, especially `ItemEffect.lua` can be reduced to 1/4 length by replacing repeated functions. Here is another snipet to replace the more than 1000 lines with skills (also so many skills unused by the game, anyone has try using them and see what they can do?) For example we have this function for "Dual Shot" skill: -- Dual shot skill book (iteminfo.txt ID = 3190) function Sk_Script_Lzj ( role , Item ) local sk_add = SK_LZJ local form_sklv = GetSkillLv( role , sk_add ) if form_sklv ~= 0 then UseItemFailed ( role ) return end a = AddChaSkill ( role , sk_add, 1 , 1 , 1 ) if a== 0 then UseItemFailed ( role ) return end end we need to note down skill book ID in iteminfo.txt, and also the `local sk_add` value. The `sk_add` value is in `variable.lua` and correspond to the skill ID in `skillinfo.txt`. For example, `SK_LZJ` in variable.lua is `SK_LZJ = 90`, which is the skill ID for Dual Shot in skillinfo.txt. So we can replace all the skill books with an array in `ItemEffect.lua`: Class_Skill_Book = {} -- Class_Skill_Book[<skill book ID in iteminfo.txt>] = <skill ID in skillinfo.txt> -- Class_Skill_Book[3184] = 73 -- Shield Mastery (unknown) Class_Skill_Book[3190] = 90 -- Dual Shot Class_Skill_Book[3193] = 112 -- Meteor Shower -- etc... -- and then replace all the skill book functions with the following: function Class_Skill_Books ( role , Item ) local bk_ID = GetItemID(Item) local sk_add = Class_Skill_Book[bk_ID] local form_sklv = GetSkillLv( role , sk_add ) if form_sklv ~= 0 then UseItemFailed ( role ) return end a = AddChaSkill ( role , sk_add, 1 , 1 , 1 ) if a == 0 then UseItemFailed ( role ) return end end To use it, in `ItemInfo.txt` we have to replace the skill book's fnction with `Class_Skill_Books` ex. 3190 Dual Shot book2 10130005 0 0 0 0 0 00 34 0 0 0 0 0 1 1 1 1 1 0 1680 -1 0 -1 0 0 -1 -1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0,0 0 0 0,0 0 0 0 0 0 0 0 0 0 Class_Skill_Books 0 0 0 0 0 0 Class: Hunter Level Requirement: Lv 29 Prerequisite: Eagle Eye Lv 3, Archery Lv 3
  9. SoundX

    Npc teleporter creat

    Hi, the script you posted is the exact script for teleporting to BD lair 2. It works correctly, the error should be somewhere else. What error exactly are you getting?
  10. Hi all. I am posting this here as it took me some time to figure it out and maybe someone else wants to use it as well. - What we want to achieve: Mission shows a "[Completed]" flag in the quest log when we have collected all items - killed all mobs - In directory `/resource/script/MisSdk/` 1. File: ScriptSdk.lua: We will start a variable called `MissionSid = {}` in global variables definition, line ~=16 (below `Mission` variable): and in function `DefineMission` we will cal the MissionSid with a misid index: 1. File: MissionSdk.lua: Here we will use the function `RefreshCompleteFlag` (used normally by random class quests, "A hunter's life" etc). First in the `RefreshCompleteFlag` function itself: The function defines a local called: `local mission`. We will start this local with the value of `Mission[sid]`, so replace `local mission` with `local mission = Mission[sid]`: Then we need to use the `RefreshCompleteFlag` function in the `AddNextFlag` function: ( we added the line `RefreshCompleteFlag(character,MissionSid[id])` ): I hope this can help someone. Sorry for my English and if there are mistakes/bad scripting/better way, please let me know
  11. Hi, of course, the reason I didn't was because the problem was caused not by the quest itself but from another modification I made. In `MissionSdk.lua`, I have was using the `RefreshCompleteFlag` function to mark as complete quests in the quest log and I think this conflicted with Eudemon quests. Without the "Complete" flag modification, the problem does not show in unmodified 1.38 script files. Plus I have not solved still the problem with timed quest, so for the moment I just removed the timer << This still happens even without any modifications to the files, trying to test if if only happens with Eudemon quests, if I find something Iwill add details here Edit: using the `RefreshCompleteFlag` function like this does not cause problem when killing mob (remaining to understand the time out problem)
  12. Solved (problem was in MissionSdk.lua)
  13. Hi all, Using PKO1.38 server files from MEGA archive and testing story quest: I have the following problem: There is a subquest, called "Lure Behemoth" that is timed and requires player to kill Behemoth within 60 mins from accepting the quest. Relevant functions: - MissionScript02.lua - EudemonScript.lua Here is my problems: - When kill Behemoth, an error with strange encoding appears: - If I don't submit the quest within the hour, I get the following message: CCharMission: GetItem: quest manage function [TriggerProc]transfer return failed! I have tried all things I can think of: - Disable "MisResultAction(AddTrigger, 108, TE_GAMETIME, TT_MULTITIME, 60, 1 )" and its related trigger (as it seems to be in KOP2.4 files) - Change TRIGGER_ID to 2539 and 2538 from 109 and 108, as following the guide (and then to 49,48 as the eudemon quest ID is 4) - Even changed clients to see if problem was client side, but it is same with clean TOP1 client "Frozen relics" and KOP client War of Eternity from MEGA archive Anyone knows how can resolve this? Thanks in advance and sorry for my english
  14. Having looked at this more, it seems like the "item[n]" parametres correspond to probability for the item to fall, and cannot be set to determine the item's ID. So, I am wondering two things: - Is there any function that controls drop from monsters? I can achieve what I want with "GiveItem()", but I would rather the item to drop and not appear directly on inventory. - My initial question: Where are all these functions defined? Like the "SetItemFall", "GiveItem", etc? Are they lua functions, or are they somehow integrated with the server's code? Sorry for the rookie question, I don't know a lot about programming. Thanks for reading
  15. SoundX

    Registration script with rankings

    Hi, haven't tested if registration works with this edits, but to avoid the deprecated mssql_connect() you can edit this line in `index.php`: Edited: changed all calls to mssql_* functions, this should work for you: For me the captcha image did not work and did not have time to check it, so I just commented out line 41: "else if($_SESSION['captcha_keystring']" This only makes work the registration, to have rankings work you change the mssql_ functions with the respective sqlsrv_ functions. Hope this can help