Sign in to follow this  
madocter

Tool Quest item drop rate changer

6 posts in this topic

madocter    2

LINEAGE 2 QUEST DROP RATE CHANGER

Cvu4hH8.jpg

 

FOR WHAT DO YOU NEED THIS ? :
If you want increase quest item drop rate automatically , this program will be usefull ,
since to edit quest item drop rate you need edit ai.obj , find target random function ,
and taking in account that Lineage II (c4) have :
-305 quests.
-967 random functions related to quest item drop chance. (aprox value)
-650 npcs that gives one or more quest items. (aprox value)

Can be really weird task to adjust all quest drop rates of your server ,  and users just will ignore quets since usually them do not match with server rates , they probably level up 2 or 3 times before end quests of their level , and even if you increase quest reward probably doing a quest do not worth so L2 at least old chronicles ,  became just farm game .

---------------------------------------------------------


WHAT THIS PROGRAM DOES :
This program is able to scan all AI.obj NPC classes and determine the exact random function where each NPC decide to drop a quest item once he die.
Then it find the random function and replace constant numbers for a variable that user can understand and edit example :


class 1 medusa : warrior_agresive{

int 2_1_testimony_of_fate_medusa_ichor = 2;  //==
                       

int 100_50_test_of_the_war_spirit_hermodts_rib_bone = 50;  //>


EventHandler MY_DYING         

              i0 = gg::Rand( 100 );
              

          if( i0 > 100_50_test_of_the_war_spirit_hermodts_rib_bone)
              
          {
             
                  if( myself::OwnItemCount( c1, @hermodts_rib_bone ) == 0 )
                
              {

                  
              myself::GiveItem1( c1, @hermodts_rib_bone, 1 );
              }
              }

}


EXAPLANATION :

int 100_50_test_of_the_war_spirit_hermodts_rib_bone = 50;  //>   //This is the parameter , a variable number that can be easily edited

-int = integer value .
-100_50 represent the original values of the random function example : "i0 = gg::Rand( 100 );"  and "if( i0 > 100_50_test_of_the_war_spirit_hermodts_rib_bone)"  , originally was : "i0 = gg::Rand( 100 );"  ,  "if( i0 > 50)" .
-"//>" means the kind of condition in this case > that means MAJOR THAN so : if number between 1-100 , is major than 50 it will drop quest item.
-If we want increase rate we should lower the parameter and change 50 for 40  result will be 60% instead of 50% , math  formula : 100-(40/100)*100) = chance , be sure of undersand the kind of condition before edit a parameter , the parameter value do not represent its percent ...

 

i0 = gg::Rand( 100 );      // variable i0 = random number between 0 and 100

if( i0 > 100_50_test_of_the_war_spirit_hermodts_rib_bone)        // if 0-100 variable number  Major than 50 , user will receive item : @hermodts_rib_bone,

--------------------------------------------------------

CHRONICLE COMPATIBILITY:

C4 : Working and tested

INTERLUDE : AI (vanganth) : Working . But need decompile with decompiler modified for c6 (inside vanganth pack)

INTERLUDE : AI (depmax)  : The same than IL vanganth and if you compiled with depmax compiler , need setup it as compiler/decompiler on program

GF : AI vanganth : would need setup vanganth GF decompiler

GF : AI (depmax) : would need setup depmax H5/GF decompiler

H5 : AI (depmax) : would need setup depmax H5/GF decompiler
 

-----------------------------------------------------------------------------------------------

TO WORK WITH  GF / HF  of vanganth/depmax:

At GUI interface just setup COMPILER / DECOMPILER path for ones thats work with the chronicle and extender that you need.
But probably if you use other compiler/decompiler than default (c4) , the predefined commands that the program uses will not works if the compiler is different , so you need to replace default compiler parameters on config file of the program (there is not graphic interface for this)

This is advanced config parameters that you can change at config.ini

