No success/fail info

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
babun
Posts: 19
Joined: Sat Nov 06, 2010 1:03 pm

No success/fail info

Post by babun »

If you want to receive support we need this info to help you properly.
» Find Revision
L2J Revision Number:4425
L2JDP Revision Number:7669
Hi,
first of all i want to 10x to l2j devs for the job that they are doing.
My problem is that when character use any kind of debuff skill there is no info about success or fail of used skill.
I mean there is no way to know did your atack(debuf) is landed or no(only way is to see animation: stars when stun is successfull). If some one can help me it will be gread.

I dont think it is bug that is why i post here. May be is a little think but...
Edelvez
Posts: 173
Joined: Fri Nov 06, 2009 6:32 am
Location: Argentina

Re: No success/fail info

Post by Edelvez »

It is client side problem.. change the system
Someone once told me: "The easiest way of doing things, making them the hard way" ;)
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: No success/fail info

Post by jurchiks »

no it's not, it's calculated serverside, client only shows the appropriate animation.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
babun
Posts: 19
Joined: Sat Nov 06, 2010 1:03 pm

Re: No success/fail info

Post by babun »

jurchiks wrote:no it's not, it's calculated serverside, client only shows the appropriate animation.
yes show anymation and effect is done (when skill success) but no sign at all about success or fail.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: No success/fail info

Post by jurchiks »

data/scripts/handlers/skillhandlers/Disablers.java:

Code: Select all

case ROOT:                case DISARM:                case STUN:                {                    if (Formulas.calcSkillReflect(target, skill) == Formulas.SKILL_REFLECT_SUCCEED)                        target = activeChar;                                        if (Formulas.calcSkillSuccess(activeChar, target, skill, shld, ss, sps, bss))                        skill.getEffects(activeChar, target, new Env(shld, ss, sps, bss));                    else                    {                        if (activeChar instanceof L2PcInstance)                        {                            SystemMessage sm = new SystemMessage(SystemMessageId.C1_RESISTED_YOUR_S2);                            sm.addCharName(target);                            sm.addSkillName(skill);                            activeChar.sendPacket(sm);                        }                    }                    break;                }
As you can see, if the skill is resisted, a system message is sent to the player. It's pretty much the same for all debuffs.
But I can't find a success message anywhere...
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
babun
Posts: 19
Joined: Sat Nov 06, 2010 1:03 pm

Re: No success/fail info

Post by babun »

Can be easily made with success msg coz for me is a little bit not good to have message only for fail. Can be made a massage % for success landing skill/debuff?

P.S. i am not sure did i have to make other topic for % success landing skill/debuff, if have to pls tell i will made.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: No success/fail info

Post by jurchiks »

well, it should work like this:

Code: Select all

if (Formulas.calcSkillSuccess(activeChar, target, skill, shld, ss, sps, bss))                    {                        skill.getEffects(activeChar, target, new Env(shld, ss, sps, bss));                        SystemMessage sm = new SystemMessage(SystemMessageId.S1_SUCCEEDED);                        sm.addSkillName(skill);                        activeChar.sendPacket(sm);                    }                    else if (activeChar instanceof L2PcInstance)                    {                        SystemMessage sm = new SystemMessage(SystemMessageId.C1_RESISTED_YOUR_S2);                        sm.addCharName(target);                        sm.addSkillName(skill);                        activeChar.sendPacket(sm);                    } 
Edit: dunno what you mean by that % success...
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
Natla
Posts: 26
Joined: Thu Nov 11, 2010 12:46 am
Location: Venezuela

Re: No success/fail info

Post by Natla »

hummm maybe he wants a colored system? :oops:
Edelvez
Posts: 173
Joined: Fri Nov 06, 2009 6:32 am
Location: Argentina

Re: No success/fail info

Post by Edelvez »

Natla wrote:hummm maybe he wants a colored system? :oops:
Client side
Someone once told me: "The easiest way of doing things, making them the hard way" ;)
babun
Posts: 19
Joined: Sat Nov 06, 2010 1:03 pm

Re: No success/fail info

Post by babun »

jurchiks wrote: Edit: dunno what you mean by that % success...
I have seen that on some russion servers. There is shown your chance of landing skill/debuff.
I cant remember exactly but there is writen something like this:
You use stun
Stun chance 95%
Stun failed
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: No success/fail info

Post by jurchiks »

meh, I won't bother with that.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: No success/fail info

Post by _DS_ »

Use .debug voice command (enabled in l2jmods) or //debug admin command. Require some knowledge.
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
Post Reply