Jump to content

iankirk

Members
  • Posts

    15
  • Joined

  • Last visited

Posts posted by iankirk

  1. 
    

    //Special message when trying to use strip on FCP [Jobbie]

             if( sd && skillid == ST_FULLSTRIP && tsc && tsc->data[SC_CP_WEAPON] && tsc->data[SC_CP_HELM] && tsc->data[SC_CP_ARMOR] && tsc->data[SC_CP_SHIELD] )

             {

                 clif_gospel_info(sd, 0x28);

                 break;

             }

    if ( sd && tsc && sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_ROGUE && rand()%100 < 15

                 &&

                ( skill_id == RG_STRIPWEAPON && tsc->data[SC_CP_WEAPON] ||

                skill_id == RG_STRIPSHIELD && tsc->data[SC_CP_SHIELD] ||

                skill_id == RG_STRIPARMOR && tsc->data[SC_CP_ARMOR] ||

                skill_id == RG_STRIPHELM && tsc->data[SC_CP_HELM] ) ) {

                int item_id = 7139; // Glistening Coat

                int ii;

                ARR_FIND( 0, MAX_INVENTORY, ii, sd->status.inventory[ii].nameid == item_id );

                if ( ii < MAX_INVENTORY ) {

                    pc_delitem( sd, ii, 1, 0, 0, LOG_TYPE_CONSUME);

                    switch ( skill_id ) {

                        case RG_STRIPWEAPON:

                            status_change_end( bl, SC_CP_WEAPON, INVALID_TIMER );

                            sc_start( bl, SC_STRIPWEAPON, 100, skill_lv, d );

                            break;

                        case RG_STRIPSHIELD:

                            status_change_end( bl, SC_CP_SHIELD, INVALID_TIMER );

                            sc_start( bl, SC_STRIPSHIELD, 100, skill_lv, d );

                            break;

                        case RG_STRIPARMOR:

                            status_change_end( bl, SC_CP_ARMOR, INVALID_TIMER );

                            sc_start( bl, SC_STRIPARMOR, 100, skill_lv, d );

                            break;

                        case RG_STRIPHELM:

                            status_change_end( bl, SC_CP_HELM, INVALID_TIMER );

                            sc_start( bl, SC_STRIPHELM, 100, skill_lv, d );

                            break;

                    }

                    clif_skill_nodamage( src, bl, skill_id, skill_lv, i );

                    break;

                }

            }

            //Attempts to strip at rate i and duration d

            if( (i = skill_strip_equip(bl, location, i, skilllv, d)) || skillid != ST_FULLSTRIP )

                clif_skill_nodamage(src,bl,skillid,skilllv,i); 

            //Nothing stripped.

            if( sd && !i )

                clif_skill_fail(sd,skillid,USESKILL_FAIL_LEVEL,0);

  2.  
    skill.c: In function âskill_castend_nodamage_idâ:
    skill.c:4587: error: âskill_idâ undeclared (first use in this function)
    skill.c:4587: error: (Each undeclared identifier is reported only once
    skill.c:4587: error: for each function it appears in.)
    skill.c:4599: error: âskill_lvâ undeclared (first use in this function)
    make[1]: *** [obj_sql/skill.o] Error 1
    make[1]: Leaving directory `/root/server/src/map'
    

    Here sir pat :((((


    Guys please help meeeeeeee

  3. I already tried sir,  Here.

     

     

    skill.c: In function âskill_castend_nodamage_idâ:
    skill.c:4587: error: âskill_idâ undeclared (first use in this function)
    skill.c:4587: error: (Each undeclared identifier is reported only once
    skill.c:4587: error: for each function it appears in.)
    skill.c:4599:78: error: macro "sc_start" passed 6 arguments, but takes just 5
    skill.c:4599: error: âsc_startâ undeclared (first use in this function)
    skill.c:4603:78: error: macro "sc_start" passed 6 arguments, but takes just 5
    skill.c:4607:77: error: macro "sc_start" passed 6 arguments, but takes just 5
    skill.c:4611:76: error: macro "sc_start" passed 6 arguments, but takes just 5
    skill.c:4614: error: âskill_lvâ undeclared (first use in this function)
    make[1]: *** [obj_sql/skill.o] Error 1
    make[1]: Leaving directory `/root/server/src/map'
    make: *** [map_sql] Error 2
    

     

  4. Can someone help me.

     

    I need a script for dice event / true or false using this arena : quiz_01

    quiz_01_zpsab0e21b5.png

     

    > not an automated event, only GMs can access and role the dice / control the game

    > the " RED BOX ON THE IMAGE " : once the player warped to enter the arena.. that red box only player can move. (kinda restriction area thing)

    > " YELLOW BOX ON THE IMAGE " : must the switches'located : once the GM started to ON the main switch " the 2 switches will appear and the players will select either on the left side or the right side. I need a main switch to control the event.

     

    Main switch :

    > control the 2 switches ( hide and unhide )

    > nuke the player either on the left side or right side once they lose the event

    > then after the nuke. all players left will be warped again back to red box to start another round.

     

    Please help me guys. Thanks in advance

×
×
  • Create New...