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.

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