Jump to content

leertaste

Members
  • Content Count

    19
  • Joined

  • Last visited

Posts posted by leertaste


  1. hey guys

    i wonder how adding custom or duplicated maps to the game works since there are many changes.

    what i've done so far:
    - added mapcache.c as a plugin and compiled it -> enabled the plugin serversided
    - added my custom map (which is a clone from moscovia) to the necessary files (db\map_index.txt; conf\map\maps.conf; conf\grf-files.txt)
    - opened cmd -> located to my directory -> "map-server --load-plugin mapcache --rebuild-mapcache"

    this is when the mapserver told me he removed all maps. as i went to maps\re - full emptyness

    what did i do wrong?


  2. On 29.10.2017 at 10:53 PM, fxfreitas said:

    costume garments will always be behind the character on front view, also there's aonther file related to costume garments on:

    data/Lua Files/spreditinfo/2dlayerdir_f.lub

    ok fine, i added into 2dlayerdir_f.lub:
     

    	[SPRITE_ROBE_IDs.ROBE_Black_Scarf] = LAYER_SMALL

    the sprite is now shown in front. but it still doesnt fit to the character properly. its shown a little too far down. also when i mount a peco, the scarf is shown inside the peco.. is there another file to edit?

     


  3. hey guys, i tried to add some custom lower gears as garment.

    on lower type with correct setup it looks like this:
    OWwEyMs.png

    but when i try to configure it as a garment, it looks like this:
    NMfIbDS.png
    vzaPbeZ.png

    my configuration:

    iteminfo.lua:

    	[51000] = {
    		unidentifiedDisplayName = "Accessory",
    		unidentifiedResourceName = "Black_Scarf",
    		unidentifiedDescriptionName = {
    			"Unidentified item, can be identified with [Magnifier].",
    		},
    		identifiedDisplayName = "Black Scarf",
    		identifiedResourceName = "Black_Scarf",
    		identifiedDescriptionName = {
    			"^008000[ Black Scarf ]^000000",
    			"Ofiicial Yume-Ro costume Item!",
    			"Class :^777777 Headgear^000000",
    			"Defense :^777777 0^000000",
    			"Equipped on :^777777 Garment^000000",
    			"Weight :^777777 0^000000",
    			"Required Level :^777777 1^000000",
    		},
    		slotCount = 0,
    		ClassNum = 100
    	},

    spriterobename.lub:

    RobeNameTable = {
    	[SPRITE_ROBE_IDs.ROBE_Black_Scarf] = "Black_Scarf",
    }
    
    RobeNameTable_Eng = {
    	[SPRITE_ROBE_IDs.ROBE_Black_Scarf] = "Black_Scarf",
    }

    spriterobeid.lub:

    SPRITE_ROBE_IDs = {
        ROBE_Black_Scarf = 100,
    }

    item_db2.conf:

    {
    	Id: 51000
    	AegisName: "Black_Scarf"
    	Name: "Black Scarf"
    	Type: 5
    	Loc: 8192
    	ViewSprite: 100
    	Trade: {
    		noselltonpc: true
    	}

    Data placement:
    (following 3 are the same as for lower headgear)
    data\sprite\¾ÆÀÌÅÛ
    data\texture\À¯ÀúÀÎÅÍÆäÀ̽º\collection
    data\texture\À¯ÀúÀÎÅÍÆäÀ̽º\item

    and:
    8TTp8Fw.png

    whats missing?


  4. Erstmal danke, dass du dir Zeit genommen hast so ausführlich zu antworten.
    Mit SQL kenne ich mich tatsächlich noch so gut wie gar nicht aus.

    19 hours ago, andybe said:

    was du  nun machen kannst ist die Tabelle editieren und die Spalte für die Itemid raussuchen dort wirst du das SHORT Tag sicherlich irgendwo finden (genau kann ich dir das nicht sagen, denn jede sql software sieht natürlich anders aus) und änderst es in deinen UNSIGNED_LONG um.

    ich kann nirgends den SHORT Tag finden..

    EDIT:
    hab das Problem gelöst. In '/src/char/char.c' folgende Zeile:
    i fixed it changing this at '/src/char/char.c':

    -		|| SQL_ERROR == SQL->StmtBindColumn(stmt, 1, SQLDT_SHORT,     &item.nameid,      0, NULL, NULL)
    +		|| SQL_ERROR == SQL->StmtBindColumn(stmt, 1, SQLDT_USHORT,     &item.nameid,      0, NULL, NULL)

     


  5. Hey guys, I've read any topic about this out there, but I am still not able to make it work.

    This is what I've done:

    /src/map/itemdb.h:

    -#define MAX_ITEMDB 0x8000 // 32k array entries in array (the rest goes to the db)
    +#define MAX_ITEMDB 0x10000 // 64k array entries in array (the rest goes to the db)

    /src/common/mmo.h:

    - short nameid;
    + unsigned short nameid;

    /sql-files/main.sql:

    card0~ card3 from smallint to mediumint

    (at multiple places)

    BUT still: when i logout with an itemID over 32k, it gets deleted with following error:

    [SQL]: DB error - data of field 'nameid' was truncated
    [Debug]: column - 1
    [Debug]: data   - type=UNSIGNED MYSQL_TYPE_LONG, le
    [Debug]: buffer - type=MYSQL_TYPE_SHORT, length=2
×
×
  • Create New...

Important Information

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