Jump to content
  • 0

Oboro/Kagerou Charms Dispel


Xellyehria

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   1
  • Joined:  10/19/16
  • Last Seen:  

Just a quick question. How can I dispel Kagerous and Oboro's charm buffs when they go inside PVP room?
I want to disable that skill in a map but they can still buff outside and enter with it.

Is it a type of status that I can remove through SC_end?

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  398
  • Reputation:   246
  • Joined:  07/04/19
  • Last Seen:  

23 hours ago, Xellyehria said:

Just a quick question. How can I dispel Kagerous and Oboro's charm buffs when they go inside PVP room?
I want to disable that skill in a map but they can still buff outside and enter with it.

Is it a type of status that I can remove through SC_end?

why dont you just disable it in the whole map then?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   1
  • Joined:  10/19/16
  • Last Seen:  

7 hours ago, BeWan said:

why dont you just disable it in the whole map then?

Because there's access on PVP room on different cities. Additionally there are different type of PVP room and in some type it is allowed. I don't mind if they buff it outside if it's for the rooms that allow it. Also it's not only for pvp room but for other instances that's why I am looking more for a way to just remove it on maps that they aren't supposed to be able to use it.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.01
  • Content Count:  398
  • Reputation:   246
  • Joined:  07/04/19
  • Last Seen:  

-	script	disablebuff	-1,{

OnPCLoadMapEvent:
getmapxy @map$,@x,@y,0;

if (@map$ == "guild_vs1" || @map$ == "guild_vs2")
{
	sc_end SC_KAHU_ENTEN;
	sc_end SC_HYOUHU_HUBUKI;
	sc_end SC_KAZEHU_SEIRAN;
	sc_end SC_DOHU_KOUKAI;
}
}

guild_vs1	mapflag	 loadevent
guild_vs2	mapflag	 loadevent

try this one.

  • Like 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   1
  • Joined:  10/19/16
  • Last Seen:  

On 1/13/2020 at 1:43 PM, BeWan said:

-	script	disablebuff	-1,{

OnPCLoadMapEvent:
getmapxy @map$,@x,@y,0;

if (@map$ == "guild_vs1" || @map$ == "guild_vs2")
{
	sc_end SC_KAHU_ENTEN;
	sc_end SC_HYOUHU_HUBUKI;
	sc_end SC_KAZEHU_SEIRAN;
	sc_end SC_DOHU_KOUKAI;
}
}

guild_vs1	mapflag	 loadevent
guild_vs2	mapflag	 loadevent

try this one.

doesn't work, no idea why ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  136
  • Reputation:   48
  • Joined:  06/18/12
  • Last Seen:  

Try changing 
 

getmapxy @map$,@x,@y,0;

to

 

getmapxy @map$,@x,@y,BL_PC;
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   1
  • Joined:  10/19/16
  • Last Seen:  

On 1/15/2020 at 2:23 AM, Gerzzie said:

Try changing 
 


getmapxy @map$,@x,@y,0;

to

 


getmapxy @map$,@x,@y,BL_PC;

unfortunately it doesn't work too.

I figured that the problem is the status. I check each status above using getstatus but the return is always 0 even after I used the charm skill. I also tried delspiritball but it only works on sura as their skill is probably not even a spirit ball. I think it's a spirit charm and I can't find any available script command to delete it. Honestly I only need to at least detect if that status active but whatever I try it doesn't work.

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  830
  • Reputation:   316
  • Joined:  02/11/19
  • Last Seen:  

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  22
  • Reputation:   1
  • Joined:  10/19/16
  • Last Seen:  

1 hour ago, Mael said:

the problem is they can cast it outside and there are multiple way to access different maps where I want it disabled, so even if I disable it in those map, unless it gets dispelled on map load, I can't completely disable it.  ?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   23
  • Joined:  01/06/13
  • Last Seen:  

I'm not super familiar with the skill. But upon looking it up, It's not an SC_STATUS. according to RMS it's a summoning skill. So it would spawn another "object" along with the character. I checked the doc folder and found this:

Quote
*unitexists <GID>;
   
  Checks if the given Game ID exists. Returns false if the object doesn't exist, or true if
  it does.
   
  ---------------------------------------
   
  *getunittype <GID>;
   
  Returns the type of object from the given Game ID. Returns -1 if the given GID does not
  exist.
   
  Return values:
  BL_PC - Character object
  BL_MOB - Monster object
  BL_PET - Pet object
  BL_HOM - Homunculus object
  BL_MER - Mercenary object
  BL_NPC - NPC object
  BL_ELEM - Elemental object

 

Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  25
  • Topics Per Day:  0.01
  • Content Count:  830
  • Reputation:   316
  • Joined:  02/11/19
  • Last Seen:  

46 minutes ago, Xellyehria said:

the problem is they can cast it outside and there are multiple way to access different maps where I want it disabled, so even if I disable it in those map, unless it gets dispelled on map load, I can't completely disable it.  ?

OnPCLoadMapEvent:
if( strcharinfo(3) == "mapname" && !getskilllv( <skillid> ) )
skill <skillid>,<level>,<param>;
end;
-	script	Sample	-1,{
OnInit:
set .map$,"guild_vs2";
setmapflag .map$,mf_loadevent;
end;

OnPCLoadMapEvent:
if( strcharinfo(3) == .map$ )
	while( .@i < 553 ){
		if(  .@i != SC_WEIGHT50 && .@i != SC_WEIGHT90 && .@i != SC_JAILED && .@i != SC_NOCHAT )
			sc_end .@i;
		set .@i,.@i + 1;
	}
end;
}

or disable any ability by killing the player before entering the map. ex:

prontera,150,160,5	script	jinuho	56,{
	mes "enter in pvp ?";
	next;
	if ( select( "Yes", "No" ) == 1 ) {
		percentheal -100,-100;	// kill the player => remove status
		warp "prontera",0,0;	// warp to your pvp map
		percentheal 100,100;	// heal
	}
	end;
}

https://rathena.org/board/topic/83398-dispell/

Edited by Mael
more info
  • Upvote 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...