Jump to content
  • 0

Celestial Shield


Question

Posted (edited)

Hello guys. I need help to change the effect of celestial shield skills. I want to allow use of mana/hp pots and heal skills on the target being affect by the skill.

 

Thank you in advance!

Edited by tiguz

8 answers to this question

Recommended Posts

  • 0
Posted (edited)

he want the second one when a player has celestial shield to use mana potion

all this thing is about cardinals when they using celestial shield they cannot use mana potions

you are spamming the potion but nothing happens until celestial shield ends.

 

Then it's easy....

 

data\scripts\handlers\effecthandlers\ManaHeal.java

 

 

 

L2Character target = info.getEffected();

-  if ((target == null) || target.isDead() || target.isDoor() || target.isInvul())

+  if ((target == null) || target.isDead() || target.isDoor())

  {

   return;

  }

+  if (target.isInvul())

 + {

+   if (info.getSkill() != null)

+   {

+    if (info.getSkill().getId() != 10001) //Mana potion skill ID

+    {

+     return;

+    }

+   }

+    else

+   {

+    return;

+   }

+  }

  double amount = _power;

...

...

...

 

 

Edited by Solomun
  • 0
Posted

Can u define what exactly you want with more details? There are 2 scenarios here.

 

1) When a player use mana potion while he is under Celestial Shield effect, effect doesn't stop.

2) When a player has Celestial Shield certification and use mana potion, the potion gives him mana.

 

Can u let us know which one of this you wanna do? :P

  • 0
Posted

Can u define what exactly you want with more details? There are 2 scenarios here.

 

1) When a player use mana potion while he is under Celestial Shield effect, effect doesn't stop.

2) When a player has Celestial Shield certification and use mana potion, the potion gives him mana.

 

Can u let us know which one of this you wanna do? :P

 

he want the second one when a player has celestial shield to use mana potion

all this thing is about cardinals when they using celestial shield they cannot use mana potions

you are spamming the potion but nothing happens until celestial shield ends.

  • 0
Posted (edited)

Yes, when in pvp the cardinals cannot use mana pots if they have celestial shueld on, so they run out of mana in 2 secs =P

Also for olympiad, when you use celestial skill or augment, it doesnt let you heal, cause it blocks everything, and I want to allow healing skills and potions through celestial shield.

 

Well in l2jfrozen interlude its a bit different the code:

L2Character target = null;
 
for (final L2Object target2 : targets)
{
target = (L2Character) target2;
 
 if ((target == null) || target.isDead() || target.isDoor() || target.isInvul())
continue;
 
*So i just removed target.isInvul()) 
Lets see if it will work.
 
Edit: Well, its working just by removing  target.isInvul()). I didnt add anything of the code you gave me, I just removed that part. Is it ok or I need to actually add the code? I did the same with Heal.java and now I can heal myself over celestial shield.
Edited by tiguz
  • 0
Posted (edited)

 

Yes, when in pvp the cardinals cannot use mana pots if they have celestial shueld on, so they run out of mana in 2 secs =P

Also for olympiad, when you use celestial skill or augment, it doesnt let you heal, cause it blocks everything, and I want to allow healing skills and potions through celestial shield.

 

Well in l2jfrozen interlude its a bit different the code:

L2Character target = null;
 
for (final L2Object target2 : targets)
{
target = (L2Character) target2;
 
 if ((target == null) || target.isDead() || target.isDoor() || target.isInvul())
continue;
 
*So i just removed target.isInvul()) 
Lets see if it will work.
 
Edit: Well, its working just by removing  target.isInvul()). I didnt add anything of the code you gave me, I just removed that part. Is it ok or I need to actually add the code? I did the same with Heal.java and now I can heal myself over celestial shield.

 

I would suggest you to add my code, at least for ManaHeal. Just to isolate mana potion usage...

 

EDIT: Good job on Heal too, i didn't see you are looking to do the same for heal. I focused more on what @Celestine said :)

Edited by Solomun
Guest
This topic is now closed to further replies.


  • Posts

    • https://file.kiwi/85ded214#HP0EQ54upx_76JaA90zfOQ    
    • No complicated KYC, instant setup after purchase!  Boost your connection speed and secure your privacy today!  Official Website: https://novproxy.com?kwd=tt-max
    • Passa o conhecimento mano, só mercenários no mundo do l2.
    • I participate in "forum deal" in role middleman. I will advertise free your product with discounted from your "street store" on different forums. I know these forum addresses,i can post your advertisement on different forums.   Street store must be licensed(i will check license through website),store must pay taxes(i will check payment taxes through tax service website). Please note:seller(you) will decide "will like" to buyer or "not will like" total discount(total discount is price your product with discounted  plus my percentage above). Seller(you) decides what will be my percentage .   If you need free advertising,please write me in messenger for contact who are you by nationality and in which country you live. If you owner street store or you employee street store i will advertise free your product from your street store on different forums.   Country Location:i accept all countries except Ukraine. I will not conduct deals with buyers and sellers from Ukraine. I do not cooperate with country Ukraine. If you Ukrainian by nationality or live in Ukraine,ignore this topic.   Shoes,clothing,furniture,bags,televisions,music centers,telephones,laptops,tablets,refrigerators,washing machines,microwaves,fans.   Advertising process. Buyer sees product with discounted. To buyer likes price. Buyer pays my percentage on to payment details guarantor on forum,seller decides what will be my percentage. Buyer and seller through me decide what will be deadline in days for forum transaction(i will either receive money in specified deadline or i won't receive money).   Guarantor on forum notifies me that buyer paid money to payment details guarantor. I'm sending in "forum deal" address "street store" which ready to sell product with discount to buyer. Buyer arrives on given address,enters in street store,finds employee(seller) and asks "in stock?" this product with discount. If this product in stock employee(seller) shows buyer this product,which buyer saw on forum with discount. Buyer inspects product and if to buyer like product,buyer pays money seller and receives receipt for purchase. If buyer product doesn't like,buyer product doesn't purchase,according to clause in "forum questionnaire" seller must register on forum and write in "forum deal" that buyer has declined refused to purchase this product. Guarantor will return money to buyer(in full amount). If you in role seller don't want to register on forum,then advertising won't be(from me) on different forums. How it will be possible to prove that exactly this buyer,exactly from forum,on which this buyer saw my advertising topic,successfully purchased product. When buyer pays my percentage to guarantor on payment details guarantor,buyer writes to guarantor in private message "code word". When buyer meets with seller in store,buyer informs seller exactly same "code word". Then seller registers on forum and sends to guarantor in private message this "code word"(seller will have such right according to clause in "forum questionnaire"). Guarantor confirms to seller that "code word" is correct. If buyer purchases product,but buyer messages in "forum deal" that he not buy this product(buyer is lying in "forum deal"),then according to clause in "forum questionnaire" seller is connected to "forum deal"(i'll let you know via messenger when you need to connect to "forum deal"). Seller sends in "forum deal" "code word" and sends in "forum deal" screenshot receipt about successful sale product(seller will have such right according to clause "forum questionnaire"). On based "code word" and screenshot receipt about successful sale product guarantor makes decision:send money to middleman or return money to buyer.
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..