summaryrefslogtreecommitdiff
path: root/src/map/pet.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-07-25 06:07:58 -0300
committershennetsind <ind@henn.et>2013-07-25 06:07:58 -0300
commit583272234fc96da7911029cd3cad13a7fb386e9e (patch)
tree26ebd840a474d54b3e73810c5306084c9383e516 /src/map/pet.c
parent0090e0303d9dd56e91b88fa331c3952097c592da (diff)
downloadhercules-583272234fc96da7911029cd3cad13a7fb386e9e.tar.gz
hercules-583272234fc96da7911029cd3cad13a7fb386e9e.tar.bz2
hercules-583272234fc96da7911029cd3cad13a7fb386e9e.tar.xz
hercules-583272234fc96da7911029cd3cad13a7fb386e9e.zip
Expanding script.c interface
Hercules Renewal Phase One. Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/pet.c')
-rw-r--r--src/map/pet.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/map/pet.c b/src/map/pet.c
index 2697e8128..62a884316 100644
--- a/src/map/pet.c
+++ b/src/map/pet.c
@@ -372,7 +372,7 @@ int pet_data_init(struct map_session_data *sd, struct s_pet *pet)
pd->last_thinktime = iTimer->gettick();
pd->state.skillbonus = 0;
if( battle_config.pet_status_support )
- run_script(pet_db[i].pet_script,0,sd->bl.id,0);
+ script->run(pet_db[i].pet_script,0,sd->bl.id,0);
if( pd->petDB && pd->petDB->equip_script )
status_calc_pc(sd,0);
@@ -1219,12 +1219,12 @@ int read_petdb()
{
if( pet_db[j].pet_script )
{
- script_free_code(pet_db[j].pet_script);
+ script->free_code(pet_db[j].pet_script);
pet_db[j].pet_script = NULL;
}
if( pet_db[j].equip_script )
{
- script_free_code(pet_db[j].equip_script);
+ script->free_code(pet_db[j].equip_script);
pet_db[j].pet_script = NULL;
}
}
@@ -1337,9 +1337,9 @@ int read_petdb()
pet_db[j].equip_script = NULL;
if( *str[20] )
- pet_db[j].pet_script = parse_script(str[20], filename[i], lines, 0);
+ pet_db[j].pet_script = script->parse(str[20], filename[i], lines, 0);
if( *str[21] )
- pet_db[j].equip_script = parse_script(str[21], filename[i], lines, 0);
+ pet_db[j].equip_script = script->parse(str[21], filename[i], lines, 0);
j++;
entries++;
@@ -1382,12 +1382,12 @@ int do_final_pet(void)
{
if( pet_db[i].pet_script )
{
- script_free_code(pet_db[i].pet_script);
+ script->free_code(pet_db[i].pet_script);
pet_db[i].pet_script = NULL;
}
if( pet_db[i].equip_script )
{
- script_free_code(pet_db[i].equip_script);
+ script->free_code(pet_db[i].equip_script);
pet_db[i].equip_script = NULL;
}
}