Jump to content

superman1001

Members
  • Posts

    25
  • Joined

  • Last visited

Posts posted by superman1001

  1. i want to make an npc that will give named swords[4] (id 1102), for example: if the char is named "char01" it will give "car01's sword".

    if i use

    getnameditem 1102,getcharid(0);

    it give a "char01's sword" without slots.

    so i used this:

    getitem2 1102,1,1,0,0,255,0,getcharid(0)&0xffff,(getcharid(0)>>16)&0xffff;

    same as getnameditem...

    so i tryed this:

    getitem2 1102,1,1,0,0,0,0,getcharid(0)&0xffff,(getcharid(0)>>16)&0xffff;

    it give a non-named sword[4] with 2 empty slots and 2 slots with an apple inside...

    so how to got a char01's sword[4] ?

  2. let me try...

    i used ShinsDiffPatcher with weediffgenerator 1.0.2 to make custom ids up to 30.000 /gg

    then i used luac5.1.4 to rebuild accname.lub and accessoryid.lub

    (the wiki is wrog, the right params are: -o accessoryid.lub accessoryid.lua)

    then i setted view_id to 0, restarted server.. and...

    now when the client load it show this error:

    Lua Files\DataInfo\accName

    [string "buf"]:847 table index is nil

    btw when i log on and

    - if u use view_id 0, i can wear it, but nothing is shown

    - if i use view_id 25001 i see this error: http://img152.images...00/44455045.png

    wow, i solved it, for now...

    there was an error in accessoryid.lua, and the spr must have a lower case name...

    i try do add another one..

  3. there is a thing i don't understand in the "lua guide":

    Now, Open accessoryid.lua in the datainfo folder with notepad or a text editor of your choice, go all the way down until the names stop. Add your custom gears before the } symbol. You should use a high number just like with your custom item's database ID, or use unused IDs to be sure you won't have to redo them all in the future, or at least for a while.
    Now open accname.lua, do basically the same thing but just in a different way, and for the sprite. Add your item to the bottom, have it look like the ones above it, except have your items name and the item's sprite name.
    Delete the accname.lub and accessoryid.lub. Now that you are done, make sure luac.exe is in your datainfo folder, right click the luac.exe, create a shortcut, right click the shortcut, and click properties, in the target area, add right after the quotes ...

    so have i to edit the files, delete the modified files and recompile them? how is it possible? /hmm

  4. how about your accname and accessoryid files

    how to use these files?

    also another problem could be viewID set in weediff. WHen you diffed your client, did you enter 28000 for custom item limit

    i will check and eventually re-diff as soon as possible

  5. itemslotcounttable.txt

    25001#4#

    idnum2itemdisplaynametable.txt

    25001#test_item#

    idnum2itemdesctable.txt

    25001#
    test item
    Weight :^777777 1^000000
    Applicable Job :^777777 Every Job^000000
    #

    idnum2itemresnametable.txt

    25001#test_item#

  6. i want to add some sprite in my server, so i followed this guida: http://rathena.org/wiki/Custom_Items for adding a test item.

    Server site there are no problems.

    In client side i got this error:

    20120530214808.png

    i put the files in correct folders:

    - data\sprite\¾ÆÀÌÅÛ\test_item.act

    - data\sprite\¾ÆÀÌÅÛ\test_item.spr

    - data\sprite\¾Ç¼¼»ç¸®\¿©\¿©_test_item.act

    - data\sprite\¾Ç¼¼»ç¸®\¿©\¿©_test_item.spr

    - data\sprite\¾Ç¼¼»ç¸®\³²\³²_test_item.act

    - data\sprite\¾Ç¼¼»ç¸®\³²\³²_test_item.spr

    - data\texture\À¯ÀúÀÎÅÍÆäÀ̽º\collection\test_item.bmp

    - data\texture\À¯ÀúÀÎÅÍÆäÀ̽º\item\test_item.bmp

    if i create the item, hold in inventory, drop on the groud, it is shown, when i wear it i got the error.

    what's wrong? and why the client don't use the "test_item" act & spr but that incomprensible name?

    thx

  7. i have a problem importing sql script into mysql, i get the pre-compiled r16113 from sourceforge...

    when i try to import item_db.sql mysql swhows this error:

    # REPLACE INTO `item_db` VALUES (5693,'No_Fear_Underware','No Fear Underwear',5,0,NULL,0,NULL,10,NULL,0,0xFFFFFFFF,7,2,256,NULL,20,0,30,'bonus bStr,1; bonus bInt,1; bonus bDex,1;',NULL,NULL); # REPLACE INTO `item_db` VALUES (5694,'No_Fear_P_Headgear','No Fear P Headgear',5,0,NULL,0,NULL,1,NULL,1,0xFFFFFFFE,7,2,256,NULL,20,0,614,'bonus bVit,1;',NULL,NULL); # REPLACE INTO `item_db` VALUES (5695,'E_Blue_Drooping_Kitty','E Blue Drooping Kitty',5,250000,NULL,500,NULL,1,NULL,0,0,7,2,256,NULL,0,1,277,'bonus bMdef,15;',NULL,NULL); # REPLACE INTO `item_db` VALUES (5696,'E_Flying_Angel','E Flying Angel',5,20,NULL,300,NULL,1,NULL,0,0xFFFFFFFF,7,2,256,NULL,10,1,264,'bonus bInt,1; bonus bAgi,1;',NULL,NULL); # REPLACE INTO `item_db` VALUES (5697,'E_Smoking_Pipe_','E Smoking Pipe',5,20,NULL,100,NULL,0,NULL,0,0,7,2,1,NULL,0,0,55,'bonus bVit,1;',NULL,NULL); # REPLACE INTO `item_db` VALUES (5698,'E_Pair_OE_Red_Ribbon_','E Pair OE Red Ribbon',5,20,NULL,100,NULL,1,NULL,0,0,7,2,512,NULL,45,0,169,NUL[...]
    MySQL said:
    #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'REPLACE INTO `item_db` VALUES (5741,'Im_Egg_Shell_Hat','Eternal Egg Shell',5,20,' at line 49
    

    what's wrong?

×
×
  • Create New...