Jump to content
  • 0

[help] 100% enchant scroll


Kumo

Question

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

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

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.

Link to comment
Share on other sites

  • 0

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

Link to comment
Share on other sites

  • 0

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.

Link to comment
Share on other sites

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

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock