Jump to content

java

Members
  • Posts

    251
  • Joined

  • Last visited

Posts posted by java

  1. As of now, I'm using what rAthena supports 2012-04-10 disabling some of the current features like battleground menu, navigation and other that it hard coded or hard to translate :) and fixed the animation for tetra vortex and its quite stable :)

    how u disable some feature like battleground etc?

  2. For the time being not many guide / tutorial in Malaysian or Indonesian languages.

    After it reach at least 10, i will propose to Admin to split it again.

    thanks but that's no need anymore since we have a forum too , thanks

  3. ancur...kenapa g di pisahin ya antara bahasa indonesia sama malaysia?bisa jadi salah-salah arti ntar.-__-a ow ya disini ada yg bisa2 script g?ajarin saya dong.

    untuk script di wiki rathena juga udah cukup tuh gan... tinggal improvisasi ajah...

    lain kali buat forum untuk emulator RO ah buat bahasa indonesia...only ahahaha biar gak pada bingung bahasanya hehhe

    ada yang mau bantu gak yah ... :D

    saya sediain hosting ajah ... :P

    kayaknya asik tu gan :D.bwt emulator RO buat bahasa indonesia aja :D....klo ngartiin script2 ke bahasa indonesia si dikit2 ane :D

    sudah up dan silahkan di cek di http://idathena.co.cc

  4. again.. someone ask for that source.. he give me this source to modify

    Index: conf/import-tmpl/atcommand_conf.txt
    ===================================================================
    --- conf/import-tmpl/atcommand_conf.txt (revision 0)
    +++ conf/import-tmpl/atcommand_conf.txt (working copy)
    @@ -0,0 +1,3 @@
    +// PK Mode enabling/disabling Command
    +
    +pkmode: 0,0
    \ No newline at end of file
    Index: src/map/atcommand.c
    ===================================================================
    --- src/map/atcommand.c (revision 16215)
    +++ src/map/atcommand.c (working copy)
    @@ -5323,7 +5323,21 @@
     return 0;
    }
    +int atcommand_pkmode( const int fd, struct map_session_data *sd, const char *command, const char *message ) {
    + nullpo_retr(-1, sd);
    +
    + if (!sd->state.pk_mode) {
    + sd->state.pk_mode = 1;
    + clif_displaymessage(sd->fd, "You are now no longer in PK mode.");
    + } else {
    + sd->state.pk_mode = 0;
    + clif_displaymessage(sd->fd, "Returned to normal state.");
    + }
    +
    + return 0;
    +}
    +
    /*==========================================
     * @dropall by [MouseJstr]
     * Drop all your possession on the ground
    @@ -8700,6 +8714,7 @@
     ACMD_DEF(jail),
     ACMD_DEF(unjail),
     ACMD_DEF(jailfor),
    + ACMD_DEF2("pk",pkmode),
     ACMD_DEF(jailtime),
     ACMD_DEF(disguise),
     ACMD_DEF(undisguise),
    Index: src/map/battle.c
    ===================================================================
    --- src/map/battle.c (revision 16215)
    +++ src/map/battle.c (working copy)
    @@ -4739,6 +4808,8 @@
     if( sd->state.monster_ignore && flag&BCT_ENEMY )
     return 0; // Global inminuty only to Attacks
    + if( map[m].flag.pvp && sd->state.pk_mode && flag&BCT_ENEMY && s_bl->type != BL_MOB )
    + return 0;
     if( sd->status.karma && s_bl->type == BL_PC && ((TBL_PC*)s_bl)->status.karma )
     state |= BCT_ENEMY; // Characters with bad karma may fight amongst them
     if( sd->state.killable ) {
    @@ -4799,7 +4870,8 @@
     return (BCT_ENEMY&flag)?1:-1; // Duel targets can ONLY be your enemy, nothing else.
     else
     return 0; // You can't target anything out of your duel
    - }
    + }else if( map[m].flag.pvp && sd->state.pk_mode && t_bl->type != BL_MOB )
    + return 0;
     }
     if( map_flag_gvg(m) && !sd->status.guild_id && t_bl->type == BL_MOB && ((TBL_MOB*)t_bl)->guardian_data )
     return 0; //If you don't belong to a guild, can't target guardians/emperium.
    Index: src/map/pc.h
    ===================================================================
    --- src/map/pc.h (revision 16215)
    +++ src/map/pc.h (working copy)
    @@ -146,6 +146,7 @@
     struct guild *gmaster_flag;
     unsigned int prevend : 1;//used to flag wheather you've spent 40sp to open the vending or not.
     unsigned int warping : 1;//states whether you're in the middle of a warp processing
    + unsigned int pk_mode : 1; //[malufett]
     } state;
     struct {
     unsigned char no_weapon_damage, no_magic_damage, no_misc_damage;
    

    btw that's it.. it's you , u are the one who make this source >.< little edit at 1st post, credit goes to you..

  5. i dont know whos making this source but im edit this source for rathena

    credit go to the original author >> found the author is malufett

    in atcommand.c

    ======================================================================

    add :

    /*==========================================
    * @pk by : java modified  i dunno whos the author 
    *------------------------------------------*/
    ACMD_FUNC(pk)
    {
    nullpo_retr(-1, sd);if (!sd->state.pk_mode) {
    sd->state.pk_mode = 1;
    clif_displaymessage(sd->fd, "You are now no longer in PK mode.");
    }
    else {
    sd->state.pk_mode = 0;
    clif_displaymessage(sd->fd, "Returned to PK mode Mwahahahahha!!!.");
    }
    return 0;
    }
    

    still at atcommand.c

    add this :

    ACMD_DEF(pk),
    

    =======================================================================

    open atcommand_athena.conf

    find :

    kill: ["die"]
    

    below that add :

    pkmode: ["pk"]

    ===============================================================================

    open src/map/battle.c

    find this :

    if( sd->state.monster_ignore && flag&BCT_ENEMY )
     return 0; // Global inminuty only to Attacks
    

    below that add :

    if( map[m].flag.pvp && sd->state.pk_mode && flag&BCT_ENEMY && s_bl->type != BL_MOB )
    return 0;
    

    still at battle.c

    find :

    return 0; // You can't target anything out of your duel
    }
    

    below that add :

    else if( map[m].flag.pvp && sd->state.pk_mode && t_bl->type != BL_MOB )
    return 0;

    ======================================================================================

    open src/map/pc.h

    find :

    unsigned int warping : 1;//states whether you're in the middle of a warp processing

    below that add :

    unsigned int pk_mode : 1;

    done, recompile ur server :D

  6. hi this is whosell source.. this source credit to people who make it, i just edit it :D

    add this at src/map/atcommand.c

    /*==========================================
    * @whosell - List who is vending the item (amount, price, and location).
    * revamped by VoidLess, original by zephyrus_cr
    *------------------------------------------*/
    ACMD_FUNC(whosell)
    {
       char item_name[100];
       int item_id = 0, j, count = 0, sat_num = 0;
       int s_type = 1; // search bitmask: 0-name,1-id, 2-card, 4-refine
       int refine = 0,card_id = 0;
       bool flag = 0; // place dot on the minimap?
       struct map_session_data* pl_sd;
       struct s_mapiterator* iter;
       unsigned int MinPrice = battle_config.vending_max_value, MaxPrice = 0;
       struct item_data *item_data;
       nullpo_retr(-1, sd);
       if (!message || !*message) {
        clif_displaymessage(fd, "Use: @whosell (<+refine> )(<item_id>)(<[card_id]>) or @whosell <name>");
        return -1;
       }
       if (sscanf(message, "+%d %d[%d]", &refine, &item_id, &card_id) == 3){
        s_type = 1+2+4;
       }
       else if (sscanf(message, "+%d %d", &refine, &item_id) == 2){
        s_type = 1+4;
       }
       else if (sscanf(message, "+%d [%d]", &refine, &card_id) == 2){
        s_type = 2+4;
       }
       else if (sscanf(message, "%d[%d]", &item_id, &card_id) == 2){
        s_type = 1+2;
       }
       else if (sscanf(message, "[%d]", &card_id) == 1){
        s_type = 2;
       }
       else if (sscanf(message, "+%d", &refine) == 1){
        s_type = 4;
       }
       else if (sscanf(message, "%d", &item_id) == 1 && item_id == atoi(message)){
       //names, that start on num are not working
       //so implemented minumum item_id>500
       //or better make item_id == atoi(message) ?
        s_type = 1;
       }
       else if (sscanf(message, "%99[^\n]", item_name) == 1){
        s_type = 1;
        if ((item_data = itemdb_searchname(item_name)) == NULL){
    	    clif_displaymessage(fd, "Not found item with this name");
    	    return -1;
        }
        item_id = item_data->nameid;
       }
       else {
        clif_displaymessage(fd, "Use: @whosell (<+refine> )(<item_id>)(<[card_id]>) or @whosell <name>");
        return -1;
       }
    
       //check card
       if(s_type & 2 && ((item_data = itemdb_exists(card_id)) == NULL || item_data->type != IT_CARD)){
        clif_displaymessage(fd, "Not found a card with than ID");
        return -1;
       }
       //check item
       if(s_type & 1 && (item_data = itemdb_exists(item_id)) == NULL){
        clif_displaymessage(fd, "Not found an item with than ID");
        return -1;
       }
       //check refine
       if(s_type & 4){
        if (refine<0 || refine>10){
    	    clif_displaymessage(fd, "Refine out of bounds: 0 - 10");
    	    return -1;
        }
        /*if(item_data->type != IT_WEAPON && item_data->type != IT_ARMOR){
    	    clif_displaymessage(fd, "Use refine only with weapon or armor");
    	    return -1;
        }*/
       }
       iter = mapit_getallusers();
       for( pl_sd = (TBL_PC*)mapit_first(iter); mapit_exists(iter); pl_sd = (TBL_PC*)mapit_next(iter) )
       {
        if( pl_sd->vender_id ) //check if player is vending
        {
    	    for (j = 0; j < pl_sd->vend_num; j++) {
    		    if((item_data = itemdb_exists(pl_sd->status.cart[pl_sd->vending[j].index].nameid)) == NULL)
    			    continue;
    		    if(s_type & 1 && pl_sd->status.cart[pl_sd->vending[j].index].nameid != item_id)
    			    continue;
    		    if(s_type & 2 && ((item_data->type != IT_ARMOR && item_data->type != IT_WEAPON) ||
    						    (pl_sd->status.cart[pl_sd->vending[j].index].card[0] != card_id &&
    						    pl_sd->status.cart[pl_sd->vending[j].index].card[1] != card_id &&
    						    pl_sd->status.cart[pl_sd->vending[j].index].card[2] != card_id &&
    						    pl_sd->status.cart[pl_sd->vending[j].index].card[3] != card_id)))
    			    continue;
    		    if(s_type & 4 && ((item_data->type != IT_ARMOR && item_data->type != IT_WEAPON) || pl_sd->status.cart[pl_sd->vending[j].index].refine != refine))
    			    continue;
    		    if(item_data->type == IT_ARMOR)
    			    snprintf(atcmd_output, CHAT_SIZE_MAX, "+%d %d[%d] | Price %d | Amount %d | Map %s[%d,%d] | Seller %s",pl_sd->status.cart[pl_sd->vending[j].index].refine
    					    ,pl_sd->status.cart[pl_sd->vending[j].index].nameid
    					    ,pl_sd->status.cart[pl_sd->vending[j].index].card[0]
    					    ,pl_sd->vending[j].value
    					    ,pl_sd->vending[j].amount
    					    ,mapindex_id2name(pl_sd->mapindex)
    					    ,pl_sd->bl.x,pl_sd->bl.y
    					    ,pl_sd->status.name);
    		    else if(item_data->type == IT_WEAPON)
    			    snprintf(atcmd_output, CHAT_SIZE_MAX, "+%d %d[%d,%d,%d,%d] | Price %d | Amount %d | Map %s[%d,%d] | Seller %s",pl_sd->status.cart[pl_sd->vending[j].index].refine
    					    ,pl_sd->status.cart[pl_sd->vending[j].index].nameid
    					    ,pl_sd->status.cart[pl_sd->vending[j].index].card[0]
    					    ,pl_sd->status.cart[pl_sd->vending[j].index].card[1]
    					    ,pl_sd->status.cart[pl_sd->vending[j].index].card[2]
    					    ,pl_sd->status.cart[pl_sd->vending[j].index].card[3]
    					    ,pl_sd->vending[j].value
    					    ,pl_sd->vending[j].amount
    					    ,mapindex_id2name(pl_sd->mapindex)
    					    ,pl_sd->bl.x,pl_sd->bl.y
    					    ,pl_sd->status.name);
    		    else
    			    snprintf(atcmd_output, CHAT_SIZE_MAX, "ID %d | Price %d | Amount %d | Map %s[%d,%d] | Seller %s",pl_sd->status.cart[pl_sd->vending[j].index].nameid
    					    ,pl_sd->vending[j].value
    					    ,pl_sd->vending[j].amount
    					    ,mapindex_id2name(pl_sd->mapindex)
    					    ,pl_sd->bl.x, pl_sd->bl.y
    					    ,pl_sd->status.name);
    		    if(pl_sd->vending[j].value < MinPrice) MinPrice = pl_sd->vending[j].value;
    		    if(pl_sd->vending[j].value > MaxPrice) MaxPrice = pl_sd->vending[j].value;
    		    clif_displaymessage(fd, atcmd_output);
    		    count++;
    		    flag = 1;
    	    }
    	    if(flag && pl_sd->mapindex == sd->mapindex){
    		    clif_viewpoint(sd, 1, 1, pl_sd->bl.x, pl_sd->bl.y, ++sat_num, 0xFFFFFF);
    		    flag = 0;
    	    }
        }
       }
       mapit_free(iter);
       if(count > 0) {
        snprintf(atcmd_output,CHAT_SIZE_MAX, "Found %d ea. Prices from %dz to %dz", count, MinPrice, MaxPrice);
        clif_displaymessage(fd, atcmd_output);
       } else
        clif_displaymessage(fd, "Nobody is selling it now.");
       return 0;
    }
    

    and dont forget add this too at src/map/atcommand.c

    ACMD_DEF(whosell),
    

  7. ancur...kenapa g di pisahin ya antara bahasa indonesia sama malaysia?bisa jadi salah-salah arti ntar.-__-a ow ya disini ada yg bisa2 script g?ajarin saya dong.

    untuk script di wiki rathena juga udah cukup tuh gan... tinggal improvisasi ajah...

    lain kali buat forum untuk emulator RO ah buat bahasa indonesia...only ahahaha biar gak pada bingung bahasanya hehhe

    ada yang mau bantu gak yah ... :D

    saya sediain hosting ajah ...:P

  8. im being upset when this IP 97.107.134.57 , try to use my connections :(

    i was deny it but for me it was verry anoying , that ip try and try to ***** my server

    i try to check whois and whoip

    97.107.134.57 >> foto Elvira was really anoying /meh

×
×
  • Create New...