@Override protected boolean useTeleportScroll(final Player player){
  String targetZoneName=null;
  int targetX=0;
  int targetY=0;
  int timeInTurns=0;
  final String infoString=getInfoString();
  if (infoString != null) {
    final StringTokenizer st=new StringTokenizer(infoString);
    if (st.countTokens() == 7) {
      targetZoneName=st.nextToken();
      targetX=Integer.parseInt(st.nextToken());
      targetY=Integer.parseInt(st.nextToken());
      timeInTurns=Integer.parseInt(st.nextToken());
    }
 else {
      throw new IllegalArgumentException("the infostring attribute is malformed");
    }
  }
  return useTeleportScroll(player,targetZoneName,targetX,targetY,timeInTurns);
}

@ Override protected boolean useTeleportScroll ( final Player player ) { String targetZoneName = null ; int targetX = 0 ; int targetY = 0 ; int timeInTurns = 0 ; final String infoString = getInfoString ( ) ; if ( infoString != null ) { final StringTokenizer st = new StringTokenizer ( infoString ) ; if ( st . countTokens ( ) == 7 ) { targetZoneName = st . nextToken ( ) ; targetX = Integer . parseInt ( st . nextToken ( ) ) ; targetY = Integer . parseInt ( st . nextToken ( ) ) ; timeInTurns = Integer . parseInt ( st . nextToken ( ) ) ; } else { throw new IllegalArgumentException ( "the infostring attribute is malformed" ) ; } } return useTeleportScroll ( player , targetZoneName , targetX , targetY , timeInTurns ) ; }
is invoked when a teleporting scroll is used . tries to put the player on the scroll ' s destination , or near it .
