Jump to content

GGG2020

Members
  • Posts

    16
  • Joined

  • Last visited

Posts posted by GGG2020

  1. On 3/27/2020 at 9:30 AM, Vale said:

    this must be in the Source Section but anyways, I am here to help

    Find in the skill.cpp

    
    //Special message when trying to use strip on FCP [Jobbie]
    		if( sd && skill_id == 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;
    		}

    Add this after:

    
    		if ( sd && tsc && sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_ROGUE && rand()%100 < 10
    			&&
    		( 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->inventory.u.items_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(NULL,bl,SC_STRIPWEAPON,100,skill_lv,skill_get_time(skill_id,skill_lv));
    					break;
    				case RG_STRIPSHIELD:
    						status_change_end( bl, SC_CP_SHIELD, INVALID_TIMER );
    						sc_start(NULL,bl,SC_STRIPSHIELD,100,skill_lv,skill_get_time(skill_id,skill_lv));
    						break;
    				case RG_STRIPARMOR:
    						status_change_end( bl, SC_CP_ARMOR, INVALID_TIMER );
    						sc_start(NULL,bl,SC_STRIPARMOR,100,skill_lv,skill_get_time(skill_id,skill_lv));
    						break;
    				case RG_STRIPHELM:
    						status_change_end( bl, SC_CP_HELM, INVALID_TIMER );
    						sc_start(NULL,bl,SC_STRIPHELM,100,skill_lv,skill_get_time(skill_id,skill_lv));
    					break;
    				}
    			clif_skill_nodamage( src, bl, skill_id, skill_lv, i );
    				break;
    				}
    			}

    Let me know If I got this correct ?

    there is a problem when compiling 

    uninitialized local variable 'i' used

    c4700 line 7714

     

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

  2. On 9/6/2013 at 12:16 AM, Patskie said:

    I mean the whole content of the file 

     

    Try this :

    
    if ( sd && tsc && sd->sc.data[SC_SPIRIT] && sd->sc.data[SC_SPIRIT]->val2 == SL_ROGUE && rand()%100 < 15
                 &&
                ( skillid == RG_STRIPWEAPON && tsc->data[SC_CP_WEAPON] ||
                skillid == RG_STRIPSHIELD && tsc->data[SC_CP_SHIELD] ||
                skillid == RG_STRIPARMOR && tsc->data[SC_CP_ARMOR] ||
                skillid == 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 ( skillid ) {
                        case RG_STRIPWEAPON:
                            status_change_end( bl, SC_CP_WEAPON, INVALID_TIMER );
                            sc_start( bl, SC_STRIPWEAPON, 100, skilllv, d );
                            break;
                        case RG_STRIPSHIELD:
                            status_change_end( bl, SC_CP_SHIELD, INVALID_TIMER );
                            sc_start( bl, SC_STRIPSHIELD, 100, skilllv, d );
                            break;
                        case RG_STRIPARMOR:
                            status_change_end( bl, SC_CP_ARMOR, INVALID_TIMER );
                            sc_start( bl, SC_STRIPARMOR, 100, skilllv, d );
                            break;
                        case RG_STRIPHELM:
                            status_change_end( bl, SC_CP_HELM, INVALID_TIMER );
                            sc_start( bl, SC_STRIPHELM, 100, skilllv, d );
                            break;
                    }
                    clif_skill_nodamage( src, bl, skillid, skilllv, i );
                    break;
                }
            }

    sir @Patskie i hope you don't mind. . can u please tell me where i exactly put this script to make this work?? 

     

  3. can any one help me to solve my problem. .

    i have seen a lot of script in this forum about single strip fcp bypass consuming 1 glistening coat when the caster is soul link

    but i dont know how to apply it. . all i can see is code but not tutorial how to apply it

    please send some images step by step how to do that. . thank you in advance

  4. 28 minutes ago, Emistry said:

    the error are pretty much self explained.

    you didnt load the SQL table that provided.

    sorry for being a noob. .i'm a newbie that is why i dont know how to do that. . if you don't mind can u please teach me how to do that one by one? thank you

  5. Hello Rathena. .

    i downloaded a script called rewardgiver by Sandbox. Credits to Sandbox

    the purpose of that script is to have an npc for the staff to give specific item to the event winner .

    the script works fine and good

    but when i access the npc and test the script my map server show this debug

    image.thumb.png.62e9757d86c75d55c1a414352953655a.png

     

    i read the instruction but i dont know where to put it and how. .

    image.thumb.png.d8e64bfcabfc881821dd9f8c1136cc16.png

     

    Please help mo to fix that error. . tia . . god bless all

     

     

     

     

  6. Hello everyone!

     ihave a script here . . but i want to disable command using this script if normal player are in  pvp and gvg map, this script works fine but the matter is i need to type all map of all pvp map and gvg map. . can anyone help me to make this script read the whole pvp and gvg map using a few code instead of typing all the pvp and gvg map one by one. .

    thanks in advace. . have a nice day . .Newbie here . . thank you ?

     

     

    OnQuest:
    setarray .Map$[0],"new_1-1","prtg_cas01";
    if(strcharinfo(3) == .Map$[0] || strcharinfo(3) == .Map$[1]){
      message strcharinfo(0),"This Command cannot be use in this Area!";
    end;
    }
    warp "prt_in",284,129;
    end;
     

×
×
  • Create New...