Jump to content

bayne94

Advanced members
  • Content Count

    22
  • Joined

  • Last visited

Everything posted by bayne94

  1. Hello all, This is a program I wrote in java to check the client files for for gem descriptions. import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException; public class StringArraySearch { public static void main(String[] args) throws IOException{ //Creation of File Descriptor for input file File readFile = new File("src/stonehint.txt"); //Intialize the word Array String[] fileWords=null; //Creation of File Reader object FileReader fr = new FileReader(readFile); //Creation of BufferedReader object BufferedReader br = new BufferedReader(fr); String stringCheck; String[] input={ "ItemHint_LieYanS", "ItemHint_ZhiYanS", "ItemHint_HuoYaoS", "ItemHint_MaNaoS", "ItemHint_HanYu", "ItemHint_YueZhiX", "ItemHint_ShuiLingS", "ItemHint_ShengGuangS", "ItemHint_FengLingS", "ItemHint_YingYanS", "ItemHint_YanVitS", "ItemHint_YanStrS", "ItemHint_LongZhiTong", "ItemHint_LongZhiHun", "ItemHint_LongZhiXin", "ItemHint_GaNaZhiShen", "ItemHint_HuangYu", "ItemHint_ChiYu", "ItemHint_QingYu", "ItemHint_XTLingGuang", "ItemHint_LKBiZhong", "ItemHint_BBDuoShan", "ItemHint_FFDiYu", "ItemHint_XKQiangHua", "ItemHint_SShuiyao", "ItemHint_SSbusi", "ItemHint_SSguangmang", "ItemHint_SSningju", "ItemHint_SSxuanwu", "ItemHint_HLS", "ItemHint_HYS", "ItemHint_HJS", "ItemHint_BLS", "ItemHint_BYS", "ItemHint_BJS", "ItemHint_CLS", "ItemHint_CYS", "ItemHint_CJS", "ItemHint_ZLS", "ItemHint_ZYS", "ItemHint_ZJS", "ItemHint_QLS", "ItemHint_QYS", "ItemHint_QJS", "ItemHint_GGR", "ItemHint_GGS", "ItemHint_GGOS", "ItemHint_GGC", "ItemHint_GGW", "ItemHint_JinYanS", "ItemHint_MuYanS", "ItemHint_ShuiYanS", "ItemHint_HuoYanS", "ItemHint_TuYanS" }; //Variable to check increments int count=0; //Reading Content from the file while((stringCheck = br.readLine())!=null){ //Split the word using space fileWords = stringCheck.split(" "); for (String word : fileWords){ for (int i = 0; i < input.length; i++){ //Search for the given word if (word.equals(input[i])){ System.out.println(input[i] + " is present in the file"); count++; } } } } System.out.println(""); System.out.println("There are "+count+" gem descriptions in the file"); fr.close(); }//close main method }//class How useful is it? Not very lol.
  2. @mkhzaleh Do I add the skilleffect to the cha_timer function?
  3. @mkhzaleh I have it equipped on the rear pet slot. The issue I'm having is getting the skill bonus from equipping it. Atm I'm trying to see if I can add the effect similar to the kylin effect and see if that works.
  4. Hello all, To get the skill bonus from equipping rear fairies this is what I did. 1. I added the functions to plugin/skill.lua 2. I also added this to cha_timer in plugins/timer.lua, I changed the code to read from the equipment slot instead of the 4th bag slot --Update It works!
  5. @Angelix Wow thanks for the reply, I didn't even realise that it was the hex number for the colours. I would have never assumed that it was hex numbers. Thank you for your insight.
  6. @KONG Thank you for your reply. I realised that it didn't add the last parameter in the StoneInfo.txt, which was why it was not compiling, so I just added a parameter from a gem already there and it worked. I then proceeded to play around with the gem colors that was in the StoneInfo and was wondering where I can get more info about those gem colors. Regards.
  7. Hello again, I'm trying to add Azrael gems to the game and it shows "Error" where the gem stats are supposed to be. I have added this to gem.lua in the plugins folder: -- Azrael Gems appendgem(5845, 4, {1,2,3,4,7,9,0}, ITEMATTR_VAL_STR, 8, 49) -- Azrael's Glare appendgem(5846, 4, {11,22,27}, ITEMATTR_VAL_CON, 8, 50) -- Undead Azrael appendgem(5847, 4, {1,2,3,4,7,9,22,0}, ITEMATTR_VAL_STA, 8, 51) -- Azrael's Light appendgem(5848, 4, {1,2,3,4,7,9,23,0}, ITEMATTR_VAL_DEX, 8, 52) -- Azrael's Aggregation appendgem(5849, 4, {24,0,0}, ITEMATTR_VAL_AGI, 8, 53) -- Azrael's Dance Is there anything else I may have forgotten to do? Any help on this will be greatly appreciated.
  8. @1g0rS1lv4 Thank you for your reply, my error was fixed.
  9. Hello, I'm getting the "MsgProc: function option unknown function" error when I try to add a function to an NPC that gives skills automatically. I added the function to the MsgProc function in npcsdk.lua Any assistance is appreciated. I'm using this as a guide:
  10. @V3ct0r , just curious as to the reason why the password must be 9 characters long?
  11. Thank you, this solution worked for me.
  12. Hi, tired running client and i got this error when I tried to run game.exe from the system folder. I then used a start.bat file to run the client and got this error start.bat code: start system\Game.exe startgame Any assistance is appreciated, thank you.
  13. Downloaded the client from here, Corsairs Online and I'm still getting the same errors. Also tired using @mkhzaleh .exe files that he shared in case I compiled source incorrectly. Please help.
  14. I'm not seeing any download links on that post or any social media pages. Does that mean the client is unavailable at this time?
  15. I have this same issue. Were you able to resolve this?
  16. bayne94

    PKO 1.38 Addons

    @GOAT I used original ItemEffect.lua file and it worked. I then made these changes Original ItemEffect.lua function ItemUse_RageSword( role, Item ) local GemSlotAID3 = 12 -- Gem Stone ID A ( Can be founded in stoneinfo.txt ) local GemSlotBID3 = 48 -- Gem Stone ID B ( Can be founded in stoneinfo.txt ) local GemSlotCID3 = 47 -- Gem Stone ID C ( Can be founded in stoneinfo.txt ) to this function ItemUse_RageSword( role, Item ) local GemSlotAID3 = 12 -- Gem Stone ID A ( Can be founded in stoneinfo.txt ) local GemSlotBID3 = 19 -- Gem Stone ID B ( Can be founded in stoneinfo.txt ) local GemSlotCID3 = 24 -- Gem Stone ID C ( Can be founded in stoneinfo.txt ) and same error when running gameserver. Absolutely certain that I only changed the ids.
  17. bayne94

    PKO 1.38 Addons

    When changing the gem id's in the +27 chest functions for the sword getting this error. GameServer.exe (ver. 1.36) by V3ct0r for Danny Not for public release or sale! Modifications: * Local chat Handling * Skill Fix * Party Search on the Sea bug fix * Character Transformation * GetGmLv() and SetGmLv() functions * GetOnlineCount() function * GetGuildLeaderID() function * GMNotice() function TXT Table Limits: * ItemInfo: 32768 items * CharacterInfo: 8000 monsters * SkillInfo: 2500 skills * SkillEff: 8000 effs * Hairs: 500 hairs * AreaSet: 500 area Last modification: 01/23/2016 Server is loading .................. Connectting database [DESKTOP-VUJOO1A : GameDB]...... Database Connected! Talez of Piratez Creator : Danny Vang enabled SDK Files enabling NpcSdk Loading MissionSdk.lua enabling ScriptSdk enabling ScriptDefine enabling NpcDefine enabling TemplateSDK enabling SkillEffect resource/script\calculate\ItemEffect.lua:18731: unfinished string near `"´┐¢‗┐¬Â´┐¢─º´┐¢´┐¢´┐¢Ï¥´┐¢¤▓´┐¢Ï╗´┐¢´┐¢"..itemname ' enabling MScript01 enabling MScript02 enabling MScript03 enabling MScript04 enabling MScript05 enabling MScript06 enabling MScript07 enabling MScript08 enabling SendMission enabling EudemonScript enabling Character born Script enabling Script01.lua enabling Script02 enabling Script03 enabling Script04 enabling Script05 Bracelet Script enabling Fast Gem Combiners enabling Script08 enabling AntiDupe enabling init.lua resource/script/extension/dupe/init.lua:112: attempt to index global `Hook' (a nil value) Eudemon init installing map npc file[garner\garnerNPC]... Load Map npc document [garner\garnerNPC] is successful! loading EventEntity.lua installing map npc file[leiting2\leiting2NPC]... Load Map npc document [leiting2\leiting2NPC] is successful! Loading Darkswamp Ctrl.lua installing map npc file[darkswamp\darkswampNPC]... Load Map npc document [darkswamp\darkswampNPC] is successful! loading EventEntity.lua Loading Abandonedcity Ctrl.lua installing map npc file[abandonedcity\abandonedcityNPC]... Load Map npc document [abandonedcity\abandonedcityNPC] is successful! loading EventEntity.lua Loading Abandonedcity2 Ctrl.lua installing map npc file[abandonedcity2\abandonedcity2NPC]... Load Map npc document [abandonedcity2\abandonedcity2NPC] is successful! Loading Abandoned3 Ctrl.lua installing map npc file[abandonedcity3\abandonedcity3NPC]... Load Map npc document [abandonedcity3\abandonedcity3NPC] is successful! enabling AddHelpNPC ------------------------------------ Finished resource/script/help/AddHelpNPC.lua:9: attempt to call global `StoreMaps' (a nil value) So I checked the line where the error occurred and this is the function at the line. ----------��ħ���� function ItemUse_EMBox( role , Item ) local Item_CanGet = GetChaFreeBagGridNum ( role ) if Item_CanGet < 1 then SystemNotice(role ,"Inventory requires at least 1 empty slot") UseItemFailed ( role ) return end GiveItem ( role , 0 , 2842 , 1 , 4) local itemname = GetItemName (2842) local cha_name = GetChaDefaultName ( role ) local message = cha_name.."�򿪶�ħ���ؾ�ϲ�ػ��"..itemname Notice ( message ) end I'm not to sure what the problem is. Please help.
  18. Hello all, I need some help. When i try to equip x2 Darkness Power rings, it only allows me to equip one. How to I change this? Thanks.
  19. @V3ct0r is the file in the archive the same as the upload here?
×
×
  • Create New...