Advertisement
imk0tter

Untitled

Feb 8th, 2024
1,577
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
mIRC 4.97 KB | None | 0 0
  1.  
  2. ;;;;;;;;;;;;;;;;;;;
  3. ; FOR DIABLO DEMO ;
  4. ;;;;;;;;;;;;;;;;;;;
  5. alias D2_EXP_TO_GOLD {
  6.   ;$1 = Player Level
  7.   ;$2 = Monster Level
  8.   ;$3 = Monster Count Start
  9.   ;$4 = Monster Count Interval
  10.   ;$5 = Goldfind Multiplier (% BASED)
  11.   ;$6 = Minimum Gold Tick (% BASED)
  12.   ;$7 = % DAMAGE DONE
  13.  
  14.   var %MINIMUM_GOLD_TICK $$6
  15.   var %PLAYER_LEVEL $1
  16.   var %MONSTER_LEVEL $2
  17.   var %MONSTER_COUNT_START $3
  18.   var %MONSTER_COUNT_INTERVAL $4
  19.   var %GOLDFIND_MULTIPLIER $5
  20.  
  21.   var %tiers 12
  22.  
  23.   var %multiplier $iif($7,$calc($7 / 100),1)
  24.  
  25.   var %diablo_gold $DIABLO_PLEVEL_AND_MLEVEL_TO_EXP_NEWISH(%PLAYER_LEVEL,%MONSTER_LEVEL,1,%MONSTER_COUNT_INTERVAL) * %multiplier
  26.  
  27.   echo -a KILLS PER LEVEL: $calc($diablo_level_to_gold(%PLAYER_LEVEL) / %diablo_gold2)
  28.  
  29.   ;echo -a MULTIPLIER: $CALCULATE_MULTIPLIER(%PLAYER_LEVEL, %MONSTER_LEVEL, %MONSTER_COUNT_START, %MONSTER_COUNT_INTERVAL)
  30.   return $TRIM($calc($calc((%diablo_gold * ($limit(%GOLDFIND_MULTIPLIER,0,100) / 100) * ($limit(%GOLDFIND_MULTIPLIER,100,$calc(%GOLDFIND_MULTIPLIER + 100)) / 100)) * (100 / %MINIMUM_GOLD_TICK)))))
  31.  
  32.   ;return $TRIM($calc((2 ^ (%MONSTER_LEVEL / %tiers - 1) * ($limit(%GOLDFIND_MULTIPLIER,0,100) / 100) * 2 ^ ($limit(%GOLDFIND_MULTIPLIER,100,$calc(%GOLDFIND_MULTIPLIER + 100)) / 100)) * (100 / %MINIMUM_GOLD_TICK)))
  33.  
  34.   ;return $calc(2 ^ ($DIABLO_PLEVEL_AND_MLEVEL_TO_EXP_NEW($1,$2,$3,$4) / 12 + ($5 / 100 - 1)))
  35. }
  36. alias DIABLO_D2_CRAFT_COST {
  37.   ;$1 = Item Level
  38.   ;$2 = Minimum Gold Tick (% BASED)
  39.   return $calc(2 ^ $1 * (100 / $2))
  40. }
  41. alias DIABLO_EXP_TO_D2_GOLD {
  42.   ;$1 = Player Level
  43.   ;$2 = Monster Level
  44.   ;$3 = Monster Count Start
  45.   ;$4 = Monster Count Interval
  46.   ;$5 = Goldfind Multiplier (% BASED)
  47.   ;$6 = Minimum Gold Tick (% BASED)
  48.   ;$7 = % DAMAGE DONE
  49.  
  50.   var %DAMAGE_DONE_PERCENT $$7
  51.   var %MINIMUM_GOLD_TICK $$6
  52.   var %PLAYER_LEVEL $1
  53.   var %MONSTER_LEVEL $2
  54.   var %MONSTER_COUNT_START $3
  55.   var %MONSTER_COUNT_INTERVAL $4
  56.   var %GOLDFIND_MULTIPLIER $5
  57.  
  58.   var %tiers 12
  59.  
  60.   var %multiplier $calc($LIMIT($7,0,100) / 100)
  61.  
  62.   var %diablo_gold $DIABLO_PLEVEL_AND_MLEVEL_TO_EXP_NEW(%PLAYER_LEVEL,%MONSTER_LEVEL,1,%MONSTER_COUNT_INTERVAL) * %multiplier
  63.   var %diablo_gold2 $DIABLO_PLEVEL_AND_MLEVEL_TO_EXP_NEW(%PLAYER_LEVEL,%MONSTER_LEVEL,%MONSTER_COUNT_START,%MONSTER_COUNT_INTERVAL) * %multiplier
  64.  
  65.   echo -a RATIO: $calc(%diablo_gold / %diablo_gold2)
  66.   echo -a KILLS PER LEVEL: $calc(($1 + 1) / %diablO_gold2)
  67.  
  68.   ;echo -a MULTIPLIER: $CALCULATE_MULTIPLIER(%PLAYER_LEVEL, %MONSTER_LEVEL, %MONSTER_COUNT_START, %MONSTER_COUNT_INTERVAL)
  69.   return $TRIM($calc($calc(((2 ^ ((%diablo_gold - 1) / %tiers - 1) * ($limit(%GOLDFIND_MULTIPLIER,0,100) / 100) * 2 ^ ($limit(%GOLDFIND_MULTIPLIER,100,$calc(%GOLDFIND_MULTIPLIER + 100)) / 100)) * (100 / %MINIMUM_GOLD_TICK))) / (%diablo_gold / %diablo_gold2)))
  70.  
  71.   ;return $TRIM($calc((2 ^ (%MONSTER_LEVEL / %tiers - 1) * ($limit(%GOLDFIND_MULTIPLIER,0,100) / 100) * 2 ^ ($limit(%GOLDFIND_MULTIPLIER,100,$calc(%GOLDFIND_MULTIPLIER + 100)) / 100)) * (100 / %MINIMUM_GOLD_TICK)))
  72.  
  73.   ;return $calc(2 ^ ($DIABLO_PLEVEL_AND_MLEVEL_TO_EXP_NEW($1,$2,$3,$4) / 12 + ($5 / 100 - 1)))
  74. }
  75. ; COUNT = PLEVEL - MLEVEL
  76. ; OFFSET = COUNT_TO_NUMBER(COUNT)
  77. ; print("OFFSETA: " + str(OFFSET))
  78. ; return (((PLEVEL + 1) / ABSN(OFFSET) ** ATANN(OFFSET)) / MONSTER_COUNT_INTERVAL) / MONSTER_COUNT_START
  79. alias BCD {
  80.   var %start 60
  81.   var %end 60
  82.  
  83.   while %end {
  84.     var %ONE $DIABLO_PLEVEL_AND_MLEVEL_TO_EXP_NEW(%end,%start,1,1,100,1,100)
  85.     var %TWENTY_FIVE $DIABLO_PLEVEL_AND_MLEVEL_TO_EXP_NEW(%end,%start,30,1,100,1,100)
  86.  
  87.     echo -a A: %one B: %twenty_five
  88.     echo -a $calc(%one / %twenty_five)
  89.     echo -a MULTIPLIER: $calculate_multiplier(%end,%start,30,1)
  90.     dec %end
  91.   }
  92. }
  93.  
  94. alias CALCULATE_MULTIPLIER {
  95.   var %plevel $1
  96.   var %mlevel $iif($2,$2,$1)
  97.   var %monster_start $iif($3,$3,1)
  98.   var %monster_count $iif($4,$4,1)
  99.  
  100.   var %COUNT $COUNT_TO_NUMBER($calc((%PLEVEL - %MLEVEL) * %monster_count + %monster_start - $LIMIT($DTEST_VIRII(%monster_start),0,1)),1)
  101.  
  102.   return $ABSN($CALC(1 / %COUNT ^ $ATANN(%COUNT)))
  103.  
  104.  
  105. }
  106. alias DIABLO_PLEVEL_AND_MLEVEL_TO_EXP_NEW {
  107.   var %plevel $1
  108.   var %mlevel $iif($2,$2,$1)
  109.   var %monster_start $iif($3,$3,1)
  110.   var %monster_count $iif($4,$4,1)
  111.   var %monster_min $iif($5,$5,1)
  112.   var %COUNT $COUNT_TO_NUMBER($calc((%PLEVEL - %MLEVEL) * %monster_count + %monster_start - $LIMIT($DTEST_VIRII(%monster_start),0,1)),1)
  113.  
  114.   return $ABSN($calc((%PLEVEL + 1) / %COUNT ^ $ATANN(%COUNT)))
  115. }
  116.  
  117. alias DIABLO_PLEVEL_AND_MLEVEL_TO_EXP_NEWISH {
  118.   var %plevel $1
  119.   var %mlevel $iif($2,$2,$1)
  120.   var %monster_start $iif($3,$3,1)
  121.   var %monster_count $iif($4,$4,1)
  122.   var %monster_min $iif($5,$5,1)
  123.   var %COUNT $COUNT_TO_NUMBER($calc((%PLEVEL - %MLEVEL) * %monster_count + %monster_start - $LIMIT($DTEST_VIRII(%monster_start),0,1)),1)
  124.  
  125.   return $DIABLO_LEVEL_TO_GOLD($ABSN($calc((%PLEVEL + 1) / %COUNT ^ $ATANN(%COUNT))))
  126. }
  127. alias DTEST_VIRII {
  128.   return $calc((($1 ^ 2) ^ -1 - ($1 ^ -1) + 1) * $1)
  129. }
  130. ;;;;;;;;;;;;;;;;;;;;;;;
  131. ; END FOR DIABLO DEMO ;
  132. ;;;;;;;;;;;;;;;;;;;;;;;
  133.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement