diff options
author | shennetsind <ind@henn.et> | 2013-07-25 06:07:58 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-07-25 06:07:58 -0300 |
commit | 583272234fc96da7911029cd3cad13a7fb386e9e (patch) | |
tree | 26ebd840a474d54b3e73810c5306084c9383e516 /src/map/atcommand.c | |
parent | 0090e0303d9dd56e91b88fa331c3952097c592da (diff) | |
download | hercules-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/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 29bd43d16..e3cf37cf1 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -3748,7 +3748,7 @@ ACMD(reloadscript) flush_fifos(); iMap->reloadnpc(true); // reload config files seeking for npcs - script_reload(); + script->reload(); npc_reload(); clif->message(fd, msg_txt(100)); // Scripts have been reloaded. @@ -8548,9 +8548,9 @@ ACMD(set) { if( toset >= 2 ) {/* we only set the var if there is an val, otherwise we only output the value */ if( is_str ) - set_var(sd, reg, (void*) val); + script->set_var(sd, reg, (void*) val); else - set_var(sd, reg, (void*)__64BPTRSIZE((atoi(val)))); + script->set_var(sd, reg, (void*)__64BPTRSIZE((atoi(val)))); } @@ -8561,10 +8561,10 @@ ACMD(set) { switch( reg[0] ) { case '@': - data->u.str = pc->readregstr(sd, add_str(reg)); + data->u.str = pc->readregstr(sd, script->add_str(reg)); break; case '$': - data->u.str = mapreg_readregstr(add_str(reg)); + data->u.str = mapreg_readregstr(script->add_str(reg)); break; case '#': if( reg[1] == '#' ) @@ -8590,10 +8590,10 @@ ACMD(set) { data->type = C_INT; switch( reg[0] ) { case '@': - data->u.num = pc->readreg(sd, add_str(reg)); + data->u.num = pc->readreg(sd, script->add_str(reg)); break; case '$': - data->u.num = mapreg_readreg(add_str(reg)); + data->u.num = mapreg_readreg(script->add_str(reg)); break; case '#': if( reg[1] == '#' ) |