Jump to content

FutureGazer

Members
  • Posts

    23
  • Joined

  • Last visited

Posts posted by FutureGazer

  1. itemmap by xantara was work on my version 17348.......but a bit problem......help me to settle this

     

    pc.c: In function âpc_getitem_mapâ:
    pc.c:4102: warning: suggest parentheses around assignment used as truth value
    the script on that line(4102): if ( flag = pc_additem(sd,&it,count,log_type) )
     
    script.c: In function âbuildin_getitem_map_subâ:
    script.c:6460: warning: unused variable âpâ
    script.c:6459: warning: unused variable âgâ
    the script on that line(6460): struct party_data *p = NULL;
    the script on that line(6459): struct guild *g = NULL;
     
    atcommand.c: In function âatcommand_itemmapâ:
    atcommand.c:1275: warning: suggest parentheses around â&&â within â||â
    the script on that line(1275):  && sscanf(message, "%99s %d", item_name, &amount) < 1 )
     
    thx so much for ur help......

     

  2. got this error on my r17348 using that manage skill damage 2.2 beta

     

    battle.c: In function âbattle_SADâ:
    battle.c:1701: warning: suggest parentheses around â&&â within â||â
    battle.c:1702: warning: suggest parentheses around â&&â within â||â
    battle.c:1703: warning: suggest parentheses around â&&â within â||â
    battle.c:1704: warning: suggest parentheses around â&&â within â||â
    battle.c:3292:72: error: macro "ATK_ADDRATE" passed 3 arguments, but takes just 1
    battle.c: In function âbattle_calc_weapon_attackâ:
    battle.c:3292: error: âATK_ADDRATEâ undeclared (first use in this function)
    battle.c:3292: error: (Each undeclared identifier is reported only once
    battle.c:3292: error: for each function it appears in.)
    battle.c: In function âbattle_calc_misc_attackâ:
    battle.c:4637: warning: suggest parentheses around assignment used as truth value
     
  3. work on my version 17348.......but a bit problem......help me to settle this

     

    pc.c: In function âpc_getitem_mapâ:
    pc.c:4102: warning: suggest parentheses around assignment used as truth value
    the script on that line(4102): if ( flag = pc_additem(sd,&it,count,log_type) )
     
    script.c: In function âbuildin_getitem_map_subâ:
    script.c:6460: warning: unused variable âpâ
    script.c:6459: warning: unused variable âgâ
    the script on that line(6460): struct party_data *p = NULL;
    the script on that line(6459): struct guild *g = NULL;
     
    atcommand.c: In function âatcommand_itemmapâ:
    atcommand.c:1275: warning: suggest parentheses around â&&â within â||â
    the script on that line(1275):  && sscanf(message, "%99s %d", item_name, &amount) < 1 )
     
    thx so much for ur help......
     
  4. Im got this warning after compile;

     

    itemdb.c: In function âitemdb_jobid2mapidâ:
    itemdb.c:274: warning: left shift count >= width of type
    itemdb.c:276: warning: left shift count >= width of type
    itemdb.c:278: warning: left shift count >= width of type
    itemdb.c:280: warning: left shift count >= width of type
    itemdb.c:282: warning: left shift count >= width of type
     
    My editing source is like this;
     
        if (jobmask & 1<<35) //Akatsuki
               bclass[0] |= 1<<MAPID_AKATSUKI;
        if (jobmask & 1<<36) //Horou
               bclass[0] |= 1<<MAPID_HOROU;
        if (jobmask & 1<<37) //Hokage3
               bclass[0] |= 1<<MAPID_HOKAGE3;
        if (jobmask & 1<<38) //Hokage4
               bclass[0] |= 1<<MAPID_HOKAGE4;
        if (jobmask & 1<<39) //Rempit
               bclass[0] |= 1<<MAPID_REMPIT;
    }
     
    thank you for helping........
     

     

     

  5. how to fix this?

     

    battle.c: In function ‘battle_calc_base_damage’:
    battle.c:1661: error: expected expression before ‘}’ token
    battle.c:1627: warning: unused variable ‘damage’
    battle.c:1661: warning: no return statement in function returning non-void
    battle.c: At top level:
    battle.c:1668: error: expected identifier or ‘(’ before ‘return’
    battle.c:1670: error: expected identifier or ‘(’ before ‘if’
    battle.c:1672: error: expected identifier or ‘(’ before ‘else’
    battle.c:1675: error: expected identifier or ‘(’ before ‘if’
    battle.c:1688: error: expected identifier or ‘(’ before ‘if’
    battle.c:1694: error: expected identifier or ‘(’ before ‘else’
    battle.c:1699: error: expected identifier or ‘(’ before ‘if’
    battle.c:1718: error: expected identifier or ‘(’ before ‘return’
    battle.c:1719: error: expected identifier or ‘(’ before ‘}’ token
    battle.c: In function ‘is_attack_critical’:
    battle.c:1906: error: ‘flag’ undeclared (first use in this function)
    battle.c:1906: error: (Each undeclared identifier is reported only once
    battle.c:1906: error: for each function it appears in.)
    battle.c:1927: error: ‘wflag’ undeclared (first use in this function)
    battle.c:2020: error: ‘skill’ undeclared (first use in this function)
    battle.c:2079:52: error: macro "ATK_ADDRATE" passed 3 arguments, but takes just 1
    battle.c:2079: error: ‘ATK_ADDRATE’ undeclared (first use in this function)
    battle.c:2084: error: ‘i’ undeclared (first use in this function)
    battle.c:2086:37: error: macro "ATK_ADD" passed 3 arguments, but takes just 1
    battle.c:2086: error: ‘ATK_ADD’ undeclared (first use in this function)
    battle.c:2089:42: error: macro "ATK_RATE" passed 3 arguments, but takes just 1
    battle.c:2089: error: ‘ATK_RATE’ undeclared (first use in this function)
    battle.c:2090: warning: implicit declaration of function ‘RE_ALLATK_ADDRATE’
    battle.c:2094:41: error: macro "ATK_RATE" passed 3 arguments, but takes just 1
    battle.c:2113:47: error: macro "ATK_ADD" passed 3 arguments, but takes just 1
    battle.c:2129:74: error: macro "ATK_ADD" passed 3 arguments, but takes just 1
    battle.c:2131:54: error: macro "ATK_ADD" passed 3 arguments, but takes just 1
    battle.c:2178: error: ‘nk’ undeclared (first use in this function)
    battle.c:2206: error: ‘skillratio’ undeclared (first use in this function)
    battle.c:3088: error: ‘s_ele’ undeclared (first use in this function)
    battle.c:3097: warning: implicit declaration of function ‘damage_div_fix’
    battle.c:3139:64: error: macro "ATK_ADDRATE" passed 3 arguments, but takes just 1
    battle.c:3150:73: error: macro "ATK_ADD" passed 3 arguments, but takes just 1
    battle.c:3153: error: incompatible types when returning type ‘struct Damage’ but ‘bool’ was expected
    battle.c:3284:3: error: macro "ATK_RATE2" passed 4 arguments, but takes just 2
    battle.c: In function ‘battle_calc_defense_reduction’:
    battle.c:3281: error: ‘ATK_RATE2’ undeclared (first use in this function)
    battle.c:3288:3: error: macro "ATK_ADD2" passed 4 arguments, but takes just 2
    battle.c:3285: error: ‘ATK_ADD2’ undeclared (first use in this function)
    battle.c:3314:40: error: macro "ATK_ADD" passed 3 arguments, but takes just 1
    battle.c: In function ‘battle_calc_attack_post_defense’:
    battle.c:3310: warning: unused variable ‘lv’
    battle.c:3320:119: error: macro "ATK_ADD" passed 3 arguments, but takes just 1
    battle.c:3326: warning: implicit declaration of function ‘battle_calc_attack_masteries’
    battle.c:3326: error: incompatible types when assigning to type ‘struct Damage’ from type ‘int’
    battle.c:3329: warning: implicit declaration of function ‘battle_skill_stacks_masteries_vvs’
    battle.c:3333:88: error: macro "ATK_ADD2" passed 4 arguments, but takes just 2
    battle.c:3333: error: ‘ATK_ADD2’ undeclared (first use in this function)
    battle.c:3335:72: error: macro "ATK_ADD2" passed 4 arguments, but takes just 2
    battle.c:3344: warning: implicit declaration of function ‘RE_ALLATK_ADD’
    battle.c:3345:36: error: macro "ATK_ADD" passed 3 arguments, but takes just 1
    battle.c:3352:42: error: macro "ATK_ADDRATE" passed 3 arguments, but takes just 1
    battle.c:3357:42: error: macro "ATK_ADDRATE" passed 3 arguments, but takes just 1
    battle.c: In function ‘battle_calc_attack_plant’:
    battle.c:3370: warning: implicit declaration of function ‘is_attack_hitting’
    battle.c:3372: warning: implicit declaration of function ‘battle_get_weapon_element’
    battle.c:3420:44: error: macro "ATK_RATER" passed 2 arguments, but takes just 1
    battle.c: In function ‘battle_calc_attack_left_right_hands’:
    battle.c:3420: error: ‘ATK_RATER’ undeclared (first use in this function)
    battle.c:3421: error: expected ‘;’ before ‘}’ token
    battle.c:3424:44: error: macro "ATK_RATER" passed 2 arguments, but takes just 1
    battle.c:3425: error: expected ‘;’ before ‘}’ token
    battle.c:3431:45: error: macro "ATK_RATEL" passed 2 arguments, but takes just 1
    battle.c:3431: error: ‘ATK_RATEL’ undeclared (first use in this function)
    battle.c:3432: error: expected ‘;’ before ‘}’ token
    battle.c:3435:45: error: macro "ATK_RATEL" passed 2 arguments, but takes just 1
    battle.c:3436: error: expected ‘;’ before ‘}’ token
    battle.c:3517:26: error: macro "ATK_RATER" passed 2 arguments, but takes just 1
    battle.c: In function ‘battle_calc_weapon_final_atk_modifiers’:
    battle.c:3517: error: ‘ATK_RATER’ undeclared (first use in this function)
    battle.c:3518: error: expected ‘;’ before ‘status_damage’
    battle.c:3561:128: error: macro "ATK_ADD" passed 3 arguments, but takes just 1
    battle.c: In function ‘is_attack_critical’:
    battle.c:3583: error: invalid storage class for function ‘initialize_weapon_data’
    battle.c:3666: error: invalid storage class for function ‘battle_calc_weapon_attack’
    battle.c: In function ‘battle_calc_weapon_attack’:
    battle.c:3705: warning: implicit declaration of function ‘battle_calc_multi_attack’
    battle.c:3705: error: incompatible types when assigning to type ‘struct Damage’ from type ‘int’
    battle.c:3714: warning: implicit declaration of function ‘battle_calc_skill_base_damage’
    battle.c:3714: error: incompatible types when assigning to type ‘struct Damage’ from type ‘int’
    battle.c:3715: warning: implicit declaration of function ‘battle_calc_attack_skill_ratio’
    battle.c:3717:40: error: macro "ATK_RATE" passed 3 arguments, but takes just 1
    battle.c:3718: warning: implicit declaration of function ‘RE_ALLATK_RATE’
    battle.c:3720: warning: implicit declaration of function ‘battle_calc_skill_constant_addition’
    battle.c:3722:39: error: macro "ATK_ADD" passed 3 arguments, but takes just 1
    battle.c:3728:40: error: macro "ATK_ADDRATE" passed 3 arguments, but takes just 1
    battle.c:3748: warning: implicit declaration of function ‘battle_attack_sc_bonus’
    battle.c:3748: error: incompatible types when assigning to type ‘struct Damage’ from type ‘int’
    battle.c:3751: warning: implicit declaration of function ‘attack_ignores_def’
    battle.c:3761:45: error: macro "ATK_ADD" passed 3 arguments, but takes just 1
    battle.c:3766: warning: implicit declaration of function ‘battle_calc_element_damage’
    battle.c:3766: error: incompatible types when assigning to type ‘struct Damage’ from type ‘int’
    battle.c:3783:95: error: macro "ATK_ADD2" passed 4 arguments, but takes just 2
    battle.c:3783: error: ‘ATK_ADD2’ undeclared (first use in this function)
    battle.c:3785:63: error: macro "ATK_ADD" passed 3 arguments, but takes just 1
    battle.c:3787:59: error: macro "ATK_ADD" passed 3 arguments, but takes just 1
    battle.c:3794:73: error: macro "ATK_ADD" passed 3 arguments, but takes just 1
    battle.c:3799: warning: implicit declaration of function ‘battle_skill_get_damage_properties’
    battle.c:5173:54: error: macro "ATK_RATER" passed 2 arguments, but takes just 1
    battle.c: In function ‘battle_weapon_attack’:
    battle.c:5173: error: ‘ATK_RATER’ undeclared (first use in this function)
    battle.c:5174: error: expected ‘;’ before ‘status_change_end_’
    battle.c: In function ‘is_attack_critical’:
    battle.c:6330: error: invalid storage class for function ‘rAthena_report_timer’
    battle.c:2145:1: error: unterminated #else
    battle.c:2064:1: error: unterminated #ifndef
    battle.c:6471: error: expected declaration or statement at end of input
    make[1]: *** [obj_sql/battle.o] Error 1
     
  6. Hi Everyone,

     

    How to edit about freezing status in src status.c(r17348) to make like this...................

     

     

     

     

    Freeze Resistance=depend on 100 luk

     

    3 Sec Defrost/Fast Defrost=depend on 60 mdef

     

     

     

     

     

    Thank You,

  7. done......still same......like below

     

    battle.c: In function ‘battle_SAD’:
    battle.c:1701: warning: suggest parentheses around ‘&&’ within ‘||’
    battle.c:1702: warning: suggest parentheses around ‘&&’ within ‘||’
    battle.c:1703: warning: suggest parentheses around ‘&&’ within ‘||’
    battle.c:1704: warning: suggest parentheses around ‘&&’ within ‘||’
    battle.c: In function ‘battle_calc_misc_attack’:
    battle.c:4639: warning: suggest parentheses around assignment used as truth value
     
     

    got new diff for r17348 for released?

  8. now i use your manage_skill_damage r17101................but im got this problem on my version r17348

     

    battle.c: In function ‘battle_SAD’:
    battle.c:1699: warning: suggest parentheses around ‘&&’ within ‘||’
    battle.c:1700: warning: suggest parentheses around ‘&&’ within ‘||’
    battle.c:1701: warning: suggest parentheses around ‘&&’ within ‘||’
    battle.c:1702: warning: suggest parentheses around ‘&&’ within ‘||’
    battle.c: In function ‘battle_calc_misc_attack’:
    battle.c:4632: warning: suggest parentheses around assignment used as truth value
  9. Nice work sir......

     

    (revision 17348)

    but im got this problem,

     
    battle.c: In function âbattle_calc_normal_damageâ:
    battle.c:1397: warning: suggest parentheses around â&&â within â||â
    battle.c:1398: warning: suggest parentheses around â&&â within â||â
    battle.c:1400: warning: suggest parentheses around â&&â within â||â
    battle.c:1377: warning: unused variable âsdâ
     
    need help.....thank you ^.^
  10. what is max item db in pre-renewal? and one more question.......i was put my custom with code 50000 and then when i use command @item its show with red sentence like this "cannot get the item"

     

    sorry for bad english >.< and thank you for your answer............really appreciate




  11. You should show your script so we can look at possible error sources.

    The error itself seems to be very obvious: you use a non-existing variable for somehing.

     


    // Settings :
    //    -    Only required to edit the ShopSetting() Function
    //            Notes : You may also add / remove Menu ( If any ) 
    //    -    Shop Currency can be either ItemID or Variable Name, but must write within Quotation Marks ( "" )
    //            Ex. of Variable.    ->    Zeny , #CASHPOINTS , #KAFRAPOINTS , CustomVariable , #CustomVariable
    //    -    ERROR Message are used to show Invalid Settings in your NPC.
    // Leave this alone...
    -    shop    Emistry_Shop    -1,512:100
    belagio,106,73,4    script    Custom Quest 1    757,{
    function ShopSettings;
    function ValidateCost;
    function CurrencyInfo;
    function ClearData;
    function ValueConvert;
    function ErrorNotice;
    mes "Look For Custom Upper Headgear?";
    mes "^00FF00____________________________^000000";
    mes "Choose the best for you";
    next;
    // Menu Selection
    select("Upper Headgear");
    ClearData();
    ShopSettings( @menu );
    npcshopitem "Emistry_Shop",512,100;
    npcshopdelitem "Emistry_Shop",512;
    for(set .@i,0; .@i < getarraysize( @ItemLists ); set .@i,.@i+1)
        npcshopadditem "Emistry_Shop",@ItemLists[.@i],@ItemCost[.@i];
    mes "Okay...wait awhile";
    mes "^00FF00____________________________^000000";
    CurrencyInfo( @Currency$ );
    mes "^00FF00____________________________^000000";
    callshop "Emistry_Shop",1;
    npcshopattach "Emistry_Shop";
    end;
    function    ShopSettings    {
        switch( getarg(0) ){
            Case 1:
                // Currency [ Item ID / Variable Name ]
                set @Currency$,"7227";
                // Item ID Lists
                setarray @ItemLists[0],30283,30112,30151,30740,30161,30162,30583,30395,30780,30189,30290,30799,30187,30353,30616,30717,30501,30186,30788,30313,30777;
                // Item Price
                setarray @ItemCost[0],20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20;
                break;
            // Case 4,5,6.....etc...
            default:
                ErrorNotice( "Invalid Menu Selection for Menu "+@menu+"." );
                close;
        }
        
        
    if( @Currency$ == "" )
        ErrorNotice( "Invalid Currency Setting in Menu "+@menu+" ." );
    if( getarraysize( @ItemCost ) != getarraysize( @ItemLists ) || getarraysize( @ItemLists ) != getarraysize( @ItemCost ) )
        ErrorNotice( "Missing or Extra Value of Item or Cost Settings in Menu "+@menu+" ." );
    return;
    }
    function    ErrorNotice    {
        mes "^FF0000ERROR^000000 - "+getarg(0);
        mes "^00FF00____________________________^000000";
        mes "Inform this Message to ^0000FFGame Staffs^000000 immediately !";
        close;
    }
    function    CurrencyInfo    {
        if( getitemname( atoi( getarg(0) ) ) != "null" ){
            mes "Item Currency : ^FF0000"+getitemname( atoi( getarg(0) ) )+"^000000";
            mes "Available Amount : ^0000FF"+ValueConvert( countitem( atoi( getarg(0) ) ) )+"^000000";
        }else if( getitemname( atoi( getarg(0) ) ) == "null" ){
            mes "Variable Currency : ^FF0000"+getarg(0)+"^000000";
            mes "Available Amount : ^0000FF"+ValueConvert( getd( getarg(0) ) )+"^000000";
        }
    return;
    }
    function    ValidateCost    {
        if( getitemname( atoi( getarg(0) ) ) != "null" ){
            if( countitem( atoi( getarg(0) ) ) < getarg(1) ) return 1;
        }else if( getitemname( atoi( getarg(0) ) ) == "null" ){
            if( getd( getarg(0) ) < getarg(1) ) return 1;
        }
    return;
    }
    function ClearData    {
        set @Currency$,"";
        set @TotalCost,0;
        deletearray @bought_nameid[0],getarraysize( @bought_nameid );
        deletearray @bought_quantity[0],getarraysize( @bought_quantity );
        deletearray @ItemLists[0],getarraysize( @ItemLists );
        deletearray @ItemCost[0],getarraysize( @ItemCost );
    return;
    }
    function    ValueConvert    {
        set .@num, atoi(""+getarg(0));
        if ( .@num == 0 || .@num >= 2147483647 ) return getarg(0);
        set .@l, getstrlen(""+.@num);
        for ( set .@i,0; .@i < .@l; set .@i, .@i + 1 ) {
            set .@num$, .@num % pow(10,.@i+1) / pow(10,.@i) + .@num$;
                if ( (.@i+1) % 3 == 0 && .@i+1 != .@l ) set .@num$, ","+ .@num$;
        }
        return .@num$;
    }
    OnBuyItem:
        ShopSettings( @menu );
        for(set @i,0; @i < getarraysize( @bought_nameid ); set @i,@i+1)
            for(set @j,0; @j < getarraysize( @ItemLists ); set @j,@j+1)
                if( @ItemLists[@j] == @bought_nameid[@i] )
                set @TotalCost,@TotalCost + ( @ItemCost[@j] * @bought_quantity[@i] );
        mes "^FF0000       Material^000000";
        mes "^00FF00____________________________^000000";
        for( set @i,0; @i < getarraysize( @bought_nameid ); set @i,@i+1 )
                mes "^FF0000"+@bought_quantity[@i]+" x ^0000FF"+getitemname( @bought_nameid[@i] )+"^000000";
        mes "^00FF00____________________________^000000";
        if( getitemname( atoi( @Currency$ ) ) != "null" )
            mes "Total Cost : ^0000FF"+ValueConvert( @TotalCost )+" x "+getitemname( atoi( @Currency$ ) )+"^000000";
        else if( getitemname( atoi( @Currency$ ) ) == "null" ){
            mes "Total Cost : ^0000FF"+ValueConvert( @TotalCost )+" "+@Currency$+"^000000";
        }
        
        mes "^00FF00____________________________^000000";
        if( ValidateCost( @Currency$,@TotalCost ) ){
            if( getitemname( atoi( @Currency$ ) ) != "null" )
                mes "[ ^FF0000X^000000 ] Insufficient ^0000FF"+getitemname( @Currency$ )+"^000000";
            else if( getitemname( atoi( @Currency$ ) ) == "null" ){
                mes "[ ^FF0000X^000000 ] Insufficient ^0000FF"+@Currency$+"^000000";
            }
        }else{
            if( select( "^0000FFPurchase^000000:Cancel" ) == 1 ){
                if( getitemname( atoi( @Currency$ ) ) != "null" )
                    delitem atoi( @Currency$ ),@TotalCost;
                else if( getitemname( atoi( @Currency$ ) ) == "null" ){
                    set getd( @Currency$ ),getd( @Currency$ ) - @TotalCost;
                }
                for(set @i,0; @i < getarraysize( @bought_nameid ); set @i,@i+1)
                    getitem @bought_nameid[@i],@bought_quantity[@i];
                message strcharinfo(0),"Purchased "+getarraysize( @bought_nameid )+" Items.";
                mes "Thank you for shopping.";
            }
        }
    ClearData();
    close;
    }
    

     

  12. Hello Guys, can anyone spend a little time helping me figure this out, 

    [Warning]: Unexpected type for argument 1. Expected number.
    [Debug]: Data: nothing (nil)
    [Debug]: Function: jump_zero
    [Debug]: Source (NPC): Custom Quest 1 at belagio (106,73)

    any help given is much appreciated ^_^

×
×
  • Create New...