Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Server Modifications ONLY!
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 01.12.2005, 12:32   #1
serjr
Архивный участник
 
Join Date: May 2005
Posts: 115
Default [Share] ai quest bounty rate changer

This little perl script will change money exp and sp bounty for quests in Ai.obj to 6/4/4 change this numbers for your own. Before run script convert ai.obj to ANSI.
P.S. need testing if you found any bug post will try to solve

Code:
#!/usr/bin/perl -w

use strict;
use warnings;

use Data::Dumper;

our $AI_FILE = 'ai.obj';

open F, $AI_FILE or die $!;
my $ai = join '', <F>;
close F;

# money money money

# push_const 57
# push_const 1500
# func_call 77	//  func[GiveItem1]

$ai =~ s/(push_const\s+57\s+push_const\s+)(\d+)(\s+func_call\s+77)/$1.(int($2)*6).$3/iegs;

# exp

# push_const 0
# push_const 3600
# func_call 171 //  func[IncrementParam] 

$ai =~ s/(push_const\s+0\s+push_const\s+)(\d+)(\s+func_call\s+171)/$1.(int($2)*4).$3/iegs;

# sp

# push_const 1
# push_const 3600
# func_call 171 //  func[IncrementParam] 

$ai =~ s/(push_const\s+1\s+push_const\s+)(\d+)(\s+func_call\s+171)/$1.(int($2)*4).$3/iegs;

open F, ">$AI_FILE.new" or die $!;
print F $ai;
close F;
serjr is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 22:44.