Jump to content
  • 0

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


Question

Posted

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] 				     ^

 

 

5 answers to this question

Recommended Posts

  • 0
Posted

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.

  • 0
Posted

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.

  • 0
Posted

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));

  • 0
Posted

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!!!!

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.



×
×
  • Create New...