Skip to content

Hello Guys!!Well Something wrong with an adaption i wanna make!!!

Featured Replies

Hello Members OF Mxc!!Well i wanna change a little bit of The Code i have in the link belowe!!!But i am newbie in java and trying my best!!!

 

http://maxcheaters.com/forum/index.php?topic=78071.0

 

I wroted the below One!!

 

switch(quakeSystem) {
        	case 1:
        		 Announcements.getInstance().announceToAll("" + this.getName()+ " is getting warm !");
			 this.sendPacket(new PlaySound(1, "prepare", 0, 0, 0, 0, 0));
			 this.useSkill(721);
        		 break;
        	case 5:
        		Announcements.getInstance().announceToAll("" + this.getName()+ " is on a KiLlinG SsPReEEeEeeeEEE!");
			this.sendPacket(new PlaySound(1, "killingspree", 0, 0, 0, 0, 0));
			this.useSkill(721);
        		break;
        	case 10:
and it keep goinh!! blabla!!

 

Thats my error.... Anyone Help Plz.. Thnx!! :P

 

D:\Alex\workspace\Spree_Sv\L2J_Server\java\com\l2jserver\gameserver\model\actor\instance\L2PcInstance.java:5684: cannot find symbol
    [javac] symbol  : method useSkill(int)
    [javac] location: class com.l2jserver.gameserver.model.actor.instance.L2PcInstance
    [javac] 				 this.useSkill(721);
    [javac] 				     ^

 

 

switch(quakeSystem) {
        	case 1:
        		 Announcements.getInstance().announceToAll("" + this.getName()+ " is getting warm !");
			 this.sendPacket(new PlaySound(1, "prepare", 0, 0, 0, 0, 0));
			 this.useSkill(721);
        		 break;
        	case 5:
        		Announcements.getInstance().announceToAll("" + this.getName()+ " is on a KiLlinG SsPReEEeEeeeEEE!");
			this.sendPacket(new PlaySound(1, "killingspree", 0, 0, 0, 0, 0));
			this.useSkill(721);
        		break;
        	case 10:

 

Try to replace "this.useSkill" to "useSkill". You have to search for the right method.

What is supposed to happen with your code ?

 

And this.useSkill or useSkill is the same so... The "721" isn't allowed, but basically it depends of what you want to do exactly... If once corrected the effect isn't the one you wanted, pointless to correct your error lol.

If you wanna make it like a buff when u're in killing spree and bla bla a buff will be added for xx time bla bla...

 

skill = SkillTable.getInstance().getInfo(721, 1);
        skill.getEffects(activeChar, activeChar);
        activeChar.broadcastPacket(new MagicSkillUser(activeChar, activeChar, skill.getId(), 1, skill.getHitTime(), 0));

  • Author

Well i wanna Make it like a effect.. For example... When he is on killing spree to strike him once with this effe and restore his hm/mp/cp in every strike ! Its anakims skill!!!!

  • Author

SO NO-ONE CAN HELP?????

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.