Jump to content

Gidz Cross

Members
  • Posts

    646
  • Joined

  • Last visited

  • Days Won

    9

Posts posted by Gidz Cross

  1. 23 hours ago, Litro Endemic said:

    the dummy shops in the bottom parts of script, move it to first line...

    // Dummy shop data -- copy as needed.
    //============================================================
    -	shop	qshop1	-1,909:-1
    -	shop	qshop2	-1,909:-1
    -	shop	qshop3	-1,909:-1
    -	shop	qshop4	-1,909:-1
    -	shop	qshop5	-1,909:-1

    I suppose you have faced with the situation where when you reloadnpcfile the shop is only have jellopy in it?, that because reloadscript and reloadnpcfile is different, reloadnpcfile, is applying script from start to end, reloadscript is from end to start (I think I have seen annieruru or someone else said this somewhere), so with reloadscript the dummy shops have been there for core quest shop script to manage the shop entry, but not the case with reloadnpcfile, the shop is not there in server memory yet because it was unloaded, this is under my assumption of how the src code do it work wit (re)load-ing the script and what I have tried and it worked for me.

    Makes a lot of sense. Thank you so much for the enlightenment.

  2. On 7/12/2022 at 5:16 PM, kalabasa said:

    can someone make it not to consume glistening coat if the enemy does not have FCP?

    Mine is working 100%. I use @Bringer's

      

    On 11/13/2019 at 10:02 AM, Bringer said:

    image.thumb.png.3708e1b48fca42a6e3b96db598ac56fa.png

    Here mine Working 100% Helm not included

    Stalker SL + 2 Wickebine Even on Metaling Card + Auto Attack Only Weapon Strip

     

    		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;
    				}
    			}

     

     

  3. Map Information w/ Visuals


    Heya rA folks! Today i bring you this awesome function that imitates MapInfo for 2020+ clients. This is for 2018 clients and below.

    Just install the script and merge the files to your main grf and viola! Also, if you dont want the cutins version i made text version as well. Just set .@cutinmode into 0.

    PSD file Included.

    ENJOY!!!

     

    P.S. I'm not good at graphic designs but this will do. ?


    • Submitter
    • Submitted
      07/18/2022
    • Category
    • Video
    • Content Author
      Gidz

     

    • Upvote 1
    • MVP 1
  4. On 7/15/2022 at 3:01 PM, gaurav787 said:

    Hi

     

    Can someone help me fix this? below is the code

    mes "[ Costume Gacha ]";
    mes "<ITEM>"+getitemname(602)+"<INFO>602</INFO></ITEM>";

    the name goes in corner of message box and also name is displayed doubled.

    how can we fix this?

    EXE DATE : 2015
     

    Thanks

    Capture.PNG

    There are workaround in 2015 clients. But yeah. I wont display properly on your client version. You can just edit the mes info. i would do it this way

    	mes "<ITEM>"+getitemname(602)+"<INFO>602</INFO></ITEM>";
    	mes " ";
    	mes "Click the link above to see the description of Butterfly Wing";
    	end;

     

  5. On 7/18/2022 at 2:14 PM, GM Winter said:

    hello every one i would like to ask for help regarding this Training Ground Barricade script in my last server it works fine now im trying to make a new one and it has an error now . this error appears

    "[Error]: npc_event: event not found [Barricade::Oncommand]" 

    heres the script:

     

    thanks in advance

    Replace Oncommand to OnCommand.

    • Upvote 1
  6. Heya. Is it possible to have toggle menus using switch select? If so how can i do this properly.

    switch(select("Case 1:Case 2:if(CASE == 0) [^33CC33ON^000000] Case 3 else [^33CC33OFF^000000] Case 3")){
    Case 1:
    	mes "Case 1 Works";
    Case 2:
    	mes "Case 2 Works";
    Case 3:
    	if(!CASE) {
    		CASE = 1;
    		mes "You have turned OFF Case 3";
    		end;
    	} else {
    		CASE = 0;
    		mes "You have turned ON Case 3";
    		end;

     

  7. On 7/5/2022 at 3:41 PM, Yuna said:

    Actually it should be possible. I've seen some one do it. Take a look.
    They made the effect remain after picking up the item.

     

    Well this is itemdrop effect v2 (used by 2020 clients+) The one you posted is the initial release of the drop item effect which is HIGHLIGTING effect. They behave differently.

  8. 6 minutes ago, Yuna said:

    Hello,
    I want the pillar effect to remain when you leave the area where the item is dropped and come back. Atm the effect stops once you leave the area.
    Also, if the pillar effect can remain once you pick up the item. So when you drop the item on the floor again the effect will still be there.  I'm hoping this can be achieved through editing SRC.
    Any help would be appreciated, thank you!
    image.png.0c45507349c39c1a069911158003a627.png

    I think its not possible. Not unless you made it permanent effect when its drop.

  9. 14 hours ago, Echoes said:

    Hello,

    I'm creating a test server for test purposes but I fear the newer clients don't allow Custom Jobs according to http://nemo.herc.ws/patches/EnableCustomJobs/.

    Sadly, the custom job-able clients are not available to download according to such page, so I would like to ask:

    What happens in new clients that they are not custom job-able? I would like to use an available, recent, and stable client but I'm afraid not being able to create some custom jobs I have in mind in the future with such client.

     

    Thank you

    You can try to use WARP. Successor for NEMO. They're allow custom jobs. WARP - A Successor to NEMO - Client Releases - rAthena

  10. 21 hours ago, cook1e said:

    I enabled the mapflag only in prontera and i can't use the token, but i can anywhere else.

    Everything is working as intended

    I have reverted back to once it was. Will try to rediff this mod again. But last time i checked. It doesnt work anywhere else when i have this diff.

    *EDIT

    yep. Still the same. If you have this diff. You cannot use token of siegfried anywhere else.

    *EDIT AGAIN

    It seems by putting { } fixes the problem.

    if(map_getmapflag(sd->bl.m, MF_NOTOKEN)) {
    	return false;
    }

     

  11. On 6/15/2022 at 2:48 AM, cook1e said:

    If you don't use the Roulette button, you can use the roulette as the config button, you can also change the roulette icon in your grf.

    go to src/map/clif.cpp

    Change
     

    void clif_roulette_open( struct map_session_data* sd ){
    	nullpo_retv( sd );
    
    	struct packet_roulette_open_ack p;
    
    	p.PacketType = 0xa1a;
    	p.Result = 0; // result
    	p.Serial = 0; // serial
    	p.Step = (sd->roulette.claimPrize) ? sd->roulette.stage - 1 : 0;
    	p.Idx = (sd->roulette.claimPrize) ? sd->roulette.prizeIdx : -1;
    	p.AdditionItemID = -1; //! TODO: Display bonus item
    	p.GoldPoint = sd->roulette_point.gold;
    	p.SilverPoint = sd->roulette_point.silver;
    	p.BronzePoint = sd->roulette_point.bronze;
    
    	sd->state.roulette_open = true;
    
    	clif_send( &p, sizeof( p ), &sd->bl, SELF );
    }

    to
     

    void clif_roulette_open( struct map_session_data* sd ){
    	nullpo_retv( sd );
    	npc_event_do_id("NPCNAME::OnLabel", sd->status.account_id);
    }


    and make a script like this, for example.

     

    -	script	NPCNAME	-1,{
    OnLabel:
    	mes "add whatever you want.";
    	end;
    }

     

    Do i need to diff the client to restore roulette? 

×
×
  • Create New...