Jump to content
  • 0

Cancel Npc Buffs On Around Castle Areas For Sieges


Question

Posted

I am having a tremendous time getting buffs canceled when you walk on castle areas.

 

I am trying to make it so 1 hour NPC/AIO buffs are dispelled when you enter castle areas and it is only retail spells that must be cast there.

 

Here is what I have, and I have tried a number of variations 

 

Any ideas?

Area Data

//Siege Dispel
area_begin name=[gludio_castle]	map_no = {19;21}	type=instant_skill	target=pc	skill_name=[area_cancel]	skill_prob=100	initial_delay = 1 default_status=on	range = {{-22615;104510;-4448;3551};{-13290;104564;-4448;3551};{-13313;116950;-4448;3551};{-22638;116896;-4448;3551}}	area_end
area_begin name=[dion_castle]	map_no = {20;22}	type=instant_skill	target=pc	skill_name=[area_cancel]	skill_prob=100	initial_delay = 1 default_status=on	range = {{26575;165240;-4642;4000};{17250;165186;-4642;4000};{17273;152800;-4642;4000};{26598;152854;-4642;4000}}	area_end


Skill Data

skill_begin	skill_name=[area_cancel]	skill_id=11031	level=1	operate_type=A1	magic_level=1	effect={{i_dispel_by_category;slot_buff;100}}	is_magic=0	mp_consume2=0	cast_range=-1	effective_range=-1	skill_hit_time=0	skill_cool_time=0	skill_hit_cancel_time=0	reuse_delay=0	attribute=attr_none	effect_point=0	target_type=self	affect_scope=single	affect_limit={0;0}	next_action=none	ride_state={@ride_none}	skill_end

3 answers to this question

Recommended Posts

  • 0
Posted

AdvExt64.

 

I have tried this lately which some what works, but it is not correct.

 

What this does, is that it seems to cancel just some buffs, perhaps 10 at a time, every 10 minutes. I want it to happen just once and for it to wipe everything upon entering the territory.

 

I am guessing that "operate_type=P" and "initial_delay = 1" is part of it.

 

 

skill_begin skill_name=[area_cancel] skill_id=11031 level=1 operate_type=P magic_level=1 effect={{i_dispel_by_category_count;24;slot_buff;100}} is_magic=0 mp_consume2=0 cast_range=-1 effective_range=-1 skill_hit_time=0 skill_cool_time=0 skill_hit_cancel_time=0 reuse_delay=0 attribute=attr_none effect_point=0 target_type=self affect_scope=single affect_limit={0;0} next_action=none ride_state={@ride_none} skill_end
 
 
//Siege Dispel
area_begin name=[gludio_castle] map_no = {19;21} type=instant_skill target=pc skill_name=[area_cancel] skill_prob=100 initial_delay = 1 default_status=on range = {{-22615;104510;-4448;3551};{-13290;104564;-4448;3551};{-13313;116950;-4448;3551};{-22638;116896;-4448;3551}} area_end
area_begin name=[dion_castle] map_no = {20;22} type=instant_skill target=pc skill_name=[area_cancel] skill_prob=100 initial_delay = 1 default_status=on range = {{26575;165240;-4642;4000};{17250;165186;-4642;4000};{17273;152800;-4642;4000};{26598;152854;-4642;4000}} area_end
  • 0
Posted (edited)

Firstly you can't do this - natively without some trickery.

 

Because no one anticipated the need for a skilleffect to cancel specific skills.

With one exception - there is a forgotten C4 effect called i_dispel_by_name not used in native c4 files.

 

Which calls CCreature::DispelByNames - which has 2 args, ccreature & a vector with wchar pointers.

one could try:

 

i_dispel_by_name;{name1;name2;name3;etcetc}

 

..but since you have no direct documentation, you gotta experiment.

 

Secondly:

 

Adding a skill that automaticly is cast by area ticking as a passive seems dumb idea.

Given that the area timer system is setup to cast skills listed per tick - and passives are designed to be constantly removed every tick and then readded based on the player passive skill list.

Conflict is bound to happen with a p skill approach.

 

 

...and adding a skill that dispel active abnormals based on ammount\chance\slot_type - and expecting it to magicly just dispel only a specific list of buffs you only have in your mind is very illogical and stupid.

Machines can't read your mind - you need to tell it specificly what to do.

Edited by mcbigmac

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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.



  • Posts

    • Dear friends, right now we are holding a grand competition with a prize fund of more than $ 1000 in our stores https://socnet.store , telegram store: https://socnet.shop and SMM panel: https://socnet.pro There are more than 50 prize places in our competition, each lucky person can take one of the places. Important condition: you must make a purchase at any time before June 1, 2025. The more purchases you make - the more chances you have to win the main prize in the community of $ 300! ➡ Our Online Shop: socnet.store  ➡ Our SMM-Boosting Panel: socnet.pro  ➡ Telegram Shop Bot: socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: 79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • Dear friends, right now we are holding a grand competition with a prize fund of more than $ 1000 in our stores https://socnet.store , telegram store: https://socnet.shop and SMM panel: https://socnet.pro There are more than 50 prize places in our competition, each lucky person can take one of the places. Important condition: you must make a purchase at any time before June 1, 2025. The more purchases you make - the more chances you have to win the main prize in the community of $ 300! ➡ Our Online Shop: socnet.store  ➡ Our SMM-Boosting Panel: socnet.pro  ➡ Telegram Shop Bot: socnet.shop  ➡ Telegram Support: https://t.me/solomon_bog  ➡ Telegram Channel: https://t.me/accsforyou_shop  ➡ Discord Support: @AllSocialNetworksShop  ➡ Discord Server: https://discord.gg/y9AStFFsrh  ➡ WhatsApp Support: 79051904467 ➡ WhatsApp Channel: https://whatsapp.com/channel/0029Vau0CMX002TGkD4uHa2n  ➡ Email Support: solomonbog@socnet.store 
    • REBORN ETERNAL IL x10 WTS  1gb 8e (a lot in stock) DR set +6 180e Frintezza+6 200e Zaken+6 200e AQ+6 200e You must go first or Pufa middleman service
    • There's many reasons why it would be more NO than YES : Using NCSoft assets is a death wish, they can lawyer any LU3/Unity if they wanted, since it's a plain steal of intellectual property. It's an hobby, as you said it, and it's not specially about money. Money is a way to filter idiots/resellers, nothing more. It's really about trying to replicate old content and optimize it which I find it fun. I just align with the basic idea than an emulator emulates. When you launch Project64 and SuperMario 64, you don't expect to get something more than 120 stars and Bowser boss in the end - which should have been L2J project to begin with Even if I played a lot with TESCS from Morrowind, back in time, it's not enough to handle current engines, and I'm too lazy to learn Unity/Unreal Engine. Moreover, it would mean buying assets. While doing it alone would be a fail, coupling to L2J / L2 community would still be shitty (since the majority is RU/BR) ; people is only about fame/glory/reselling shit on back of others. Opening to others, the project would be leaked day 1, rebranded and resold. MMO genre is basically dead, and that's not a reboot of any game (l2/wow classic :D) which will turn the tide. Regarding L2 or an remastered version of it, you can obviously blatantly copy-cat it (as Propnight did for Dead by daylight).   All frenchies aren't supposed to do Expedition 33 :).
    • 190euro until last month, don't miss it.
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock