summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-09-16 12:31:37 -0300
committershennetsind <ind@henn.et>2013-09-16 12:31:37 -0300
commit8fb81341feedb5d00175d83e816f4d2ec2d4eb36 (patch)
tree367f9ad9d60537832c6afdfa674ab94aa011207d /src/map/script.c
parent7f933ea6cb66e4deb2dc53c7aa3a96d82cb2884d (diff)
downloadhercules-8fb81341feedb5d00175d83e816f4d2ec2d4eb36.tar.gz
hercules-8fb81341feedb5d00175d83e816f4d2ec2d4eb36.tar.bz2
hercules-8fb81341feedb5d00175d83e816f4d2ec2d4eb36.tar.xz
hercules-8fb81341feedb5d00175d83e816f4d2ec2d4eb36.zip
HPM: Quest.c Interface
Fully Integrated Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/map/script.c b/src/map/script.c
index feebef478..3ea26694e 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -15645,7 +15645,7 @@ BUILDIN(setquest)
struct map_session_data *sd = script_rid2sd(st);
nullpo_ret(sd);
- quest_add(sd, script_getnum(st, 2));
+ quest->add(sd, script_getnum(st, 2));
return true;
}
@@ -15654,7 +15654,7 @@ BUILDIN(erasequest)
struct map_session_data *sd = script_rid2sd(st);
nullpo_ret(sd);
- quest_delete(sd, script_getnum(st, 2));
+ quest->delete(sd, script_getnum(st, 2));
return true;
}
@@ -15663,7 +15663,7 @@ BUILDIN(completequest)
struct map_session_data *sd = script_rid2sd(st);
nullpo_ret(sd);
- quest_update_status(sd, script_getnum(st, 2), Q_COMPLETE);
+ quest->update_status(sd, script_getnum(st, 2), Q_COMPLETE);
return true;
}
@@ -15672,7 +15672,7 @@ BUILDIN(changequest)
struct map_session_data *sd = script_rid2sd(st);
nullpo_ret(sd);
- quest_change(sd, script_getnum(st, 2),script_getnum(st, 3));
+ quest->change(sd, script_getnum(st, 2),script_getnum(st, 3));
return true;
}
@@ -15686,7 +15686,7 @@ BUILDIN(checkquest)
if( script_hasdata(st, 3) )
type = (quest_check_type)script_getnum(st, 3);
- script_pushint(st, quest_check(sd, script_getnum(st, 2), type));
+ script_pushint(st, quest->check(sd, script_getnum(st, 2), type));
return true;
}