API:Do Teleport

function Do_Teleport(_type) local select= TeleportBook.select; if (select ~=-1) then local IconType,note,ZoneID,X,Y,Z,Name,file=TB_GetTeleportInfo(select); if (IconType~=0) then TB_Teleport(_type,select); else TB_PickupItem( select); end end end

Do_Teleport(number); number = 0 / 1 / 2