I did it
function script scrollwarpzz {
message strcharinfo(0),"Teleport to...";
dispbottom "map,x,y";
input .@i$;
explode(.@j$,.@i$,",");
if (getmapusers(.@j$[0]) >= 0) {
delitem your_item,12219;
warp .@j$[0], atoi(.@j$[1]), atoi(.@j$[2]);
} else
message strcharinfo(0),"Invalid map.";
end;
}
and in the script item:
{ callfunc "scrollwarpzz"; }
item type 11,
why do not works ?