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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...