Some questions from a NooB..

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
kurtspirit
Posts: 411
Joined: Thu Mar 12, 2009 8:20 pm
Location: Toulouse, France

Some questions from a NooB..

Post by kurtspirit »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number: 3436
L2JDP Revision Number: 6542

Hi all,
i have some questions from players of my private server.. :
- Is it normally masterwork craft (Foundation) bonus doesn't works ? (for exemple,a player craft a Dynasty Mace,he have bonus of max HP but effect of bonus doesn't works..)
- Can i add enchant table for skills like Aura Symphony, Cancellation etc ?

And my questions now :
- I have spawn some custom mobs on 4th Sepulcher, with special drops etc. But i have a problem with lethal skill.. All player who have a class who can lethal two shots the mobs... So is it possible to doing something for mob resist lethal ??
- And the last about Baium.. On a recent datapack, it have the file baium.java .. So i replace the old of my serv by this new and now Baium stay Stone , and he's not on his good place.. Is it only a problem of myself or other have the same?? What's the solution ??

Thank you so much, sorry for multiple questions but i think it's better on one post , like that, no flood :) Thank's
kurtspirit
Posts: 411
Joined: Thu Mar 12, 2009 8:20 pm
Location: Toulouse, France

Re: Some questions from a NooB..

Post by kurtspirit »

Re.. So i try to make an enchant table for a skill , can you tell me if i'm right :

Code: Select all

<skill id="342" levels="1" name="Touch of Death">  <table name="#power"> 85 95 100 105 110 115 120 125 130 135 </table>  <set name="castRange" val="40"/>  <set name="effectRange" val="400"/>  <set name="hitTime" val="1800"/>  <set name="hpConsume" val="669"/>  <set name="isDebuff" val="true"/>  <set name="lvlDepend" val="1"/>  <set name="magicLvl" val="78"/>  <set name="maxNegated" val="5"/>  <set name="operateType" val="OP_ACTIVE"/>  <set name="power" val="80"/> <!-- Base Land Rate for DEBUFF -->  <set name="reuseDelay" val="150000"/>  <set name="skillType" val="DEBUFF"/>  <set name="target" val="TARGET_ONE"/>  <enchant1 name="power" val="#ench1Power"/>  <for>    <effect name="Debuff" time="120" val="0">      <mul order="0x30" stat="maxCp" val="0.1"/>      <mul order="0x30" stat="debuffVuln" val="1.3"/>      <mul order="0x30" stat="gainHp" val="0.7"/>    </effect>    <!-- effect name="Cancel" val="0" effectPower="25" effectType="CANCEL"/ TODO: Needs Core-Side Support -->  </for></skill>
Thank you
kurtspirit
Posts: 411
Joined: Thu Mar 12, 2009 8:20 pm
Location: Toulouse, France

Re: Some questions from a NooB..

Post by kurtspirit »

nobody have an idea for my problems ?? Thank you
User avatar
LiquidIce
Posts: 90
Joined: Wed Oct 18, 2006 4:17 pm
Location: Spain

Re: Some questions from a NooB..

Post by LiquidIce »

No you are missing code in those skills. Look up skills that u can enchant and imitate them, tweak them to ur taste and voilà.
When the rich wage war, its the poor who die.
kurtspirit
Posts: 411
Joined: Thu Mar 12, 2009 8:20 pm
Location: Toulouse, France

Re: Some questions from a NooB..

Post by kurtspirit »

ok thank you, i will try later but the most urgent is that :
I have spawn some custom mobs on 4th Sepulcher, with special drops etc. But i have a problem with lethal skill.. All player who have a class who can lethal two shots the mobs... So is it possible to doing something for mob resist lethal ??

If you can help me for doing that , it's will be great. Thank you for your support :)
User avatar
Copyleft
Posts: 253
Joined: Fri Feb 01, 2008 9:39 pm

Re: Some questions from a NooB..

Post by Copyleft »

kurtspirit wrote:ok thank you, i will try later but the most urgent is that :
I have spawn some custom mobs on 4th Sepulcher, with special drops etc. But i have a problem with lethal skill.. All player who have a class who can lethal two shots the mobs... So is it possible to doing something for mob resist lethal ??

If you can help me for doing that , it's will be great. Thank you for your support :)

http://www.l2jserver.com/old-forum/thre ... adid=32025
kurtspirit
Posts: 411
Joined: Thu Mar 12, 2009 8:20 pm
Location: Toulouse, France

Re: Some questions from a NooB..

Post by kurtspirit »

Great!! Excellent ! Thank you so much, ! Now , i'll try to doing the rest .. ^^
kurtspirit
Posts: 411
Joined: Thu Mar 12, 2009 8:20 pm
Location: Toulouse, France

Re: Some questions from a NooB..

Post by kurtspirit »

Timeb0mb wrote :
Open up net.sf.l2j.gameserver.skills.Formulas.java
Find this:
quote:
&& !(target instanceof L2DoorInstance)

under it, add this:
quote:
&& !(target instanceof L2NpcInstance && ((L2NpcInstance) target).getNpcId() == 666666)

Replacing the red color (the 666666) with the monster ID you do not want to be lethaled. Save it, compile it, and use it as the new /gameserver/l2jserver.jar
Now that mob you specified can't be lethaled! Yay!
Here the "actual code" of Formulas.java :

Code: Select all

    public static final boolean calcLethalHit(L2Character activeChar, L2Character target, L2Skill skill)    {        if (!target.isRaid()                && !(target instanceof L2DoorInstance)                && !(target instanceof L2Npc && ((L2Npc) target).getNpcId() == 35062))
I try this solution but it's not good, it make many error syntax java... Someone have try this for make mob resist lethal ?? Thank's
Edit :
The correct syntax is maybe that no? :
&& !(target instanceof L2Npc && ((L2Npc) target).getNpcId() == xxxxxxxx) like original code?? Thank's again
Post Reply