Jump to content

moneymuch

Members
  • Posts

    20
  • Joined

  • Last visited

Posts posted by moneymuch

  1. @malufett

     else if(sd->inventory_data[index]->type == IT_ARMOR) {
      int r;
      if ( (r = sd->status.inventory[index].refine) )
    refinedef += refine_info[REFINE_TYPE_ARMOR].bonus[r-1];
      if(sd->inventory_data[index]->script) {
    if( i == EQI_HAND_L ) //Shield
     sd->state.lr_flag = 3;
    run_script(sd->inventory_data[index]->script,0,sd->bl.id,0);
    if( i == EQI_HAND_L ) //Shield
     sd->state.lr_flag = 0;
    if (!calculating) //Abort, run_script retriggered this. [skotlex]
     return 1;
      }
    +   if(sd->status.inventory[index].card[0]==CARD0_FORGE)
    +   {
    +	status->def_ele = (sd->status.inventory[index].card[1]&0x0f);
    +	status->ele_lv = 1;
    +	clif_displaymessage(sd->fd, "yes,it is here!!!");
    +   }
     }
    }
    if(sd->equip_index[EQI_AMMO] >= 0){
     index = sd->equip_index[EQI_AMMO];
     if(sd->inventory_data[index]){  // Arrows
      sd->bonus.arrow_atk += sd->inventory_data[index]->atk;
      sd->state.lr_flag = 2;
    

    i add it , i equip produced armor ,i can display "yes,it is here!!!"

    but it is not effect , how do i need to alter, can you give me a tip.

    or i need to add function like as "weapon_atk" in status.h

    struct weapon_atk {

    unsigned short atk, atk2;

    unsigned short range;

    unsigned char ele;

    };

  2. @malufett

    thank you very much

    can i answer new question?

    after I read 'skill_produce_mix', i find

    if(rnd()%10000 < make_per || qty > 1){ //Success, or crafting multiple items.
     struct item tmp_item;
     memset(&tmp_item,0,sizeof(tmp_item));
     tmp_item.nameid=nameid;
     tmp_item.amount=1;
     tmp_item.identify=1;
     if(equip){
      tmp_item.card[0]=CARD0_FORGE;
      tmp_item.card[1]=((sc*5)<<8)+ele;
      tmp_item.card[2]=GetWord(sd->status.char_id,0); // CharId
      tmp_item.card[3]=GetWord(sd->status.char_id,1);
     } else {
      //Flag is only used on the end, so it can be used here. [skotlex]
    

    i think , i need to find the thing that is 'tmp_item.card[1]=((sc*5)<<8)+ele;'

    i want to alter this part,

    at present, its effect is let weapon is add atk , fire status and so on.

    i need the effect that is let Armor is add HP or def and fire status, but it is not that damage is fire , yet it is that def is fire,

    so i think that 'tmp_item.card[1]=((sc*5)<<8)+ele;' is key !

    but i do not understand the Usage of this ,

    can you help me ?

  3. I want to know where is the source of smith's producing weapon about property

    oh,my English is bad , i don't know how to say, let me give an example

    when smith is producing weapon , he need to put 'Flame Heart', 'Mystic Frozen', 'Rough Wind', 'Great Nature' and 'Star Crumb' ,like as this kind of thing.

    how does system determine the effect of these thing . for example , 'Flame Heart' can give fire status to weapon, 'Star Crumb' can give atk to weapon

    like skill's damage is in battle.c/damage , then , where is the source of smith's producing weapon about property?

  4. small question.

    how about:

    // Enable [1-2] or disable[0] player's Extra Bonuses?

    // 1 = enable for all players any bonuses from db/extra_bonuses.txt

    // 2 = enable only for players which have a specific variable "EXTRA_BONUS", type 1

    // 3 = enable only for players which have a specific variable "EXTRA_BONUS", type 2

    enable_extra_bonus: X( X can be 1,2,3)

    1,{ bonus bStr,20; }

    2,{ bonus bAgi,20; }

    switch(enable_extra_bonus)

    {

    case 1:

    work on all players;

    break;

    case 2:

    all bonuses work on all players which specific variable "EXTRA_BONUS" != 0;

    break;

    case 3:

    bonuses just work on players which specific variable "EXTRA_BONUS" = bonus's number;

    break;

    }

    end;

    Laugh ~~~ I want to use this mode , too. But I have not found the solution. My idea is the way that resemble "manner_system", 1 + 2 + 4 + 8 + 16.............,but i don't know to edit it

  5. I don't know whether it is a bug . I don't know whether other people has this problem , too.

    The first buyer is not searched . he must close buying store . reset open buying store again . then he can be searched.

  6. hey Lilith

    i have a problem

    while i buy anything in vending with any way, map server displayer error,then server restart

    i use 1.8.1,but it is not upgrade from 1.6

    before i use 1.6,it is ok.but i change rathena version to 16096, i add 1.8.1 to svn again

    i think maybe i make mistake when i add to it ,so i try to find mistake

    but i don't find any mistake

    [Error] Server received crash signal ! Attempting to save all online characters !

    oh ,it don't let me Send pictures T Ti

    i have sloved the problem . it is the megs 707 ,amount and item_name , i invert their order

  7. First,thank you very very very much.

    To FatalEror:

    Thank you for your answer,

    1. i discover that it has not place for set up skill's damage.The beginning , i think that "hitrate" means the damage when hit.so where do i set up skill's damage.?

    2.bl = The target of status (src = self, bl = enemy) , the target is member in party or player,what do i use function.

    3.I edit skill is quest, so i don't change. if skill is quest, is this matter?

    To Rytech:

    Thank you for your answer.

    no, i don't add a guild skill.i don't know this set like this.

    monster's skill ,also has this type of set,has it?

  8. i want to study create new skill, but i don't know how to creat new skill, so i try to alter it on the basis of "SM_BASH".

    i find "SM_BASH" in battle.c skill.c skill.h status.c

    according to its scheme ,

    add in battle.c

    case AS_SONICBLOW:

    if(sd && pc_checkskill(sd,AS_SONICACCEL)>0)

    hitrate += hitrate * 50 / 100;

    break;

    case GC_VENOMPRESSURE:

    hitrate += 10 + 4 * skill_lv;

    break;

    //========================under===========================

    case DIY_QIAN:

    hitrate += hitrate * 100 * skill_lv / 100;

    break;

    //========================above==========================

    }

    // Weaponry Research hidden bonus

    if (sd && (skill = pc_checkskill(sd,BS_WEAPONRESEARCH)) > 0)

    hitrate += hitrate * ( 2 * skill ) / 100;

    hitrate = cap_value(hitrate, battle_config.min_hitrate, battle_config.max_hitrate);

    =================Dividing lines=======================

    add in skill.c

    status_change_end(bl, SC_HARMONIZE, INVALID_TIMER);

    status_change_end(bl, SC_WINKCHARM, INVALID_TIMER);

    status_change_end(bl, SC_SONGOFMANA, INVALID_TIMER);

    status_change_end(bl, SC_DANCEWITHWUG, INVALID_TIMER);

    status_change_end(bl, SC_LERADSDEW, INVALID_TIMER);

    status_change_end(bl, SC_MELODYOFSINK, INVALID_TIMER);

    status_change_end(bl, SC_BEYONDOFWARCRY, INVALID_TIMER);

    status_change_end(bl, SC_UNLIMITEDHUMMINGVOICE, INVALID_TIMER);

    }

    break;

    //========================under===========================

    case DIY_QIAN:

    if( sd && skilllv > 0 ){

    sc_start(bl,SC_STUN,(50*skilllv+(int)sd->status.base_level/10),

    skilllv,skill_get_time(skillid,skilllv));

    }

    breakb;

    //========================above==========================

    }

    if (md && battle_config.summons_trigger_autospells && md->master_id && md->special_state.ai)

    { //Pass heritage to Master for status causing effects. [skotlex]

    sd = map_id2sd(md->master_id);

    src = sd?&sd->bl:src;

    =================Dividing lines=======================

    add in skill.h

    EL_CIRCLE_OF_FIRE = 8401,

    EL_FIRE_CLOAK,

    EL_FIRE_MANTLE,

    EL_WATER_SCREEN,

    EL_WATER_DROP,

    EL_WATER_BARRIER,

    EL_WIND_STEP,

    EL_WIND_CURTAIN,

    EL_ZEPHYR,

    EL_SOLID_SKIN,

    EL_STONE_SHIELD,

    EL_POWER_OF_GAIA,

    EL_PYROTECHNIC,

    EL_HEATER,

    EL_TROPIC,

    EL_AQUAPLAY,

    EL_COOLER,

    EL_CHILLY_AIR,

    EL_GUST,

    EL_BLAST,

    EL_WILD_STORM,

    EL_PETROLOGY,

    EL_CURSED_SOIL,

    EL_UPHEAVAL,

    EL_FIRE_ARROW,

    EL_FIRE_BOMB,

    EL_FIRE_BOMB_ATK,

    EL_FIRE_WAVE,

    EL_FIRE_WAVE_ATK,

    EL_ICE_NEEDLE,

    EL_WATER_SCREW,

    EL_WATER_SCREW_ATK,

    EL_TIDAL_WEAPON,

    EL_WIND_SLASH,

    EL_HURRICANE,

    EL_HURRICANE_ATK,

    EL_TYPOON_MIS,

    EL_TYPOON_MIS_ATK,

    EL_STONE_HAMMER,

    EL_ROCK_CRUSHER,

    EL_ROCK_CRUSHER_ATK,

    EL_STONE_RAIN,

    //========================under===========================

    DIY_QIAN = 10016,

    //========================above==========================

    };

    /// The client view ids for land skills.

    =================Dividing lines=======================

    add in status.c

    set_sc( NPC_BLINDATTACK , SC_BLIND , SI_BLANK , SCB_HIT|SCB_FLEE );

    set_sc( NPC_BLEEDING , SC_BLEEDING , SI_BLEEDING , SCB_REGEN );

    set_sc( NPC_POISON , SC_DPOISON , SI_BLANK , SCB_DEF2|SCB_REGEN );

    //The main status definitions

    add_sc( SM_BASH , SC_STUN );

    //========================under===========================

    add_sc( DIY_QIAN , SC_STUN );

    //========================above==========================

    set_sc( SM_PROVOKE , SC_PROVOKE , SI_PROVOKE , SCB_DEF|SCB_DEF2|SCB_BATK|SCB_WATK );

    add_sc( SM_MAGNUM , SC_WATK_ELEMENT );

    =================Dividing lines=======================

    after release ok ,add information of skill in lua. icon effect sprite ok.skill_db ok(these is copy "SM_BASH",but i have altered name.)

    but ,when i enter the game, i can not find skill in skill bar,

    so,i don't know whether to finish for create a new skill, (i have used @allskill GM order)

    the steps of editor ,where is the mistake?

    sorry,i forget SVN version,but it is in less than this week.

    p.s. if you can , can you tell me what is effect of the command ?the command is purple.

  9. Hi moneymuch,

    Make sure you have a table named 'loginlog' in your 'ragnarok' database.

    #Database: ragnarok
    #Table: loginlog
    CREATE TABLE `loginlog` (
     `time` datetime NOT NULL default '0000-00-00 00:00:00',
     `ip` varchar(15) NOT NULL default '',
     `user` varchar(23) NOT NULL default '',
     `rcode` tinyint(4) NOT NULL default '0',
     `log` varchar(255) NOT NULL default '',
     INDEX (`ip`)
    ) ENGINE=MyISAM ;

    Source: https://rathena.svn....-files/logs.sql

    HI Asura

    yes , i have a "loginlog" in my "ragnarok" database. i try to edit the name of "log" database for "loginlog" and "logs" ,but it has this error

    1.jpg

    thank you very much for your answer.

    i have solved this error.

    this is my mistake. i should execute main.sql and logs.sql in "ragnarok", but i execute logs.sql in "log"

  10. edit here

    https://rathena.svn....ter_athena.conf

    // Global SQL settings
    // overriden by local settings when the hostname is defined there
    // (currently only the login-server reads/obeys these settings)
    sql.db_hostname: 127.0.0.1
    sql.db_port: 3306
    sql.db_username: ragnarok
    sql.db_password: ragnarok
    sql.db_database: ragnarok
    sql.codepage:
    // MySQL Character SQL server
    char_server_ip: 127.0.0.1
    char_server_port: 3306
    char_server_id: ragnarok
    char_server_pw: ragnarok
    char_server_db: ragnarok
    // MySQL Map SQL Server
    map_server_ip: 127.0.0.1
    map_server_port: 3306
    map_server_id: ragnarok
    map_server_pw: ragnarok
    map_server_db: ragnarok
    // MySQL Log SQL Database
    log_db_ip: 127.0.0.1
    log_db_port: 3306
    log_db_id: ragnarok
    log_db_pw: ragnarok
    log_db_db: ragnarok
    log_codepage:
    log_login_db: loginlog

    yes ,i edit it ,but it still has a error

    sql.db_hostname: 127.0.0.1
    sql.db_port: 3306
    sql.db_username: root
    sql.db_password: moneymuchmoney
    sql.db_database: ragnarok
    sql.codepage:
    // MySQL Character SQL server
    char_server_ip: 127.0.0.1
    char_server_port: 3306
    char_server_id: root
    char_server_pw: moneymuchmoney
    char_server_db: ragnarok
    // MySQL Map SQL Server
    map_server_ip: 127.0.0.1
    map_server_port: 3306
    map_server_id: root
    map_server_pw: moneymuchmoney
    map_server_db: ragnarok
    // MySQL Log SQL Database
    log_db_ip: 127.0.0.1
    log_db_port: 3306
    log_db_id: root
    log_db_pw: moneymuchmoney
    log_db_db: ragnarok
    log_codepage:
    log_login_db: loginlog
    

  11. but now it has a error in logserv-sql . how to solve this error.

    123.jpg

    srclogin_sql

    123213.jpg

    my sql's username and password is "root" and "moneymuchmoney", need i to alter username and password here?

    after i alter them, do i release with VS2010 again

    or how do i solve thie error

  12. I accordance with rathena wiki to install sql, Sql Version is 5.161.

    but Click "Edit Table Data" under SQL Development, and put ragnarok in the "Default Schema" box. Click next, enter your password, then click finish, enter your password again, and exit out of the editor.

    I don't find "Default Schema" in"Edit Table Data" ,look the picture

    num%25201.jpg

    but i find "Default Schema" in "Edit SQL Script" ,look the picture num%25202.jpg

    which is right?

×
×
  • Create New...