compile_parameter$NASC.exe -file    //For vanganth compiler it may "NC.exe -target "   *Important add the space too

decompile_parameter$denasc.exe -f   //For depmax compiler it may "DECOMPILE.bat -file "

nasc_rand$gg::Rand                  //For depmax compiler is "Rand"

nasc_dot$::                         //For depmax compiler is "."  //single dot


Those are the output text strings that the compiler gives after some error , or on sucess compile , if you using other compiler than default , run compiler manually , and check what output it gives when sucess and when error , and edit config.ini

compiler_error_message$ID Error

compiler_ok_message$Done in


---------------------------------------------------------

INSTRUCTIONS :

SETUP:
-OPEN SELECT AI FILE : click here to select the target ai.obj file  , it can be ai.obj (but in ASCII format , you can change format with notepad ) , or directly with already decompiled ai.nasc file
-DECOMPILER : Select decompiler program path
-Compiler : select compiler program path

BUILD AI MODES:
-MERGE RESULT WITH CURRENT AI : This method will process ai file , modify the ai classes that meets the conditions , compile them  , and finally will ask you to select ai.obj file (not decompiled) to replace original classes for modified ones. If some nasc class have compiler error , program will not merge it.
-BUILD NEW FULL AI.OBJ : This method will process ai file , modify the ai classes that meets the conditions , compile them , and build new ai.obj file from 0  (this method is not recommended because many of AI files can give errors during compile even if program do not modify them like : queen_ant , valakas , etc... and it would need to check all compiler errors and a lot of manual work , before have full working ai

PARAMETER MODES:
-PARAMETER PER CLASS : This mode will add drop item parameters on each npc class that have quest example :
class 1 medusa{
int 100_3 quest_medusa_1 = 33;
}
-DEFAULT NPC PARAMETERS : This mode will store all parameters on a file , then you must copy all parameters on default npc ,it may overload a npc.exe since quest parameters amount can be like 600-800 , and setup 600-800 parameters on all npc that descent from default npc ... , but it would be easier to edit manually when needed since all parameters are on a single class
-REPLACE PARAMETERS : This method will not setup parameters , just will replace old values for new ones acording to the multiplier , and conditions you setup. (I recomend run this mode , if you want to parse ai.obj more than one time , since once you add parameters on ai.obj you couldn't not parse again with this program)

QUEST DROP ITM RATES:
-RATE MULTIPLIER : On this field you setup the multiplier , default x3 so : int 100_3 quest_medusa_1 = 3;  ----> (3/100 * 100 = 3%)   We multiply the rate -------> (3*multiplier / 100 *100 = 9%)   -----> parameter value int 100_3 quest_medusa_1 = 30;
-RATE PERCENT TRIGGER : Here you must setup the minimum rate percent where program should apply multiplier , by default 15% so program will only multiply rates below 15% chance.
-MAX RATE PERCENT : Is needed because program may multiply rate value , if new chance value more than MAX RATE PERCENT , new chance will be adjusted to MAX RATE PERCENT.

MISC OPTIONS :
-SHOW CONSOLE : Check this , if you want see all compiler output (it will slow down the program)
-QUICK TEST : This is very interesting feature , check this if you dont want to compile , just generate a parsed ai file without compile it , so you can see all changes that the program does to ai , on nasc format that is readable for humans :)

 

 

 

Edited by madocter
  • Upvote 2

Share this post


Link to post
Share on other sites

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.



  • Similar Content

    • By AyoAlmighty
      Hello!
       
      Server L2Drugs(new Dragon) x50
      WTS Adena 1b - 0.7e
       
       
       
      Server L2Classic.ws x20

      WTS ADENA  4e - 100kk (16zł PL)  (last 2b left)
      Cardinal 76lvl
      Sagittarius A grade EQ
       
       
       

       
      For every purchase  some bonuses!!!
      Connact: Skype - xdonalfonso
      Paypall // Allegro
       
       
      To all scammers:
      Dont try to trick me on fake statements, im too old for that
    • By QuaQ
      Hey brothers,
      recruiting one CP to my clan on https://www.lineage2.cz/en/portal/home/   16x IL L2off
      Server is up 50 days, VOTE systém started, 2000+- online in peak hours and new ppl still comming.
      I will give acc for SWS/BD/WC  78 lvl to CPL for fast and easy exp. You can exp from lvl 1 with 80 lvl char.
      I need one high skilled CP because of enemy zergs :)
      With best regards,
      uNiquii
      My video:
       
       
    • By LineageTeardrop
      Hello,
       
      Im starting next server with Gracia Final. And I want set here Rebirth system. Is here any1 who can sent me the files?
       
      Thank You.
    • By Jamba

      Updates
       
      Fix Mana potion Cutting action
      Fix Focus shinning _bow
      Fix Html npc buffer fore Fixada and black
      Fix CP Potion delay
      Fix Quick healing delay
      Fix Zaken %Stun
      Fix Antharas %Stun
      Fix Titanium no drop
      Fix weight all class pasive
      Fix Quest sub 100%
      Fix Dusk Sword Grad S
      Fix Duration time -rand (1000) + rand(150)/100 != 0 Item Mulruk Succubus
      Fix Sleep delay
      Fix Quest nobless 100%
      Fix Spawn barakiel 4hor
      Fix Judge of Splendor -rand (1000) + rand(210)/200 != 0
      Fix Blessed Clan Hoause Time 0.2
      Fix Blessed Castle Time 0.2
      Fix Greater Healing Potion 100% Regeneration
      Fix Zaken saints necropolis
      Fix debuff, buffer character with party
      Many do not remember anymore

      Quest
       
      Tested
       
      Nobless 100%
      Sub 100%
      Baium 100%
      Valakas 100%
      Antharas 100%
      Pet 100%
       
      Credits 60% Script  coep   C++ code   Protection   I do not know, my extender  no have    Skill Sets passive skill   Custom SetTitanium  SetKanion Coins Buffer Item Dusk Shield Weapons Epic   NPCs   Costumable Weapons Armor Custom-NPC Buffer html fix return 2 Hor buffer GK Global  Dye Mob Dual aiox Gate Class   Drop All raid boss coin Event medal   Spawn npc All town    Event Coliseum  Event custom raid boss teleport giram, no 100% editing   Ai.obj 5% Cleaning   Bugs Reported Raid boss = Locks 2 second  Geodata-nextDev no 100% Skill Fades away restart cached   Duration edition
      1 year 6 months
       
      Video, Balancing no 100%  
       
       
       
      Prints
       
       
       
       

       
       
      Load in windows 2003,2008,7,8,10    No virus Download Servidor    UPDATE 2017/3/27 https://www.4shared.com/rar/2R-U8hB9ei/Updates2.html   UPDATE 2017/3/28 https://www.4shared.com/rar/v8fYi8zaei/Updates3.html?   UPDATE 2017/4/3 https://www.4shared.com/rar/whdSyVYZca/Updates4.html?                                                                                                                   Coming soon +                                                                                                                         :mellow:   Download Patch   Geodata Next dev      ::)     Free
      If you want to help donator paypal jmbx64@gmail.com
    • By Hokaida
      League of legends Password Changer | Ver 2.0 | 
      Only Unverified accounts
      Features
      Fast work with Proxy - Up to 25 accounts per minute
      Can for witout proxy - 1 Thread only
      No Passes
      No Crash
       Captcha Bypass
      Anti-Captcha
      RuCaptcha
      Will add more - send me anti captcha services what you need.
      Support ALL Regions
      Supported proxy
      Http/S
      Socks4
      Socks5

       
      Version 2.0 Update
      Added English version
      Added  Captcha Bypass
      Increase timeouts
      https://i.imgur.com/CgYeeoM.png

      https://www.sendspace.com/file/hjilf3
  • Posts

  • Topics