Skip to content

Forgotten Scroll skill

Featured Replies

In another order of things, i want to say something. How it is possible to felt buff when i open a fotgotten scroll to get skil? It is not possible to get Skill, without felt buff when i open the book to learn skill?

What i must edit for work property this thing?

Don't guess, just read code.

 

ItemSkills.java uses skill defined on xml. It's using player.useMagic(.. and what you want to do is player.addSkill(..

 

So, again, you have to create NEW ITEM HANDLER to handle your request.

  • Author

Well, i try to do this

http://eSaFFe8.jpg

i don't know if it's good. Tell me please if syntax is good configured and if it's in correct location placed.

 

No, it's wrong, so wrong. I told you that you need new handler.

 

Check scripts/handlers/itemhandlers for the structure. Then you add that handler to your item xml. 

use ctrl+z to undo this mess. or propably your items wont work at all and you just destroyed your server.

  • Author

Well, i ctrl+z all config. But in Scripts/Handler what pack i must edit? or i must add?

  • Author

Well, this is ItemSkill.java. What i must add here? player.addSkill()?

  • Author

OK, i open ItemSkill.java and i add this line.

Object player;
			player.addSkill(7041,1);

now, i don't know if it's good, here it is pic

http://ApaTgg6.jpg

Null check with code execution is always welcome. The same with brackets around the return =)

 

----

 

Man, for fack sake, can you read? Leave this Godamn ItemSkills.java alone! YOU HAVE TO CREATE NEW HANDLER AKA NEW FILE.

 

And why the heck you try to create new object?! Who told you that why you want to do so? Check existing files, God. 

  • Author

HOW I CAN CREATE NEW HANDLER? WHAT IMPORTS I NEED AND HOW I CAN CREATE :)))

  • Author

Ok, i create a new file MasterSkillsForgotten.java, Then? :D

  • Author

http://NCJQk0C.jpg

Then? What i must add? player.addSkill(7041,1) , This?

Edited by InFocus

Yea it will magically work..

 

One last time, open other handler, see how it's done and do the same. Use the same methods, you must have useItem method and such.. 

 

It's not hard just think. 

  • Author

It is not hard, but when i don't know, it is huge code for me

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.