viewpoint command update (#4143)

* Added the optional parameter 'char ID' to the command
This commit is contained in:
Sader Fawall 2019-05-23 20:11:45 +02:00 committed by Atemo
parent 7d2c1a662c
commit a3fc44ef8a
2 changed files with 7 additions and 5 deletions

View File

@ -7489,7 +7489,7 @@ rand(2,5) would result in 2,3,4 or 5
---------------------------------------
*viewpoint <action>,<x>,<y>,<point number>,<color>;
*viewpoint <action>,<x>,<y>,<point number>,<color>{,<Char ID>};
This command will mark places on the mini map in the client connected to the
invoking character. It uses the normal X and Y coordinates from the main map.

View File

@ -6687,15 +6687,17 @@ BUILDIN_FUNC(viewpoint)
int type,x,y,id,color;
TBL_PC* sd;
if (!script_charid2sd(7, sd)) {
st->state = END;
return SCRIPT_CMD_FAILURE;
}
type=script_getnum(st,2);
x=script_getnum(st,3);
y=script_getnum(st,4);
id=script_getnum(st,5);
color=script_getnum(st,6);
if( !script_rid2sd(sd) )
return SCRIPT_CMD_SUCCESS;
clif_viewpoint(sd,st->oid,type,x,y,id,color);
return SCRIPT_CMD_SUCCESS;
@ -24496,7 +24498,7 @@ struct script_function buildin_func[] = {
BUILDIN_DEF2(enableitemuse,"enable_items",""),
BUILDIN_DEF2(disableitemuse,"disable_items",""),
BUILDIN_DEF(cutin,"si"),
BUILDIN_DEF(viewpoint,"iiiii"),
BUILDIN_DEF(viewpoint,"iiiii?"),
BUILDIN_DEF(heal,"ii?"),
BUILDIN_DEF(itemheal,"ii?"),
BUILDIN_DEF(percentheal,"ii?"),