Jump to content
  • 0

[help] 100% enchant scroll


Question

Posted

Hey guys, i've seen that scrolls on few l2off servers already (l2khaos, l2sublimity), so my question is:

 

How to make special scroll that will have 100% chance (all others the normal chance) ?

 

Any guide? :x

5 answers to this question

Recommended Posts

  • 0
Posted

Hook User/CItem::EnchantItem

There's 3 RandomDouble compares, for blessed enchant, normal.. and forgot the 3rd.

 

or ..make your own skill effect(CDB::RequestEnchantItem), manually update ItemInfo/SharedItemInfo, and send approriate packets.

  • 0
Posted

Hook User/CItem::EnchantItem

There's 3 RandomDouble compares, for blessed enchant, normal.. and forgot the 3rd.

 

or ..make your own skill effect(CDB::RequestEnchantItem), manually update ItemInfo/SharedItemInfo, and send approriate packets.

 

word :D

  • 0
Posted

You hook it thru viewing it in a dissassembler like IDA or olly.

 

Writing a hook to it in a dll.

 

 

Idea 2 would require you to write and extend skilldata lexer/tokens for new skilleffects of course.

while 1 would be finding ar egister with the itemobject, hooking and checking if itemid is .. your special scrolls and then skipping the cmp.

 

 

Seeing your massive lack of knowledge, i doubt youll succeed.

 

 

 

Perhaps a skill that summons an npc, and uses SetEnchantOfWeapon AI function.

would be more equivelant for you.

 

That'd be by raw AI.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..