Jump to content

lucas9586

Members
  • Content Count

    8
  • Joined

  • Last visited

Posts posted by lucas9586


  1. I would like to say thank you if you are reading this.

    I'm trying to add custom skills with custom status. I've got two questions here.

     

    First,

    I wanna ask is it possible to make a status that let the player gets partial defense ignorant against any classes within a time tick.

    As I see in status.c, there are only basic modifications like str/agi/int/vit/dex/luk/atk/def/etc... So, are there any method to add ignore defense bonus to a status?

    By the way, I don't want to use item to replace it because of some reasons.

     

    Second(more important),

    I also want to make a status that can have intravision(maya purple card) ability with sight ranges depending on the level of that skill. I have no idea how to begin with it.

     

    Thanks again if you read all of my questions. I will appreciate if you could give me some tips.


  2.  

    I don't have a chance to check Notepad (I'm not on windows, so I don't have that), but I guess with "ANSI" they mean "the appropriate local charset for whatever language this computer is set to", which would produce Big5 or some variant of it in your case, so that's what you should use. Again, this is just a guess.

     

    The broken lines from the .txt file you posted (if I load it as Big5) are:

    5574,Pencil_In_Mouth,叼在嘴?媢]筆,4,20,,100,,0,,0,0xFFFFFFFF,63,2,1,,10,0,555,{ bonus bDex,2; bonus bHitRate,3; },{},{}7156,Broken_Shuriken,破舊之手?媦C,3,470,,10,,,,,,,,,,,,,{},{},{}
    (I wrote #5571, but I meant #5574, sorry).

     

    The questionmark is there to say that it wasn't able to load some character, I'm not sure why it happens.

     

     

    I don't have a chance to check Notepad (I'm not on windows, so I don't have that), but I guess with "ANSI" they mean "the appropriate local charset for whatever language this computer is set to", which would produce Big5 or some variant of it in your case, so that's what you should use. Again, this is just a guess.

     

    The broken lines from the .txt file you posted (if I load it as Big5) are:

    5574,Pencil_In_Mouth,叼在嘴?媢]筆,4,20,,100,,0,,0,0xFFFFFFFF,63,2,1,,10,0,555,{ bonus bDex,2; bonus bHitRate,3; },{},{}7156,Broken_Shuriken,破舊之手?媦C,3,470,,10,,,,,,,,,,,,,{},{},{}
    (I wrote #5571, but I meant #5574, sorry).

     

    The questionmark is there to say that it wasn't able to load some character, I'm not sure why it happens.

    I finally find the reason of the errors. I use script-checker.bat to check the item_db.conf. I find that hercules's system can't read a bunch of Chinese words. Maybe it's because of the coding. In addition, the item_bonus have a big different to Rathena in lower cases and upper cases. Other than that, Rathena item_db allows duplicated AegisName but Hercules doesn't. Item #5574 and #7156 doesn't get any problems in my case.

     

    Therefore, if a Rathena user wanna convert there item_db to Hercules format, they need to edit all of the item_bonus first. Otherwise, it will show a lot of errors though they don't face any coding problems.


  3. You shouldn't use utf8 for your files (Hercules and *Athena don't really support it, nor does the client). You should save it with the same file encoding as your original file (which seems to be Big5, but it also seems to be broken, my text editor warns me about issues on line 3389 (item #5571) and line 4481 (item #7156) of your .txt file)

     

    You might want to fix those names in your .txt file first, then try to re-convert it, and save the .conf file as Big5 as well.

     

    Please note that your item scripts contain errors though (wrong case, wrong arguments, non existent functions, etc), so you'll also need to edit it in order to work with Hercules.

    Thanks for your explanation. I just used the default coding(ANSI) before and it didn't work. I don't know how to convert the item_db.conf to BIG5 since there are just 4 options (ANSI/UTF-8/Unicode/Unicode-Big endian) when I use notepad to open it. If the coding really matter, does users from any non-English counties need to convert their item_db.conf to suit their languages? Besides, I've checked item#5571 and item#7156 and it seems that there is no problem with these two items. Below are the converted item scripts :

    {

     Id: 5571

     AegisName: "Rasta_Wig"

     Name: "拉司塔的假髮"

     Type: 4

     Buy: 20

     Weight: 100

     Def: 1

     Upper: 63

     Loc: 256

     View: 552

     Script: <" bonus bStr,1; ">

    },

    {

     Id: 7156

     AegisName: "Broken_Shuriken"

     Name: "破舊之手裏劍"

     Type: 3

     Buy: 470

     Weight: 10

    },

     


  4. I tried to diff 2014-03-05bRagexe.exe using Neo Patcher and its a success.

    now I only need the packet data for it.

    and I know Yommy is the master of this stuff.

    please help if you got some spare time.

    thanks in advance :thx:

     

     

    2014-03-05bRagexe.exe

     

    https://github.com/ThemonChan/Hercules

     

     

    // 2014 Packet Data

     

    // 2014-01-15eRagexe - YomRawr

    #if PACKETVER >= 20140115

    packet(0x0369,7,clif->pActionRequest,2,6);

    packet(0x083C,10,clif->pUseSkillToId,2,4,6);

    packet(0x0437,5,clif->pWalkToXY,2);

    packet(0x035F,6,clif->pTickSend,2);

    packet(0x08A7,5,clif->pChangeDir,2,4);

    packet(0x0940,6,clif->pTakeItem,2);

    packet(0x0361,6,clif->pDropItem,2,4);

    packet(0x088E,8,clif->pMoveToKafra,2,4);

    packet(0x0367,8,clif->pMoveFromKafra,2,4);

    packet(0x0438,10,clif->pUseSkillToPos,2,4,6,8);

    packet(0x0366,90,clif->pUseSkillToPosMoreInfo,2,4,6,8,10);

    packet(0x0802,6,clif->pGetCharNameRequest,2);

    packet(0x0368,6,clif->pSolveCharName,2);

    packet(0x0360,12,clif->pSearchStoreInfoListItemClick,2,6,10);

    packet(0x0817,2,clif->pSearchStoreInfoNextPage,0);

    packet(0x0815,-1,clif->pSearchStoreInfo,2,4,5,9,13,14,15);

    packet(0x096A,-1,clif->pReqTradeBuyingStore,2,4,8,12);

    packet(0x088A,6,clif->pReqClickBuyingStore,2);

    packet(0x0965,2,clif->pReqCloseBuyingStore,0);

    packet(0x0815,-1,clif->pReqOpenBuyingStore,2,4,8,9,89);

    packet(0x096A,18,clif->pPartyBookingRegisterReq,2,4);

    // packet(0x088A,8); // CZ_JOIN_BATTLE_FIELD

    packet(0x0965,-1,clif->pItemListWindowSelected,2,4,8);

    packet(0x0966,19,clif->pWantToConnection,2,6,10,14,18);

    packet(0x095D,26,clif->pPartyInvite2,2);

    // packet(0x095B,4); // CZ_GANGSI_RANK

    packet(0x089B,26,clif->pFriendsListAdd,2);

    packet(0x092D,5,clif->pHomMenu,2,4);

    packet(0x0865,36,clif->pStoragePassword,0);

    #endif

     

    // 2014-02-05bRagexe - Themon

    #if PACKETVER >= 20140205

    packet(0x0369,7,clif->pActionRequest,2,6);

    packet(0x083C,10,clif->pUseSkillToId,2,4,6);

    packet(0x0437,5,clif->pWalkToXY,2);

    packet(0x035F,6,clif->pTickSend,2);

    packet(0x0202,5,clif->pChangeDir,2,4);

    packet(0x07E4,6,clif->pTakeItem,2);

    packet(0x0362,6,clif->pDropItem,2,4);

    packet(0x07EC,8,clif->pMoveToKafra,2,4);

    packet(0x0364,8,clif->pMoveFromKafra,2,4);

    packet(0x0438,10,clif->pUseSkillToPos,2,4,6,8);

    packet(0x0366,90,clif->pUseSkillToPosMoreInfo,2,4,6,8,10);

    packet(0x096A,6,clif->pGetCharNameRequest,2);

    packet(0x0368,6,clif->pSolveCharName,2);

    packet(0x0838,12,clif->pSearchStoreInfoListItemClick,2,6,10);

    packet(0x0835,2,clif->pSearchStoreInfoNextPage,0);

    packet(0x0819,-1,clif->pSearchStoreInfo,2,4,5,9,13,14,15);

    packet(0x0811,-1,clif->pReqTradeBuyingStore,2,4,8,12);

    packet(0x0360,6,clif->pReqClickBuyingStore,2);

    packet(0x0817,2,clif->pReqCloseBuyingStore,0);

    packet(0x0815,-1,clif->pReqOpenBuyingStore,2,4,8,9,89);

    packet(0x0365,18,clif->pPartyBookingRegisterReq,2,4);

    // packet(0x0363,8); // CZ_JOIN_BATTLE_FIELD

    packet(0x0281,-1,clif->pItemListWindowSelected,2,4,8);

    packet(0x022D,19,clif->pWantToConnection,2,6,10,14,18);

    packet(0x0802,26,clif->pPartyInvite2,2);

    // packet(0x0436,4); // CZ_GANGSI_RANK

    packet(0x023B,26,clif->pFriendsListAdd,2);

    packet(0x0361,5,clif->pHomMenu,2,4);

    packet(0x0938,36,clif->pStoragePassword,0);

    packet(0x09df,7);

    #endif

     

    // 2014-03-05bRagexe - Themon

    #if PACKETVER >= 20140305

    packet(0x0369,7,clif->pActionRequest,2,6);

    packet(0x083C,10,clif->pUseSkillToId,2,4,6);

    packet(0x0437,5,clif->pWalkToXY,2);

    packet(0x035F,6,clif->pTickSend,2);

    packet(0x0815,5,clif->pChangeDir,2,4);

    packet(0x0202,6,clif->pTakeItem,2);

    packet(0x0362,6,clif->pDropItem,2,4);

    packet(0x07EC,8,clif->pMoveToKafra,2,4);

    packet(0x0364,8,clif->pMoveFromKafra,2,4);

    packet(0x0436,10,clif->pUseSkillToPos,2,4,6,8);

    packet(0x0366,90,clif->pUseSkillToPosMoreInfo,2,4,6,8,10);

    packet(0x096A,6,clif->pGetCharNameRequest,2);

    packet(0x0368,6,clif->pSolveCharName,2);

    packet(0x0838,12,clif->pSearchStoreInfoListItemClick,2,6,10);

    packet(0x0835,2,clif->pSearchStoreInfoNextPage,0);

    packet(0x0819,-1,clif->pSearchStoreInfo,2,4,5,9,13,14,15);

    packet(0x0811,-1,clif->pReqTradeBuyingStore,2,4,8,12);

    packet(0x0360,6,clif->pReqClickBuyingStore,2);

    packet(0x0817,2,clif->pReqCloseBuyingStore,0);

    packet(0x0361,-1,clif->pReqOpenBuyingStore,2,4,8,9,89);

    packet(0x0365,18,clif->pPartyBookingRegisterReq,2,4);

    // packet(0x0363,8); // CZ_JOIN_BATTLE_FIELD

    packet(0x0281,-1,clif->pItemListWindowSelected,2,4,8);

    packet(0x0438,19,clif->pWantToConnection,2,6,10,14,18);

    packet(0x0802,26,clif->pPartyInvite2,2);

    // packet(0x0878,4); // CZ_GANGSI_RANK

    packet(0x07E4,26,clif->pFriendsListAdd,2);

    packet(0x0934,5,clif->pHomMenu,2,4);

    packet(0x095e,36,clif->pStoragePassword,0);

    packet(0x09df,7);

    #endif

     

     

     

    // 2014 Packet Keys

     

    #if PACKETVER >= 20140115

    packetKeys(0x63224335,0x0F3A1F27,0x6D217B24); /* Thanks to Yommy */

    #endif

     

    #if PACKETVER >= 20140205

    packetKeys(0x63DC7BDC,0x7BDC7BDC,0x7BDC7BDC); /* Themon */

    #endif

     

    #if PACKETVER >= 20140305

    packetKeys(0x116763F2,0x41117DAC,0x7FD13C45); /* Themon */

    #endif

     

    May I ask what's the difference among the three client versions? I just know that 2014-01-15 support new world system.


  5.  

    I've try to convery my item_db from hercules format using the online tool. However, it seems that none of the line in the item_db.conf could be read. May I ask how could I trace the source of the error or could anyone provide a solution for me? Thanks

    Any error?

    The map server just can't read the whole item_db so the mob drop items keep alerting the error of missing item. The errors flows extremely quick and I can't even can't the first line of the error. In addition, I am from Hong Kong so the item names are all in traditional Chinese. I've changed the item_db.conf to utf8 but it still can't solve the problem.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.