Related commit: https://github.com/HerculesWS/Hercules/pull/2391
this is part of *setunitdata script command clean-up
the UDT_MAPIDXY and UDT_WALKTOXY constant has been deprecated so this script command only dealing with 1 INTEGER value
now it has been standardize, all (int) has been removed from the documentation
Example 1 : setunitdata UDT_MAPIDXY (old)
.@mobgid = monster("this", -1,-1, "--ja--", PORING, 1);
setunitdata(.@mobgid, UDT_MAPIDXY, "guild_vs2", 50,50);
now should be
.@mobgid = monster("this", -1,-1, "--ja--", PORING, 1);
unitwarp(.@mobgid, "guild_vs2", 50,50);
Example 2 : getunitdata UDT_MAPIDXY (old)
.@mobgid = monster("this", -1,-1, "--ja--", PORING, 1);
getunitdata(.@mobgid, UDT_MAPIDXY, .@pos);
dispbottom(sprintf("%d %d %d", .@pos[0], .@pos[1], .@pos[2]));
// apparently we don't have *mapid2name script command ... doesn't matter anymore
now should be
.@mobgid = monster("this", -1,-1, "--ja--", PORING, 1);
getmapxy(.@map$, .@x, .@y, UNITTYPE_MOB, .@mobgid);
dispbottom(sprintf("%s %d %d", .@map$, .@x, .@y));
Example 3 : setunitdata UDT_WALKTOXY (old)
.@mobgid = monster("this", -1,-1, "--ja--", PORING, 1);
setunitdata(.@mobgid, UDT_WALKTOXY, 158,185);
now should be
.@mobgid = monster("this", -1,-1, "--ja--", PORING, 1);
unitwalk(.@mobgid, 158, 185);